Page 1 of 1

Lightbox not showing effect [SOLVED]

Posted: Thu Jun 11, 2009 7:15 am
by merder99
Hi,
i'm using Lightbox 1.0.1 - sounds like a great module - slight problem for me.

i have added the css and js tag in the template

i have tried both educating TinyMice (using the rel='lightbox') and also code directly ( {Lightbox image =   etc)

It does put a thumbnail image in place and it does link to the larger image BUT it opens it as a new page rather than applying the Lightbox effect.

ANY help would be gratefully appreaciated.

thanks to all.

Michael

p.s - only think i can think of that is not working is that when i view source, the javascript links dont have a / at the front so maybe it's not pointing to the right directory??? tried to change but the module's permissions won't let me.

FYI - website is at: http://74.200.74.35/index.php?page=gamb ... ent-clinic

thanks

Re: Lightbox not showing effect

Posted: Thu Jun 11, 2009 6:20 pm
by Russ
Hi Michael, try adding the full path to all your Javascript calls

Code: Select all

<__script__ src="http://74.200.74.35/modules/LightBox/js/prototype.js" type="text/javascript"></__script>
<__script__ src="http://74.200.74.35/modules/LightBox/js/scriptaculous.js?load=effects" type="text/javascript"></__script>
<__script__ src="http://74.200.74.35/modules/LightBox/js/lightbox.js" type="text/javascript"></__script> 
Also you are loading more JS (namely Jquery) after this, it may effect it as well?

Re: Lightbox not showing effect

Posted: Mon Jun 15, 2009 7:07 am
by Rolf
Hi merder99

Had similar problems with the album module. Sometimes it didn't work and a few moments later it does...  ???

Changed this below and it was better, for me anyway...

Site admin > Global Settings > Maximum amount of time (seconds) stylesheets can be cached in the browser:
Try setting this parameter to 6000 or something...

I hope this helps.

Regards, Rolf  :)

Re: Lightbox not showing effect

Posted: Mon Jun 15, 2009 4:26 pm
by jcolvard
try:




I use shadowbox and it requires a name for the shadowbox (lightbox[Advertising Examples]) and a title for the window/overlay it also needs a title for the thumb but i dont think lightbox does.

let me know if this helped.
peace

Re: Lightbox not showing effect [SOLVED]

Posted: Tue Jun 23, 2009 2:03 am
by merder99
To let everyone know the solution - was as mentioned by the fantastic people above.

Jquery was clashing with lightbox - also - the javascript paths were not wporking properly.

i can't make changes to the files and re-upload them - server permissions thing (don't really understand that bit)

but i hard-coated the javascript bits and put in the metadata on the page.

thanks all for your help.