Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 01:37 pm EST

Geeklog Forums

Rights Blocks Disappear?

Page navigation


GrowYourOwnMusic

Anonymous
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
 Quote

GrowYourOwnMusic

Anonymous
No replies? Dang! Anyone got any ideas? This is really bugging me.
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
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.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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).
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
OH! I just saw your right blocks! Big Celebration
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.
 Quote

GrowYourOwnMusic

Anonymous
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
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
give this a shot:
change line 344 of your theme's functions.php file from:
Text Formatted Code
    $address = array($_CONF['site_url'].'/index.php', 'otherPagesFromWhichToLoadRightBlocks',);

 
to read like this:
Text Formatted Code
    $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
 Quote

GrowYourOwnMusic

Anonymous
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?
 Quote

mach

Anonymous
i'm not awake yet..
change that same line to this:
Text Formatted Code
    $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...
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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.
 Quote

GrowYourOwnMusic

Anonymous
Hold on while I set out to get that information.
 Quote

GrowYourOwnMusic

Anonymous
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
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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:
Text Formatted Code

    $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)) {


 
 Quote

GrowYourOwnMusic

Anonymous
Parse error: parse error, unexpected T_VARIABLE in /home/ethanme/public_html/main/layout/purplerose/functions.php on line 346
 Quote

mach

Anonymous
oops

missed a semicolon at the end of the line
Text Formatted Code
$redirfrom = "http://ethanmeanor.com/";
 
 Quote

GrowYourOwnMusic

Anonymous
Unfortunately that didn't seem to make any difference either. Got any more ideas?
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
this is the part where you need to wiggle it a bit... Wink
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.
 Quote

GrowYourOwnMusic

Anonymous
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.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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. Razz

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 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.
 Quote

GrowYourOwnMusic

Anonymous
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.
 Quote

Page navigation

All times are EST. The time is now 01:37 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