Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 11:06 am EST
Geeklog Forums
$_CONF['show_right_blocks'] Patch
Status: offline
LWC
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):
config.php:
public_html/lib_common.php -
function COM_siteFooter:
{
$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.
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:
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.
15
14
Quote
Status: offline
Dirk
Site Admin
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
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
15
12
Quote
All times are EST. The time is now 11:06 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