Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:21 am EST

Geeklog Forums

RightBlocks


Seilo

Anonymous
I am fairly new to php and I am trying to work on a new php file I want to include the right blocks Right now I have the left blocks and the footer by adding


echo COM_siteHeader();
Some code goes here

echo COM_siteFooter();


but I also want to include the right blocks how would I do this ?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Use the source, Luke Mr. Green
Text Formatted Code
/**
* Returns the site footer
*
* This loads the proper templates, does variable substitution and returns the
* HTML for the site footer.
*
* @param        boolean     $rightblock     Whether or not to show blocks on right hand side default is no
* @see function COM_siteHeader
* @return   string  Formated HTML containing site footer and optionally right blocks
*
*/
function COM_siteFooter( $rightblock = false )
 

bye, Dirk
 Quote

Seilo

Anonymous
Oh, I am sorry I did not realize.


One more things Lets say I have blocks that are only set to display in home How would I get them to display on this custom page?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Seilo: Lets say I have blocks that are only set to display in home How would I get them to display on this custom page?

That's not possible without some modifications to function COM_showBlocks(), I'm afraid.

Geeklog doesn't have a concept for displaying certain blocks on custom pages.

bye, Dirk
 Quote

Seilo

Anonymous
Is there anyway to trick Geeklog into thinking a custom page is "Home" ?

 Quote

Status: offline

destr0yr

Forum User
Full Member
Registered: 07/06/02
Posts: 324
use a staticpage and set it as the centre block or entire homepage.
-- destr0yr
"I love deadlines. I like the whooshing sound they make as they fly by." -- Douglas Adams
 Quote

All times are EST. The time is now 10:21 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content