Page 1 of 2

photo bbcode w/ lightbox

PostPosted: Thu Jan 03, 2008 12:47 pm
Author: Helter
This bbcode [photo] will display a 300px wide resized image. When selected, it will expand to fullsize using the "LightBox" mod
[url=http]photo bbcode w/ lightbox[/url]
Let me know if you have any trouble installing it because I just finished writing it.
here are a few examples
[photo]http://www.forumimages.co.uk/images/custom_provista.jpg[/photo]
[photo]http://www.forumimages.co.uk/images/main_logo.jpg[/photo]
[photo]http://www.integramod.com/images/IM142.gif[/photo]

also, once this is installed, you may use lightbox to display any image on your forum by adding rel="lightbox" to your image path.
example code
Code: Select all
<a><img></a>

<a><img></a>

Re: photo bbcode w/ lightbox

PostPosted: Thu Jan 03, 2008 11:52 pm
Author: CaNNon
I'm using your dark theme (black) and I'm missing one location line.

Code: Select all
 #-----[ FIND ]---- missing this? ----------------------------#type="text/java.script" src="templates/fi_newsfader_user.js"  


Is it something I should install or is there another line i can find?

Re: photo bbcode w/ lightbox

PostPosted: Fri Jan 04, 2008 12:19 am
Author: Helter
doh!... I wrote it on my personal site.

add it after

Code: Select all
<link>


:)

Re: photo bbcode w/ lightbox

PostPosted: Fri Jan 04, 2008 12:35 am
Author: CaNNon
Pretty easy to install and it looks really cool! <img>

Re: photo bbcode w/ lightbox

PostPosted: Fri Jan 04, 2008 12:49 am
Author: Helter
I like it because it wont break your forum. You can post any size image and it will display at 300px wide till clicked

Re: photo bbcode w/ lightbox

PostPosted: Sun Jan 06, 2008 2:58 pm
Author: spaniel
i can't get this to work - i've installed it all but when i click on the little camera nothing happens.


Spoke too soon!! It works but the X Close image doesn't appear..... i'll check my uploads again <img>

Re: photo bbcode w/ lightbox

PostPosted: Sun Jan 06, 2008 3:37 pm
Author: spaniel
done and seems to work well - thnx for this ingenious piece of js <img>

PostPosted: Mon Jan 07, 2008 6:24 am
Author: BitingMonkey
This is a very slick and well polished mod! Thank you very much! Your second post helped on where to add in the overall_header.tpl. I got stuck there too. The install.txt still doesn't mention that bit when I downloaded it today anyways. Also there are two instances of that line in that file I put mine after the first one assuming it didn't matter? It seems to work fine.
~If your regular bbcode stops working after this try deleting your cache files ACP:ImPortal ~that had me stuck for a bit.
Thanks again very nice indeed.

Re: photo bbcode w/ lightbox

PostPosted: Mon Jan 07, 2008 3:16 pm
Author: Helter
I thought I'd updated it, but it really dosent matter where as long as it is before </head>

PostPosted: Tue Jan 08, 2008 1:24 am
Author: spaniel
this works with Integra2 and fisubice, but it doesnt seem to work with fisubice_black.

The images dont pop up, but load way way down the screen far below the forum!

What could be the cause of this?


fisubice has a .css for each colour so i placed that code in each one.

PostPosted: Tue Jan 08, 2008 1:34 am
Author: spaniel
ok got it to work with fisubice_black - my webhost has been playing up again! They corrupted the .css file.

Which makes me wonder, which is the most reliable webhost for hosting IntegraMod?

PostPosted: Tue Jan 08, 2008 1:38 am
Author: spaniel
No no - the problem seems browser related.

Works fine on firefox, but loads way down the screen on Opera.


And as i'm on a mac i hav no idea how it works on IE.

Re: photo bbcode w/ lightbox

PostPosted: Tue Jan 08, 2008 1:57 am
Author: Helter
ive never checked it on opera so I cant comment, but is it that way on every template now?

PostPosted: Tue Jan 08, 2008 7:16 am
Author: spaniel
i've uninstalled Integra2, but on fisubice and its colours it is like that.

what's it like on IE? i only hav the mac version 5.2 and that won't even let me access the IntegraMod.com website!

Re: photo bbcode w/ lightbox

PostPosted: Tue Jan 08, 2008 9:23 am
Author: CaNNon
do you have firefox?
[url=http]http://www.mozilla.com/en-US/firefox/all.html[/url]