Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 2,849
R
RandyM Offline OP
Spotlight Winner
OP Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
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.

Sponsored Links
Joined: Jan 2001
Posts: 1,309
B
Member / Blamoholic
Offline
Member / Blamoholic
B
Joined: Jan 2001
Posts: 1,309
Cool, lookin good X. laugh

Joined: Jun 2001
Posts: 2,849
R
RandyM Offline OP
Spotlight Winner
OP Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
Thanks Bookie...

Joined: Mar 2001
Posts: 7,394
L
LK Offline
Admin / Code Breaker
Offline
Admin / Code Breaker
L
Joined: Mar 2001
Posts: 7,394
Cool, lookin good X laugh

Joined: Jun 2001
Posts: 2,849
R
RandyM Offline OP
Spotlight Winner
OP Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
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...

Sponsored Links
Joined: May 2001
Posts: 6,708
L
Member
Offline
Member
L
Joined: May 2001
Posts: 6,708
Maybe on purpose? tipsy

Joined: Jun 2001
Posts: 2,849
R
RandyM Offline OP
Spotlight Winner
OP Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
Quote
quote:
Originally posted by Lord Dexter:
Maybe on purpose? tipsy
I don't know, LK left out the period... wink

Joined: May 2002
Posts: 28
N
Junior Member
Offline
Junior Member
N
Joined: May 2002
Posts: 28
Thanks! its appreciated

Joined: Mar 2001
Posts: 7,394
L
LK Offline
Admin / Code Breaker
Offline
Admin / Code Breaker
L
Joined: Mar 2001
Posts: 7,394
Muhahahahahahaha

Joined: Jun 2001
Posts: 2,849
R
RandyM Offline OP
Spotlight Winner
OP Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
I just noticed that this was not allowing the posts to be quoted or edited properly if HTML was turned off...fixed now.

Sponsored Links
Joined: Aug 2000
Posts: 178
P
Member
Offline
Member
P
Joined: Aug 2000
Posts: 178
Works great in 6.5 -

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

Thanks!

Joined: Oct 2002
Posts: 394
F
Enthusiast
Offline
Enthusiast
F
Joined: Oct 2002
Posts: 394
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 ?

Joined: Aug 2000
Posts: 178
P
Member
Offline
Member
P
Joined: Aug 2000
Posts: 178
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!!

Joined: May 2000
Posts: 1,168
D
Member
Offline
Member
D
Joined: May 2000
Posts: 1,168
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

Joined: Jan 2003
Posts: 3,456
Likes: 2
I
Master Hacker
Offline
Master Hacker
I
Joined: Jan 2003
Posts: 3,456
Likes: 2
This hack won't work with 6.6+ I reccomend Even Advanceder Text . It comes with this mod plus some others

Joined: May 2000
Posts: 1,168
D
Member
Offline
Member
D
Joined: May 2000
Posts: 1,168
Nevermind, I got it to work beautifully.

- MT

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,809
Likes: 12
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,809
Likes: 12
Plan on installing it tonight wink ... the only part of "advancecd-er text" i wanted wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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


- Allen wavey
- What Drives You?
Joined: Jun 2001
Posts: 2,849
R
RandyM Offline OP
Spotlight Winner
OP Offline
Spotlight Winner
R
Joined: Jun 2001
Posts: 2,849
My members love it, it keeps the pages looking neat and tables within the browser.

Joined: Jan 2000
Posts: 5,809
Likes: 12
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,809
Likes: 12
Now to find the "thumb" image I made lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Does it look like this?

thumbsup

tipsy


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
I
Master Hacker
Offline
Master Hacker
I
Joined: Jan 2003
Posts: 3,456
Likes: 2
Gizzy, the image is located in the Even Advanceder Text hack.

cool Oh yeah, got to plug it again tipsy

Joined: Jan 2000
Posts: 5,809
Likes: 12
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,809
Likes: 12
My thumb.gif is in there? fun fun fun! lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Dec 2003
Posts: 7
C
Junior Member
Offline
Junior Member
C
Joined: Dec 2003
Posts: 7
I added this hack to v6.4, but where do I find the results? I don't see it anywhere (CP nor Forum) help

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
You see it when you use it... use [thumb] [/thumb] around the images you need to show a thumbnail of smile


- Allen wavey
- What Drives You?

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,552
Posts293,830
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 219
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 8
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,809
Greg Hard 4,625
Top Posters(30 Days)
stell 3
Morgan 1
isaac 1
Gizmo 1
Top Likes Received
isaac 66
Gizmo 12
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.117s Queries: 66 (0.057s) Memory: 3.4905 MB (Peak: 3.7824 MB) Data Comp: Zlib Server Time: 2021-03-08 18:17:03 UTC
Valid HTML 5 and Valid CSS