SMFHacks.com
SMF Classifieds => Support => Topic started 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
-
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
-
Around line 489 remove this from sources/classifieds.php
// 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" />';
-
Confirmed, works now... :)
Thanks!