Announcement

Collapse
No announcement yet.

Did VB roll their own Lightbox?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hartmut
    replied
    Originally posted by T2000 View Post
    Where does this call get placed?
    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> 

    Leave a comment:


  • T2000
    replied
    Where does this call get placed?

    Originally posted by Abdulla Ashoor View Post
    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)
    if you want, you can download UC version from member area to see functions of vbulletin_lightbox.js

    Leave a comment:


  • Zachery
    replied
    test title

    test

    Leave a comment:


  • sticheno
    replied
    OK. Thanks.

    Leave a comment:


  • Abdulla Ashoor
    replied
    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)
    if you want, you can download UC version from member area to see functions of vbulletin_lightbox.js

    Leave a comment:


  • sticheno
    started a topic [Forum] Did VB roll their own Lightbox?

    Did VB roll their own Lightbox?

    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.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X