Welcome to Geeklog, Anonymous Monday, June 17 2024 @ 09:07 am EDT

Geeklog Forums

$_CONF['show_right_blocks'] Patch

Status: offline


Forum User
Full Member
Registered: 02/19/04
Posts: 818
[QUOTE config.sys]
Geeklog will only display the right-side blocks on the index page.[/QUOTE]
Maybe it should be rephrased as "the index page plus every query that follows it". Most noticeably the topics!

Shouldn't there be a third choice called "homepage only"?

If anyone else agrees with me, I came up with a way to achieve this (tell me if there's a better way):

Text Formatted Code
$_CONF['show_right_blocks'] = "homeonly";


public_html/lib_common.php -
function COM_siteFooter:

Text Formatted Code
    elseif( $rightblock )
        $rblocks = COM_showBlocks( 'right', $topic );
// custom code - start
if ($rightblock == "homeonly" && COM_isFrontpage())
$rblocks = '';
// custom code - end


I couldn't find a way to stop COM_showBlocks from running because "homeonly" is also treated as true obviously.

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That option works as intended. Maybe the explanation isn't the best.

Geeklog does not display the right blocks on most pages. The only exception are the pages created by index.php, i.e. the front page, the topic index pages, and the list of new stories in the last hours. That's what "the index page" refers to.

Once you enable that option, right blocks are displayed on every page - and that's what it was supposed to do. I don't see a need to complicate that any further.

bye, Dirk

All times are EDT. The time is now 09:07 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