Posted on: 06/13/06 08:54am
By: LWC
[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):
config.php:
$_CONF['show_right_blocks'] = "homeonly";
public_html/lib_common.php -
function COM_siteFooter:
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.
$_CONF['show_right_blocks'] Patch
Posted on: 06/13/06 02:57pm
By: Dirk
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