PDA

View Full Version : vBLightbox on vBA CMPS portal!


Luky
04-08-2007, 10:00 PM
NOTE: This is an addon for vBLightbox so it can be used on all pages! (https://vborg.vbsupport.ru/showthread.php?p=1223522)
Hey, its really easy! Just 1 template edit and your all set! This works on all pages relating to vB btw!

Find the template: adv_portal

Find:
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js"></script></if>After add:
<!-- vBLightbox by jdsinclair for vBA CMPS by Jay -->
<script type="text/javascript" src="clientscript/prototype.js"></script>
<script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="clientscript/lightbox.js"></script>
<link rel="stylesheet" href="clientscript/vbulletin_css/lightbox.css" type="text/css" media="screen" />
<!-- end of vBLightbox -->And your all done!

To add it to other pages, just put that bit of code in the header ;)

Don't forget to upload the /clientscript folder to the same location as your vBA CMPS page!

So if your vBA CMPS page is in /public_html and your vBulletin is in /public_html/vb you should have the /clientscript folder in /public_html/clientscript and /public_html/vb/clientscript

dbirosel
04-10-2007, 02:38 AM
Do you have a demo site we can go to, to check it out? :D

ZomgStuff
04-10-2007, 03:31 AM
Yes, screenshot please!

Luky
04-10-2007, 05:31 AM
Uh, its kinda self explanatory. But my website has it, http://www.alchemist-team.net/

kall
04-10-2007, 05:48 AM
2 questions:

1) What 'clientscript folder' are we supposed to upload?
2) Does this require an additional modification to be installed?
2a) If so, please name and link to it

and a comment:

vBACMPS usually pulls the correct path for things by itself, by replacing URLs that match a certain pattern, in certain templates.

Rather than telling everyone to duplicate their /clientscript folder, which (at the very least) increases their Space Used unnecessarily, why not put the CORRECT path in your instructions?

dbirosel
04-10-2007, 06:24 AM
Yes, this:

http://www.huddletogether.com/projects/lightbox/

Luky
04-10-2007, 12:09 PM
No you dont need that, you just gota install vBLightbox! (https://vborg.vbsupport.ru/showthread.php?p=1223522) The client script folder is in it ;)

ezpassage
04-21-2007, 01:59 PM
installed and working great. thanks!

Luky
04-29-2007, 09:47 AM
No problem, you can add that code to the header of any page to make it work, or you can put it in header_includes or what ever template to make it work on every page ;)