SMFHacks.com

SMF Classifieds => Support => Topic started by: Darkshadow on March 12, 2017, 10:05:04 am

Title: Classified v2.0 Beta 4 and v4.0.10a breaks Lightbox
Post by: Darkshadow on March 12, 2017, 10:05:04 am
Unfortanly found annother bug ?

My LightBox (INTEGRATE LIGHTBOX v1.6) now broken in Classified Section, in rest of forum ist still works.

Lightbox is comming up, start to resize and freezes without image shown... in Classifieds v2.0 Beta4 the same issue

In Classified v1.2.25 all ok with this lightbox
Title: Re: Classified v2.0 Beta 4 and v4.0.10a breaks Lightbox
Post by: Darkshadow on March 12, 2017, 11:25:34 am
Now more specific info:

i used a smal picture 64x64 (but it also do the same with bigger pictures in classifieds)
- when clicking on this picture from listing, lightbox starts up and start to horizontal resize the picture and stops.
- when clicking outside lightbox, lightbox disappear.
- when clicking the same picture again, lightbox come up again but this time it starts to resize picture vertical and stops again
- so clicking again outside lightbox, lightbox disappear again
- clicking again same picture, the picture will be shon in correct size, bit wiethout lightbox control button  to close picture
- clicking outside lightbox, picture disapear

it seems lightbox will be interrupted by classifieds in each step...

Hope this helps more...

No errors in errorlog shown
Title: Re: Classified v2.0 Beta 4 and v4.0.10a breaks Lightbox
Post by: SMFHacks on March 12, 2017, 11:47:31 am
Around line 489 remove this from sources/classifieds.php

Code: [Select]
// For the ligthbox
$context['html_headers'] .= '<script type="text/javascript" src="' . $modSettings['class_url'] . 'js/prototype.js"></script>
<script type="text/javascript" src="' . $modSettings['class_url'] . 'js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="' .  $modSettings['class_url'] . 'js/lightbox.js"></script>
<link rel="stylesheet" href="' . $modSettings['class_url'] . 'css/lightbox.css" type="text/css" media="screen" />';
Title: Re: Classified v2.0 Beta 4 and v4.0.10a breaks Lightbox
Post by: Darkshadow on March 12, 2017, 01:13:00 pm
Confirmed, works now... :)

Thanks!