Posted on: 12/03/04 01:14am
By: Anonymous (GrowYourOwnMusic)
Sometimes when I open my page, the blocks on the right-hand side disappear. I know I can set them to not be on some pages, but this is on my home page. Someitmes they're there, sometimes they aren't. I'll leave the link to my page below so you can check it out and se eif you cna see a solution.
I'll also note that when it happens and I'm logged in, logging out seems to do the trick.
http://www.ethanmeanor.com
Help?
Posted on: 12/03/04 10:59am
By: Anonymous (GrowYourOwnMusic)
No replies? Dang! Anyone got any ideas? This is really bugging me.
Rights Blocks Disappear?
Posted on: 12/03/04 11:04am
By: Turias
I reloaded maybe 50 times and never saw them appear. Are you sure that it does appear sometimes?
Try disabling any non-core Geeklog blocks you have and see if the problem is maybe a bad block.
Rights Blocks Disappear?
Posted on: 12/03/04 12:04pm
By: machinari
When did this behaviour start? ....and what version of GeekLog are you running?
can you think of anything that you were doing when this behaviour started?
keep in mind, if you are running 1.3.10, the purplerose theme that you are using isn't 1.3.10 compliant (unless you have made it so yourself).
Rights Blocks Disappear?
Posted on: 12/03/04 12:06pm
By: machinari
OH! I just saw your right blocks!
It seems that until you modify the address in anyway the blocks don't show up. once the address has been modified, by clicking on a topic link for example, then going back to your main page, your blocks show up.
off the top of my head, I would say that the custom COM_siteHeader in the theme's functions.php file is the culprit. This is because this theme calls the right blocks from the header not the footer and so some of that code may not like your address. I'll take a look and see.
Rights Blocks Disappear?
Posted on: 12/03/04 12:24pm
By: Anonymous (GrowYourOwnMusic)
OK, well from what you told me I'd have no idea of how to fix that, so I'd appreciate if when and if you figure it out, please give me instructions on fixing it.
BTW, im funning 1.3.9sr2
Rights Blocks Disappear?
Posted on: 12/03/04 12:24pm
By: machinari
give this a shot:
change line 344 of your theme's functions.php file from:
$address = array($_CONF['site_url'].'/index.php', 'otherPagesFromWhichToLoadRightBlocks',);
to read like this:
$address = array($_CONF['site_url'].'/index.php', '/main/index.php', 'otherPagesFromWhichToLoadRightBlocks',);
let me know if that makes a difference.
that'll be where this issue can be resolved, i believe, even if it means adjusting the $clicked variable. I would have to see how you've set up your paths to be sure.
hope some of that helps
Rights Blocks Disappear?
Posted on: 12/03/04 12:30pm
By: Anonymous (GrowYourOwnMusic)
I tried it, and it didn't help. Can you describe how to adjust the $clicked variable you mentioned so as to maybe make a difference?
Rights Blocks Disappear?
Posted on: 12/03/04 01:03pm
By: Anonymous (mach)
i'm not awake yet..
change that same line to this:
$address = array($_CONF['site_url'].'/index.php', $_CONF['site_url'], 'otherPagesFromWhichToLoadRightBlocks',);
I assume that your site url as set in your config.php includes the /main directory...
Rights Blocks Disappear?
Posted on: 12/03/04 01:20pm
By: machinari
nope that wont work either, it'll just give you double blocks on other pages.
what is your site_url as set in your config and what kind of redirection are you using--and why?
if you could tell me what $_SERVER['HTTP_HOST'] is set to when you look at phpinfo(). that would help me.
Rights Blocks Disappear?
Posted on: 12/03/04 03:15pm
By: Anonymous (GrowYourOwnMusic)
Hold on while I set out to get that information.
Rights Blocks Disappear?
Posted on: 12/03/04 03:22pm
By: Anonymous (GrowYourOwnMusic)
OK, site_url is: http://ethanmeanor.com/main
The redirect code is:
<META http-equiv="refresh" content="0; url=http://www.ethanmeanor.com/main/">
I'm using the redirect becasue I don't want all of the geeklog stuff in the mian directory. I'd prefer to have it tucked away in /main
Rights Blocks Disappear?
Posted on: 12/03/04 04:40pm
By: machinari
OK, give this a shot and let me know if it works. It is a specific fix for your redirect. because the redirect is in the header of calling page, this function defines the host plus uri without the "main/" so then blocks wont load.
changes lines 340 - 350 in layout/purplerose/functions.php to this:
$clicked = "http://";
$clicked .= $_SERVER['HTTP_HOST'];
$clicked .= $_SERVER['REQUEST_URI'];
$siteurl = $_CONF['site_url']."/";
$redirfrom = "http://ethanmeanor.com/"
$address = array($_CONF['site_url'].'/index.php', 'otherPagesFromWhichToLoadRightBlocks',);
//default vars
$header->set_var( 'geeklog_blocks', '' );
$header->set_var( 'right_blocks', '' );
//loads rightblocks if site url is called.
if ((( $siteurl != '') && ( $siteurl == $clicked )) || ($redirfrom == $clicked)) {
Rights Blocks Disappear?
Posted on: 12/03/04 05:09pm
By: Anonymous (GrowYourOwnMusic)
Parse error: parse error, unexpected T_VARIABLE in /home/ethanme/public_html/main/layout/purplerose/functions.php on line 346
Rights Blocks Disappear?
Posted on: 12/03/04 05:19pm
By: Anonymous (mach)
oops
missed a semicolon at the end of the line
$redirfrom = "http://ethanmeanor.com/";
Rights Blocks Disappear?
Posted on: 12/03/04 05:52pm
By: Anonymous (GrowYourOwnMusic)
Unfortunately that didn't seem to make any difference either. Got any more ideas?
Rights Blocks Disappear?
Posted on: 12/03/04 07:13pm
By: machinari
this is the part where you need to wiggle it a bit...
change the redirfrom variable a bit, that is
try $redirfrom = "http://ethanmeanor.com";
or $redirfrom = "http://ethanmeanor.com/main/";
or $redirfrom = "http://ethanmeanor.com/main";
or you might try redirecting using an .htaccess file (assuming apache) rather than your header.
or see the comment on your latest story at your site.
Rights Blocks Disappear?
Posted on: 12/03/04 07:41pm
By: Anonymous (GrowYourOwnMusic)
Still isn't working. I tried all three, no luck.
I read your comment, and I don't understand why that would help, but you seem to know quite a bit about it, so I'll trust that it would. I don't really know how to go about editing themes and the like though.
You offered to do it, though, right? That would be a big help. I'll be watching the topic.
Rights Blocks Disappear?
Posted on: 12/03/04 07:50pm
By: machinari
I only stick my nose in cuz i'm the one that made that theme and the bit of code that isn't working with your redirect.
I'll fix your columns so the centercolumn doesn't expand and at the same time make it 1.3.10 compliant.
I'll just put a different version on
my site[*1] when I'm done--a few people have asked me for that so it's no big deal. I guess they just like the color scheme but not much else.
Rights Blocks Disappear?
Posted on: 12/03/04 08:04pm
By: Anonymous (GrowYourOwnMusic)
Cool, I didn't know you made that theme. I'll be eagerly awaiting the new release, and while I wait perhpas I'll work on my own theme. I pretty much figured out that the CSS document is what changes the colors, and they're the only part of the Clean theme I don't like, so I'll get to work.
Rights Blocks Disappear?
Posted on: 12/09/04 12:10am
By: machinari
the new purplerose is released now... hope it helps you.
find it at
summitpages.ca[*2]