Welcome to Geeklog, Anonymous Wednesday, February 01 2023 @ 04:51 pm 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:
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.
 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
 Quote

All times are EST. The time is now 04:51 pm.

  • 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