Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 03:54 am EST
Geeklog Forums
Right-side blocks
Yikes (gotta sign up)
Anonymous
If you select ONLY right blocks, then use features like the calendar, the rightside blocks disappear instead of staying put as left blocks do. Might I stop this happening by a theme mod, or does it require a hack?
Whatever the case, would the change be long and drawn out? Pointers? Tips? Help?
Thanks!
Whatever the case, would the change be long and drawn out? Pointers? Tips? Help?
Thanks!
4
3
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So basically you want a two-column layout with the blocks on the right side? Then try this (from config.php):
// footer.thtml (and disable it in header.thtml). This is really only useful
// for two-column layouts where you want the left column contain the stories
// and the right column contain the standard blocks.
$_CONF['left_blocks_in_footer'] = 0;
You'll have to move all your blocks back to the left, though, to make them appear on the right
Confused? Click on the www button below to check out one of my sites running with that setting.
bye, Dirk
Text Formatted Code
// When set to 1, this will make the {left_blocks} variable available in// footer.thtml (and disable it in header.thtml). This is really only useful
// for two-column layouts where you want the left column contain the stories
// and the right column contain the standard blocks.
$_CONF['left_blocks_in_footer'] = 0;
You'll have to move all your blocks back to the left, though, to make them appear on the right
Confused? Click on the www button below to check out one of my sites running with that setting.
bye, Dirk
6
5
Quote
Yikes!
Anonymous
That's it and its not confusing at all. Thanks!
Cool site, btw.
Cool site, btw.
5
4
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
I'm trying to set up a site for a local sportsclub, they want the left blocks on the right. But it seems that this option doesn't work anymore (in GL1.71)? The left blocks are completely gone if I set this in siteconfig.php and put the left blocks in the footer. I can make it look like the left blocks are on the right with CSS, but for SEO purposes I want them to be on the right side for real.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
4
3
Quote
Status: offline
suprsidr
Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
In layout/your_theme/functions.php add:
and in footer.thtml add:
You can also create your own your_theme_siteHeader and your_theme_siteFooter functions to replace COM_siteHeader and COM_siteFooter respectively.
Just copy COM_siteHeader and COM_siteFooter to layout/your_theme/functions.php and rename appropriately
Then remove the check for the theme's function near the top of each so you don't create a loop:
// If the theme implemented this for us then call their version instead.
$function = $_CONF['theme'] . '_siteHeader';
if( function_exists( $function ))
{
return $function( $what, $pagetitle, $headercode );
}
This method adds the proper structure to your page and allows you to add your own variables and such to your templates.
Hope this helps
-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
Text Formatted Code
$_CONF['left_blocks_in_footer'] = 1;and in footer.thtml add:
Text Formatted Code
{left_blocks}You can also create your own your_theme_siteHeader and your_theme_siteFooter functions to replace COM_siteHeader and COM_siteFooter respectively.
Just copy COM_siteHeader and COM_siteFooter to layout/your_theme/functions.php and rename appropriately
Then remove the check for the theme's function near the top of each so you don't create a loop:
Text Formatted Code
// If the theme implemented this for us then call their version instead.
$function = $_CONF['theme'] . '_siteHeader';
if( function_exists( $function ))
{
return $function( $what, $pagetitle, $headercode );
}
This method adds the proper structure to your page and allows you to add your own variables and such to your templates.
Hope this helps
-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
4
5
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Quote by: suprsidr
In layout/your_theme/functions.php add:
Text Formatted Code
$_CONF['left_blocks_in_footer'] = 1;OK, in functions.php, not in the config file, that was new for me... The last time I used it was in GL1.4 or something like that
Works fine now, thanks a lot!! :banana:
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
4
3
Quote
All times are EST. The time is now 03:54 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