Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
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
Member / Blamoholic
Member / Blamoholic
Offline
Joined: Jan 2001
Posts: 1,309
Cool, lookin good X. laugh

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

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

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
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
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Maybe on purpose? tipsy

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
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
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 28
Thanks! its appreciated

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

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
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
Member
Member
Offline
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
Enthusiast
Enthusiast
Offline
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
Member
Member
Offline
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
Member
Member
Offline
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
Master Hacker
Master Hacker
Offline
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
Member
Member
Offline
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
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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
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
Spotlight Winner
Spotlight Winner
Offline
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,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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
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
Master Hacker
Master Hacker
Offline
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,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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
Junior Member
Junior Member
Offline
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
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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)