How Important Is the <?php zenJavascript(); ?> Tag ?

Hi there

I am trying to modify the "Example" theme included in the zenPhoto package to look like my website. Actually, I want zenPhoto to live harmoniously within my CSS divs and established layout(s).

I have altered the index.php file to contain my site's html and CSS with the zenPhoto gallery being called into my "content column" (right floated div). The problem is that my "menu column" (left floated div) gets positioned beneath the gallery. It is still floating to the left, however, just below gallery.

Funny thing is... if I navigate away from the page and then use my browser's 'back' button to return... Voila! My menu (left floated div) is right back where it should be. Running down along the left side of the gallery. A browser 'refresh', however, does not do anything.

Now the even funnier bit... If I remove the "<?php zenJavascript(); ?>" from the header no weirdness occurs. Everything behaves nicely and my finely tweaked layout is not thrown all askew.

So make an short story longer... How important is the "<?php zenJavascript(); ?>" tag? Can I live without it? Will anything be broken client-side if it is removed? I can live without the admin panel, but I would like to know if there would be some unforeseen weirdness experienced by visitors should I strike this tag from my php page(s).

Thanks for your help
Imp

Comments

  • This tag emits lots of different things, Some are admin only, others are used by normal viewing. Best not to remove it. I am guessing that one or more of the JS scripts that it emits are the source of the problem. You might see if the behavior is different when you are not logged in as admin.
  • Thanks for the reply.

    Apparently, it was caused by an established connection to my remote server from my HTML editor.

    I didn't remove the tag and have spent a couple of (more)days trying to isolate the cause of my layout shift.

    Same shift when I am not logged in as administrator.

    BUT... and this is the real noodle scratcher... The mysterious layout bug disappeared all by itself. I was trying to explain my dilemma to a knowledgeable friend but when I navigated to my test page to show him what was going on... No shift. Everything nice and neat.

    Try as I might, I could not reproduce the bug that was incessant and infuriating a scant day prior.

    Holdon... I opened up Dreamweaver and connected to my remote site so I could check that the page did in fact have the "<?php zenJavascript(); ?>" tag. Yup it was there, so why wasn't I getting the glitch?

    Upon checking once more, the page was thrown all askew once again! The light went on.
    Every time I had checked the page previously, I had Dreamweaver open and connected to my server so that I could attempt different 'fixes'.

    I closed Dreamweaver and checked the site again. No glitch.

    I don't no why, but that appears to be the answer.

    Thanks for the help
    Imp
Sign In or Register to comment.