Posted on: 07/22/05 10:30am
By: Spacehamster
In the admin I can tell a block on the right to appear everywhere, but in reality it only appears on the "stories" page.
Which file do I need to edit to really make all blocks that I want to appear everywhere to actually appear everywhere?
(If there was a thread about this, please link it because I already spend 2 hours searching for it.)
Pretty please with chocolate and whipped cream on top.
I want the blocks on the right displayed everywhere.
Posted on: 07/22/05 02:08pm
By: Dirk
It depends on how COM_siteFooter is called at the end of each page. In index.php, you'll find:
$display .= COM_siteFooter (true); // The true value enables right hand blocks.
Almost all the other calls in Geeklog are without the "true", so it won't display right blocks.
bye, Dirk
I want the blocks on the right displayed everywhere.
Posted on: 07/23/05 01:18pm
By: Spacehamster
Yay!! It works!
*worships Dirk*
I could have searched for ages without finding it in that function.
Thanks a lot!!
I want the blocks on the right displayed everywhere.
Posted on: 08/24/05 11:52pm
By: Flernk
Still having some difficulty with this.
I have changed:
$display .= COM_siteFooter ();
to
$display .= COM_siteFooter (true);
in every instance in every file, but I'm still cooming across some places where my right blocks disappear. One specific example is after a user changes their password. The page that loads is /users.php?mode=profile&uid=2&msg=5
I also lose my right blocks when a system message pops up. Example: When an Adminattempts to create a new user using an email address that already exists, the system message will appear, "The email address provided is already in use for another account." and all the right blocks will be gone. In this case, the file is labeled, simply /user.php
How can I ensure that the blocks never disappear? It's crucial to my site because I'm not using left blocks at all. If my right blocks disappear, even on a single page, my navigation also disappears.
I want the blocks on the right displayed everywhere.
Posted on: 08/25/05 02:45pm
By: Dirk
[QUOTE BY= Flernk] Still having some difficulty with this.[/QUOTE]
Sounds like you simply missed a few COM_siteFooter calls. Some files have quite a few of those ...
bye, Dirk
I want the blocks on the right displayed everywhere.
Posted on: 08/28/05 07:02pm
By: Anonymous ( Newbie but improve)
Is it possibile to make a "general rightblock switch",
will take it to config.php, like :
$_CONF['gen_rightblock_switch'] = true ; // If you want every time & everywhere to see it
and test this before every COM_siteFooter call, like :
$rightblock_Switch = ($_CONF['gen_rightblock_switch'] ? "true" : "false");
$display .= COM_siteFooter ($rightblock_Switch)
is it a good idea ?
I want the blocks on the right displayed everywhere.
Posted on: 08/31/05 08:30am
By: Anonymous (Anonymous)
[QUOTE BY= Flernk]
$display .= COM_siteFooter (true);
in every instance in every file, but I'm still cooming across some places where my right blocks disappear. One specific example is after a user changes their password. The page that loads is /users.php?mode=profile&uid=2&msg=5
[/QUOTE]
This makes the right-blocks show on the page I made this change. BUT, on my site I also got the "What's related" and "Story options" blocks showing to the left of my section of right-blocks, making it all look very silly.
Any ideas?
I want the blocks on the right displayed everywhere.
Posted on: 08/31/05 02:11pm
By: Dirk
[QUOTE BY= Anonymous] BUT, on my site I also got the "What's related" and "Story options" blocks showing to the left of my section of right-blocks, making it all look very silly.[/QUOTE]
Those two aren't real blocks but actually part of the article template file. Open article/article.thtml and move {whats_related_story_options} (which represents both blocks) or use {whats_related} and {story_options} to have them as individual blocks.
In the Professional theme, those two are below the story text, for example.
bye, Dirk
I want the blocks on the right displayed everywhere.
Posted on: 09/02/05 06:38am
By: Anonymous (evo)
sorry to beat a dead horse here but what about things like the forums? for example this site doesn't display right box' on forum pages.
how would I add that code to enable right blocks on every page? also is there any harm in changing all of the
$display .= COM_siteFooter ();
instances to
$display .= COM_siteFooter (true);
???
I want the blocks on the right displayed everywhere.
Posted on: 09/02/05 02:17pm
By: Dirk
[QUOTE BY= evo] sorry to beat a dead horse here but what about things like the forums? for example this site doesn't display right box' on forum pages.[/QUOTE]
You would have to make the same changes in the forum's code.
[QUOTE BY= evo] also is there any harm in changing all of the [/QUOTE]
Nothing I could think of. It only leaves less space for the actual content, especially when your browser window isn't that wide (like mine ...).
bye, Dirk
I want the blocks on the right displayed everywhere.
Posted on: 09/02/05 02:45pm
By: drshakagee
If you really want the right blocks to be everywhere without editing a million files, you can add this:
$rightblock = true;
at the beginning of the COM_siteFooter function in lib-common.php.
If you really wanted to do properly you could cut and paste the whole COM_siteFooter function to your theme's function.inc file and change the name of the function to yourthemename__siteFooter then add the rightblock = true thing to the top of it (this method might be only available in cvs, I don't have a non cvs version to look at right now).
I want the blocks on the right displayed everywhere.
Posted on: 09/03/05 02:16am
By: Anonymous (evo)
has anyone added such code to the forum?
I want the blocks on the right displayed everywhere.
Posted on: 09/03/05 02:20am
By: Anonymous (evo)
really I am just wondering where to insert the code.