Is the Lightbox version in 4.X rolled by the VBulletin team or was this created by a third party and is this available as a download from somewhere for other uses? Looked through some scripts on the server and can't find reference so assume VB created it themselves. Also looked at a lot of versions out there and am not seeing the exact kind of product. I have a Classified area and would like to implement the same type of Lightbox version if possible.
Did VB roll their own Lightbox?
Collapse
X
-
Lightbox in vbulletin product is coded by the vbulletin devs team, but actually its similar to other lightbox out there in the web
you could use it by adding the script tag for 'clientscript/vbulletin_lightbox.js' to your page or template, call using:
Code:vBulletin.register_control("vB_Lightbox_Container", lightbox_container_id, lightbox_trigger_events)
Please feel free to contact me if you have any questions or concerns
Links: vBulletin Manual - Code Documentation - FAQ - Bug Tracker - Lemon Juice
vBulletin 5 Connect: Extensions - Articles - Features - Purchases -
-
Where does this call get placed?
Lightbox in vbulletin product is coded by the vbulletin devs team, but actually its similar to other lightbox out there in the web
you could use it by adding the script tag for 'clientscript/vbulletin_lightbox.js' to your page or template, call using:
Code:vBulletin.register_control("vB_Lightbox_Container", lightbox_container_id, lightbox_trigger_events)
Comment
-
In the template, for example:
PHP Code:<vb:if condition="$show['lightbox']">
<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
</vb:if>
PHP Code:<vb:if condition="$show['lightbox']">
<!-- lightbox scripts -->
<script type="text/javascript">
<!--
vBulletin.register_control("vB_Lightbox_Container", "posts", {vb:raw vboptions.lightboxenabled});
//-->
</script>
<!-- / lightbox scripts -->
</vb:if>
No private support, only PM me when I ask for it. Support in the forums only.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment