Did VB roll their own Lightbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sticheno
    Member
    • Jul 2008
    • 38
    • 4.2.x

    [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.
  • Abdulla Ashoor
    Senior Member
    • Feb 2005
    • 628
    • 5.6.4

    #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

    • sticheno
      Member
      • Jul 2008
      • 38
      • 4.2.x

      #3
      OK. Thanks.

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        test title

        test

        Comment

        • T2000
          New Member
          • Dec 2008
          • 3

          #5
          Where does this call get placed?

          Originally posted by Abdulla Ashoor
          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

          • Hartmut
            Senior Member
            • Nov 2007
            • 2870
            • 4.2.x

            #6
            Originally posted by T2000
            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...