Author: Kayjey (
www.straydesign.com)
Version: v0.9 RC
About:Big images can ruin the layout of a Forum. While loading, they also can cause the layout to shift. I've created this custom tag and linked popup that will display an image thumbnail (browser-resized) and links it to a large popup for that image.
Installation:There's two parts to this.
Step 1Download
www.straydesign.com/customers/misc/ubb-imagepopup.zipUnzip and upload the PHP file into your root 'forum' folder. (It does not need editing.)
Step 2In the Forum Control Panel, go to 'content rebuilder', tab 'custom tags' and create a new 'custom tag'
Enabled = yes
Show in menu = probably yes
Custom tag = imgpop
Menu description = Image Popper
User prompt hint = Enter full image URL.
Matching regex = (.+?)
Resulting markup =
<a href="http://www.fccuk.org/forum/imagepopup.php?image=\\1" onclick="window.open('http://www.EXAMPLE.COM/FORUM/imagepopup.php?image=\\1', 'imagepopup', 'toolbar=no,scrollbars=no,width=300,height=300'); return false;"><img src="\\1" style="border: 1px solid black; padding: 5px;" height="60" vspace="5" alt="click to enlarge"></a>
NOTEYou should replace "EXAMPLE.COM/FORUM" with your own UBB URL. (In here it would be "ubbdev.com/forums".)
UsageUse it on your Forum by using the Media button in your post/edit box and select "Image Popper".
Straight code:
[imgpop]full url to my image[/imgpop]
Development phaseThis has been tested to work with most image hosts. Although it should work 100%, I'll update when there's something annoying that needs a fix. Or when I get suggestions...
Demohttp://www.fccuk.org/forum/ubbthreads.php?ubb=showflat&Number=770874#Post770874