UBB.Dev
Description: This adds a new ubb code (thumb). When a users posts an image with the thumb tag it is display with a fixed width of 400 pixels (you can change the code to have any width). When you click on the image it opens the original fullsize in a new window.

This DOES NOT reduce the size of the image, you are still downloading the whole pic file. It does provide an alternative so that people won't use IMG to post 1600x1200 images that stretch the topic page and look really ugly. This is great for gaming sites that have a lot of screenies.

I also added the reverse code so that it is quotable and editable (it broke if HTML is turned off before that).

Demo: Click here

Download: Click here

Download for 6.6 - 6.7.2: Click Here


Please report any bugs in this thread, and if anyone determines that this hack has security issues please point them out.
Cool, lookin good X. laugh
Thanks Bookie...
Cool, lookin good X laugh
Quote
quote:
Originally posted by Bookie:
Cool, lookin good X. laugh
quote:
[qb]Originally posted by LK:
Cool, lookin good X laugh [/qb]
That's really scary...
Maybe on purpose? tipsy
Quote
quote:
Originally posted by Lord Dexter:
Maybe on purpose? tipsy
I don't know, LK left out the period... wink
Thanks! its appreciated
Muhahahahahahaha
I just noticed that this was not allowing the posts to be quoted or edited properly if HTML was turned off...fixed now.
Works great in 6.5 -

How do I add a THUMB button in the UBBCODE section?

Thanks!
Add this in public_common.pl after or in between any other UBB Codes. I have mine after [Linked Image]


[code][/code]and load a thumb.gif [Linked Image]( by Gizzy) in your nonCGI directory.

Am I right TheX ?
Thanks Felix.

The other thing you have to do is add the following to public_common.pl

after
Code
[/code]add
[code]
Worked great!
Thanks!!
Quote
quote:
Originally posted by Felix 10:
Add this in public_common.pl after or in between any other UBB Codes. I have mine after [Linked Image]


Code
 <a href="javascript: x()" onClick="DoPrompt('thumb');"><img src="$vars_config{NonCGIURL}/thumb.gif" border="0" alt="$vars_wordlets_img{ubbcode_thumbnail}" /></a> 
and load a thumb.gif [Linked Image]( by Gizzy) in your nonCGI directory.

Am I right TheX ?
Where excactly is this line in public_common.pl? I can't find where to add the link. Thanks...

- MT
This hack won't work with 6.6+ I reccomend Even Advanceder Text . It comes with this mod plus some others
Nevermind, I got it to work beautifully.

- MT
Mod updated for 6.6+:

https://www.ubbdev.com/ubb/upload/00000494/thumb67.txt
Plan on installing it tonight wink ... the only part of "advancecd-er text" i wanted wink
Let me know how it goes, Randy has been using it for years, but I've never tried it. It's pretty straight-forward tho smile
My members love it, it keeps the pages looking neat and tables within the browser.
Now to find the "thumb" image I made lol...
Does it look like this?

thumbsup

tipsy
Gizzy, the image is located in the Even Advanceder Text hack.

cool Oh yeah, got to plug it again tipsy
My thumb.gif is in there? fun fun fun! lol
I added this hack to v6.4, but where do I find the results? I don't see it anywhere (CP nor Forum) help
You see it when you use it... use [thumb] [/thumb] around the images you need to show a thumbnail of smile
© UBB.Developers