The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Im trying to add lightbox to my forum for all images posted with [IMG] tags, but im having problems making it work...
I've downloaded a jQuery lightbox called Colorbox, uploaded it to the root. Then put this in my headerinclude template: Code:
<link rel="stylesheet" href="colorbox.css" /> <script src="jquery.min.js"></script> <script src="jquery.colorbox-min.js"></script> Code:
return '<img src="' . $link . '" border="0" alt="" />'; Code:
http://www.jacklmoore.com/colorbox/ ![]() --------------- Added [DATE]1393854383[/DATE] at [TIME]1393854383[/TIME] --------------- I got a response from the developer on twitter, he said this: Code:
You could do something like this $('img').colorbox({href: function(){ return this.src; }, title: function(){ return this.alt; }); Code:
return '<img src="' . $link . '" border="0" alt="" />'; ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|