![]() |
How To Add A jQuery lightbox - Colorbox
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" /> 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="" />'; |
All times are GMT. The time now is 07:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|