Page 1 of 3

Lightbox 1.4 does not hook in

Posted: Sun Sep 30, 2007 9:15 pm
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

Posted: Sun Sep 30, 2007 9:56 pm
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/

Posted: Mon Oct 01, 2007 7:50 am
by kleinerChemiker
me too. s9y 1.2 and lightbox 1.4 from spartacus.

Posted: Fri Oct 05, 2007 4:39 pm
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).

Posted: Fri Oct 05, 2007 7:47 pm
by chickens
I am running php 5.2.3 and its not working for me.

Posted: Sat Oct 06, 2007 12:32 pm
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.

Posted: Sat Oct 06, 2007 1:38 pm
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.

Posted: Sat Oct 06, 2007 8:57 pm
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

Posted: Sun Oct 07, 2007 10:41 pm
by blog.brockha.us
Cool, good to read that. I am still interested in *why* this didn't work at your site.. Hmm..

Posted: Sun Oct 07, 2007 10:56 pm
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.

Posted: Sun Oct 07, 2007 10:59 pm
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..

Posted: Sun Oct 07, 2007 11:05 pm
by chickens
My Server info:
PHP Version 5.2.3
mySQL 5.0.27

Note to self: update php to 5.2.4

Posted: Sun Oct 07, 2007 11:08 pm
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?

Posted: Sun Oct 07, 2007 11:11 pm
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.

Posted: Sun Oct 07, 2007 11:17 pm
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