Announcement

Collapse
No announcement yet.

Did VB roll their own Lightbox?

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

  • [Forum] 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.

  • #2
    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
    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

    Comment


    • #3
      OK. Thanks.

      Comment


      • #4
        test title

        test

        Comment


        • #5
          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

          Comment


          • #6
            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> 
            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.
            Working...
            X