Member
Member
n20capri   2012-11-02, 15:10
#1

So I'm working on a site with a bunch of other jquery stuff and it seems as if I have some interference.

I need php zp_apply_filter('theme_head') so the login/logout script works and so the admin toolbox works. (login should pop up the colorbox login script as well).

Here something weird too - w/o php zp_apply_filter('theme_head') and I'm logged in all the JS works fine...but of course the logout link doesn't work...when I'm logged out my JS doesn't work (JS is a dropdown menu)

I can't get both to co-exist - any suggestions?
Thanks
Mike

Member
Member
n20capri   2012-11-02, 15:19
#2

Well that was easy...I tried to just have php zp_apply_filter('theme_head') load ALL of my jquery stuff and that didn't work at first...noticed I was loading jquery.js myself AND through zen...Once I removed jquery.js from my stuff it's working fine...lol

It's always nice to talk things out! HA

Administrator
Administrator
acrylian   2012-11-02, 15:19
#3

Did you look at your browser log about what the js errors are? Just small typoes also cause these kind of things. Also note that Zenphoto already loads jQuery and some other stuff needed for standarsd so in case you load jQuery a 2nd time it is most likely causing issues.

For a dropdown menu you actaully don't even need JS in modern browsers at all. The ZP backend drop down is pure CSS. Take a look here: http://www.lwis.net/free-css-drop-down-menu/

Member
Member
n20capri   2012-11-02, 16:36
#4

Yeah see above - I was loading jquery.js twice. Thanks for that link though they are nice menus!

Administrator
Administrator
acrylian   2012-11-02, 18:06
#5

we probably posted around the same time.

The menu I referred to is great because the design is just an example. They just provide a general setup you can restyle at a will.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.