Print Page | Close Window

Image Display Question

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21192
Printed Date: 29 March 2026 at 12:51pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Image Display Question
Posted By: javi712
Subject: Image Display Question
Date Posted: 01 September 2006 at 6:10pm
Hello Everyone,

I was wondering if anyone knew where/how I can obtain the code or necessary files so that when someone clicks on an image on my forum the background darkens and the image appears as a popup type thing. I assume its done via javascript.

Does anyone know what I'm talking about?

I personally think its a pretty cool feature to have on your forums... especially if you have a lot of images being displayed.

Thanks in advance!



Replies:
Posted By: Mikey
Date Posted: 01 September 2006 at 10:24pm
I think the term used is 'lightbox' if you do a search on google for the javascript lightbox or 'thickbox' that should be what your after.

EDIT: found http://www.huddletogether.com/projects/lightbox2/ - this for ya. might be what ya after.


-------------
Handyman man?


Posted By: javi712
Date Posted: 02 September 2006 at 5:56am
Mikey.. you're da man... that's precisely what I was looking for. I will give it a go tomorrow and see if I can implement it into my forum tomorrow. Doesn't seem like a hard task after reading their instructions a bit.

Just in case though, has anyone already implemented this into their forum?


Posted By: Mikey
Date Posted: 02 September 2006 at 10:57am
No but after poking around on the sites for a bit i think this could be  a great addition to the forum.

There is also one called http://jquery.com/demo/thickbox/ - thickbox , the diffrence is thickbox can contain any HTML not just images. Endless possibilities!


-------------
Handyman man?


Posted By: javi712
Date Posted: 09 September 2006 at 3:45am
Okay... I tried adding the code and seeing how I'm not a programmer.. its comes to me as no surprise that I can't implemente it lol... maybe someone else can help me out...

this is what the image needs in order to function:


<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>


so it looks like i need to make the image an anchor first... i was looking at functions/functions_format_post.asp as a place to add it but couldn't figure anything.

can anyone please help me out!

thanks in advance!


Posted By: javi712
Date Posted: 13 September 2006 at 5:54pm
anyone


Posted By: aks427
Date Posted: 14 September 2006 at 1:31am

You've got the right page to edit I think...

Look for something along the line of this..
 
strTempMessage = Replace(strTempMessage, "[/IMG]", """>", 1, -1, 1)
 
And change it to something like this
 
strTempMessage = Replace(strTempMessage, "[/IMG]", """ rel=""lightbox"">", 1, -1, 1)


Posted By: javi712
Date Posted: 14 September 2006 at 1:38am
that's what i was trying to edit, but it wasn't working for me... let me give it a try with your code... thanks for the suggestion :)


Posted By: javi712
Date Posted: 14 September 2006 at 1:55am
aks427... i added what you suggested but it still doesn't work... i think i need to add the "<a href" somewhere to make the image an anchor link... any idea where I can add that at?

thanks in advance!


Posted By: aks427
Date Posted: 14 September 2006 at 5:32am
I think that would only change images that were posted using the tags.  Not sure about the ones inserted using the image upload.
 
If I have time, I'll look more into later.


Posted By: javi712
Date Posted: 14 September 2006 at 5:41am
that would be great man... i appreciate any help!!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net