LIghtbox Not Working

  • antares
  • Topic Author
  • New Member
  • New Member
More
15 years 3 months ago #493 by antares
LIghtbox Not Working was created by antares
Hi,

I have turned on the Lightbox script option under the "Hot mobility" template. Looking at the generated source code it is including the following code;

<script type="text/javascript" src="/joomla/templates/hot_mobility/js/jquery.lightbox-0.5.min.js"></script>

The following code is for the image;

<span style="font-size: x-small;"><a href="/joomla/images/stories/i2g screencap.gif">
<p style="text-align: center;"><img src="/joomla/images/stories/i2g screencap.gif" width="500" alt="I2G Screenshot" style="vertical-align: middle;" /></p>
</a>

However, the link just opens to a normal image page; no Lightbox!

Here is page link...
www.antares.com.au/joomla/index.php/soft...-gis-camera-software

Any ideas?

peter King

Please Log in to join the conversation.

  • antares
  • Topic Author
  • New Member
  • New Member
More
15 years 3 months ago #494 by antares
Replied by antares on topic Re: LIghtbox Not Working
Hi,

Further to the above it is now working...i needed the id "gallery".

However, the path to the "close button" is wrong! The Jscript is creating a path that includes the entire path where the lightbox link image is located as follows;

"/joomla/index.php/software-products/templates/hot_mobility/images/lightbox-btn-close.gif"

the path should be "joomla/templates..." not "joomla/index.php/software-products/"
This stopes the Close button from displaying.

i don't want to change the js script in case I break it :)

Any ideas?

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
15 years 3 months ago - 15 years 3 months ago #495 by milos
Replied by milos on topic Re: LIghtbox Not Working
Hi,

Why don't you enable mod_rewrite for SEF urls? I think it will work after that. Anyway, you can open file /js/jquery.lightbox-0.5.min.js and there you will find 5 links to the icon images. One of them is:
Code:
templates/hot_mobility/images/lightbox-btn-close.gif

Change it to:
Code:
http://www.yoursite.com/templates/hot_mobility/images/lightbox-btn-close.gif
Last edit: 15 years 3 months ago by milos.

Please Log in to join the conversation.

Time to create page: 0.137 seconds
Powered by Kunena Forum