Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 175
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 153
Total: 153

Author Topic: Lightbox Issue  (Read 6391 times)

0 Members and 1 Guest are viewing this topic.

Offline hvvzw

  • Member
  • *
  • Posts: 8
    • View Profile
Lightbox Issue
« on: September 01, 2011, 02:09:58 pm »
My lightbox will not work.
It show always the picture in a new page.


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Lightbox Issue
« Reply #1 on: September 01, 2011, 04:18:17 pm »
Link to a page where it is not working
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline hvvzw

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Lightbox Issue
« Reply #2 on: September 02, 2011, 04:10:14 am »
See PM because only registered members can see it.

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Lightbox Issue
« Reply #3 on: September 02, 2011, 08:37:33 am »
   There is a conflict with jquery this code
Code: [Select]
<script type="text/javascript" src="http://www.hondenvrienden.be/forum/Themes/default/scripts/jquery.min.js"></script>
<script type="text/javascript" src="http://www.hondenvrienden.be/forum/Themes/default/scripts/estadisticas.js"></script>

You need to call  jQuery.noConflict(); after jquery is loaded

More information
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline hvvzw

  • Member
  • *
  • Posts: 8
    • View Profile
Re: Lightbox Issue
« Reply #4 on: September 02, 2011, 01:42:06 pm »
Brilliant, after hours of searching you come with this solution.

Thank you very much, this is now service

Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Lightbox Issue
« Reply #5 on: January 18, 2014, 12:27:25 pm »
I have the same problem, it's a long time, I don't remember when it appeared. I don't see jquery in my pages source code, should I? I see lightbox.js. I don't know what to do from there. Can you have a look?
(link sent by PM)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Lightbox Issue
« Reply #6 on: January 18, 2014, 12:37:36 pm »
I have the same problem, it's a long time, I don't remember when it appeared. I don't see jquery in my pages source code, should I? I see lightbox.js. I don't know what to do from there. Can you have a look?
(link sent by PM)
I did a test in Firefox on the link you sent me and viewed a classifieds listing and the lightbox did appear when I clicked on the picture.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Lightbox Issue
« Reply #7 on: January 18, 2014, 03:10:30 pm »
OK, I have found that:

1) lightbox does not work for the main image because in classifieds2.template.php you must remove the target="_blank"
Code: [Select]
// Show the main image
echo '
<tr class="windowbg2">
<td align="center">';
if (empty($row['remotefilename']))
echo '<a href="' . $modSettings['class_url'] . $row['filename']  . '" target="_blank" rel="lightbox[listing]"><img src="' . $modSettings['class_url'] . $row['thumbfilename']  . '" alt="" /></a>';
else
echo '<a href="' . $row['remotefilename']  . '" target="_blank" rel="lightbox[listing]"><img src="' . $row['remotefilename']  . '" alt="" /></a>';

2) lightbox does not work for remote images

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5008 Views
Last post January 30, 2008, 07:19:53 pm
by SMFHacks
Lightbox?

Started by Wegg Support

5 Replies
5342 Views
Last post March 16, 2009, 02:01:26 pm
by Wegg
Lightbox

Started by nogas Support

3 Replies
4267 Views
Last post April 11, 2009, 08:41:53 am
by SMFHacks
12 Replies
5662 Views
Last post October 04, 2010, 06:24:28 pm
by djroc
1 Replies
3087 Views
Last post December 21, 2012, 09:11:57 am
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal