photo bbcode w/ lightbox

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

photo bbcode w/ lightbox

PostAuthor: Helter » Thu Jan 03, 2008 1:47 pm

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>
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: photo bbcode w/ lightbox

PostAuthor: CaNNon » Fri Jan 04, 2008 12:52 am

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?
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: Helter » Fri Jan 04, 2008 1:19 am

doh!... I wrote it on my personal site.

add it after

Code: Select all
<link>


:)
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: photo bbcode w/ lightbox

PostAuthor: CaNNon » Fri Jan 04, 2008 1:35 am

Pretty easy to install and it looks really cool! <img>
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: Helter » Fri Jan 04, 2008 1:49 am

I like it because it wont break your forum. You can post any size image and it will display at 300px wide till clicked
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: photo bbcode w/ lightbox

PostAuthor: spaniel » Sun Jan 06, 2008 3:58 pm

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>
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: spaniel » Sun Jan 06, 2008 4:37 pm

done and seems to work well - thnx for this ingenious piece of js <img>
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: BitingMonkey » Mon Jan 07, 2008 7:24 am

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.
Last edited by BitingMonkey on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

BitingMonkey
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Sat Nov 11, 2006 5:32 am
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: Helter » Mon Jan 07, 2008 4:16 pm

I thought I'd updated it, but it really dosent matter where as long as it is before </head>
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: spaniel » Tue Jan 08, 2008 2:24 am

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.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Tue Jan 08, 2008 2:34 am

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?
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Tue Jan 08, 2008 2:38 am

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.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: Helter » Tue Jan 08, 2008 2:57 am

ive never checked it on opera so I cant comment, but is it that way on every template now?
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: spaniel » Tue Jan 08, 2008 8:16 am

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!
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: CaNNon » Tue Jan 08, 2008 10:23 am

do you have firefox?
[url=http]http://www.mozilla.com/en-US/firefox/all.html[/url]
Last edited by CaNNon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Image
User avatar
CaNNon
Sr Integra Member
Sr Integra Member
 
Posts: 750
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 19, 2007 12:15 pm
Cash on hand: 0.00

PostAuthor: spaniel » Tue Jan 08, 2008 3:46 pm

Yes. It's not me i'm worried about.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: sanji » Tue Jan 08, 2008 10:26 pm

Seems really nice!

I wonder, would it be possible to adapt it to work with the album image tag, so that a thumbnail picture can be magnified in that lightbox rather than open in a new window ?

That would be really great! And forums where many images are already posted could be updated immediately, without the need to rewrite the tag...

sanji
Last edited by sanji on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img]http://www.secret-japan.com/forum/images/banners/fuji%20secret-japan%2088x31.gif[/img] [url=http]Secret Japan[/url] : discover Japan off the beaten tracks

sanji
Sr Integra Member
Sr Integra Member
 
Posts: 291
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 9:18 pm
Cash on hand: 0.00

PostAuthor: spaniel » Wed Jan 09, 2008 1:10 am

And the avatar and images added to the profile section as well - would be good if it could work there too.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: defiantwisdom » Thu Jan 10, 2008 3:21 am

"spaniel";p="30198" wrote:And the avatar and images added to the profile section as well - would be good if it could work there too.


spaniel,

I did some research on what you were saying about the avatar. I'm not sure if there is a way to code it into your page, but I think it might have a negative reaction. One thing you have to remember is that your avatar is the hotlink to your profile. I tried it on mine, and it just sat there loading forever. It did that because it was trying to link to my profile and open the lightbox at the same time.

You could go in and take out the redirect if you wanted, then it should work just fine.

I did come up with a quick way to add the light box feature to my signature though. When you go into your profile to change your signature, the camera is not in the BBCode box. But, if you manual type in:

Code: Select all
[photo]http]


It adds the lightbox feature to your signature. You can see an example of it [url=http]here[/url] on my site. Just click the logo in my signature. Or, you can try it out right here and just click the image in my signature below ...

Hope this works for you guys.

Cheers
Last edited by defiantwisdom on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[color=black][size=99px]
User avatar
defiantwisdom
Newbie
Newbie
 
Posts: 26
Likes: 0 post
Liked in: 0 post
Joined: Tue Dec 25, 2007 8:42 pm
Cash on hand: 0.00

PostAuthor: spaniel » Thu Jan 10, 2008 8:28 am

That is good news that we can add it to the signature and i'll certainly use it that way, which will hopefully encourage members to have a signature.

I guess i'm thinking of more profile dependent websites where being able to arrange photos directly on the profile would be a plus.

I wouldn't know how to code that tho <img>


Thanks for the good news !
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

Re: photo bbcode w/ lightbox

PostAuthor: defiantwisdom » Thu Jan 10, 2008 8:42 am

I've been toying around with trying to get it to work with the photo album. So far, no luck. I did, however, get it to work on the Upload button on the album page. That was an accident ... That and it tried to open the upload page and the lightbox at the same time. <img> Oh well, I will keep trying until someone smarter than me can figure it out.
Last edited by defiantwisdom on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[color=black][size=99px]
User avatar
defiantwisdom
Newbie
Newbie
 
Posts: 26
Likes: 0 post
Liked in: 0 post
Joined: Tue Dec 25, 2007 8:42 pm
Cash on hand: 0.00

PostAuthor: spaniel » Thu Jan 10, 2008 8:56 am

Thanks. I think it's useful (and time-saving) to be able to view photo gallery pictures on the profile within the profile - without having to go to another part of the site.

I've also noticed that once you go to someone's personal gallery it's not so easy to go back to their profile <img>

Perhaps a link on the personal gallery is needed.
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: spaniel » Sat Jan 26, 2008 10:14 pm

I added this mod to a fresh install of IM141 and now the image url's are loading in a new window instead of popping up, and it's doing this on all browsers. On my old install, it worked fine.

Any idea as to why?


Solved:
the .scriptaculous.js file was missing - i hate my ftp program (adobe), i really do <img>
Last edited by spaniel on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

spaniel
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 4:29 pm
Cash on hand: 0.00

PostAuthor: fldodger » Wed Feb 06, 2008 4:33 pm

Done and works great.
THANKS ALOT
Last edited by fldodger on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

fldodger
Members
Members
 
Posts: 52
Likes: 0 post
Liked in: 0 post
Joined: Tue Jul 03, 2007 11:02 am
Cash on hand: 0.00


Return to Mods/Hacks

Who is online

Registered users: App360MonitorBot, Bing [Bot]