Lightbox 1.4 does not hook in

Creating and modifying plugins.
ripclaw
Posts: 4
Joined: Sun Oct 09, 2005 4:17 pm

Lightbox 1.4 does not hook in

Post by ripclaw »

Hi guys,

I have just set up a fresh s9y 1.2 and installed the 1.4 version of the Lightbox plugin. However, I cant seem to manage to have the script actually insert the script and css lines into the page. What I mean is, the header contains no trace of the lightbox plugin.

Where could I start looking?

Thanks,
Michael
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

I can reconfirm this issue. I've noticed that the lightbox plugin is no longer functioning on my site. I haven't taken the time to resolve it though.

I did see that the plugin is still inserting the rel="lightbox" into the image tags, but the javascript is no longer being loaded.

I am running the 1.3 alpha, but the plugin from sparticus.

EDIT: post with the plugin not working http://zacgarrett.com/2006/11/06/Sun-Tr ... y-Program/
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Post by kleinerChemiker »

me too. s9y 1.2 and lightbox 1.4 from spartacus.
ormus7577
Regular
Posts: 122
Joined: Sat Nov 04, 2006 12:11 pm
Location: Ulm, Germany

Post by ormus7577 »

I've been wondering the same thing (and searching for the problem for about one hour), but the answer is so obvious! The javascript/css is no longer included in the html head section. I'm feeling stupid now, ripclaw ;)

The problem is new in version 1.4 of the plugin, 1.3 is working fine (checked on another installation). I'll diff them tonight...

*edit*
Looking at the cvs log:
cvs diff

The php4 section is probably not working (I'm using php4). And the php5 section seems to always set the foundImageLink to true. The author of the update was only testing on php5, i'm pretty sure. I'll figure it out tonight (unless someone else is faster).
my installations:
family blog: http://familie.lobenstein.info/
personal blog: http://www.ormus.info/
OrmusTool Homepage: http://tool.ormus.info/
Online Adventskalender: http://www.ormus.info/pages/advent.html
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

I am running php 5.2.3 and its not working for me.
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

I did an optimization to the plugin. The JavaScript should only be loaded into the header, if it is needed (a picture is added at the actual page). This will make the load time much shorter.

It workes here w/o any problems, but yes: I tested it only with PHP5, the PHP4 check was a "blind" update.

To solve the problems fast, I will do an update, that makes this optimization optional, defaulting to no optimization.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

I retestet the plugin. The optimization is still working at my blogs. I added the JS loading optimization option now to the plugins setup.

What is not working are the script versions "LightBoy 1" and "GrayBox 2". The scripts are loaded into the header, but it produces no changing in the display at my site. So I guess, these scripts are not working at all at the moment. All other script versions are working.

The new lightbox plugin (1.5) with the configurable opimization option will pop up soon in Spartacus or can be downloaded at the FILES section at my blog (see my footer) immidiately.
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

The optimization portion is not working for me, but with that turned off its working great. I am now running lightbox plus and its working like a charm again.

Thanks.

edit oct 7: Wow, I said I was "not" running lightbox plus... thats a bad typo
Last edited by chickens on Sun Oct 07, 2007 10:46 pm, edited 1 time in total.
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

Cool, good to read that. I am still interested in *why* this didn't work at your site.. Hmm..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

I've also had problems with the karma plugin for page views not hooking in as well. I got rid of the issue by displaying random entries in the side bar instead of the top viewed entries.

The only thing I could think it might be is my database, its a mess. I've installed and uninstalled nearly every plugin available. I could be that some of that mess is getting in the way of the plugins. I've tried cleaning out the database, but that just turned into a huge mess. :roll:

Now that I think about it I also had some problems when trying to move over to sqlite from mysql. I believe the reason was due to some odd database items from various plugins.
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

No, I think, the problem is more general, as you are not nearly the only person reporting this problem. I think it has to do with a PHP4 installation, as all complainers were PHP4 users. But I did an extra patch for PHP4 users and don't see the problem there.. Hmm..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

My Server info:
PHP Version 5.2.3
mySQL 5.0.27

Note to self: update php to 5.2.4
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Post by blog.brockha.us »

Wow! This is a PHP5 server. Could you check for me, if it works with the plugin version 1.5, if you swith on the "js optimization" in the plugins configuration?
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Its currently set to Yes, actually all options are set to yes.

http://zacgarrett.com/2007/10/06/China- ... RSS-Feeds/

With that option set to no the script works like it has in the past.
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

On a fairly fresh install (my test site) on the same server the optimazation works just fine. (Yes the image is just blue)
http://zonalnet.com/serendipity/index.p ... -test.html
Post Reply