How-to Use vB Lightbox for Pictures on Custom Pages
This 'how-to' will explain how to utilize the vB 3.7 feature of a lightbox for images on your custom vB pages.
First, at the bottom of the page you are working on, right above where you would put the $footer variable, add the following: HTML Code:
<!-- lightbox scripts --> Here is an example: HTML Code:
<div id="zzzzz"> href - place the URL of the image that you want to show up in the lightbox rel - that is set to "'Lightbox' Here is an example: HTML Code:
<a href="http://www.vbulletin.com/forum/images/misc/vbulletin3_logo_white.gif" rel="Lightbox"> Note: You may change the 'zzzzz' to anything, just make sure BOTH places say the same and that there are no conflicts with other IDs. |
Hmm, this isn't working for me on vB 3.7.2. I compared it with the vB Lightbox for attachments, ... but I don't see any differences or changes.
The included JavaScript is blocking the href="" link from working (so it is doing something), but there's no Lightbox opening. |
hmm thank you, but it doesnt work
|
works for me using 3.7.2
|
1 Attachment(s)
also not working for me...
Firebug shows the following error: |
h?
for me its also not working this is my code: HTML Code:
<div class="alt1 block_row" id="flickrfotos"> HTML Code:
<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v=380"></script> |
nobody have a idee why it's not working?
|
May there be anything that needs to be changed on VB 3.8.1?
Can anybody help? Thanks a lot. |
* The 'rel' attribute is rel="Lightbox_11111111" now - Lightbox_ + unique ID for all images in the set.
* <a href should be a script that returns an XML page that has html (with link inside), date, time, etc tags. You can look for an example in attachment.php, in the section devoted to the AJAX processing. |
I am currently working on the issue with lightbox within vB. So far just getting a black box so trying to figure out how vB can use a php file to do it instead of an html or xml file.
--------------- Added [DATE]1243920951[/DATE] at [TIME]1243920951[/TIME] --------------- Apparently there is no current way to implement vB's lightbox with custom pages. It was included only for use with attachments especially in 3.8.x |
All times are GMT. The time now is 06:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|