|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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.
|
|
|
|
Joined: Jan 2001
Posts: 1,309
Member / Blamoholic
|
Member / Blamoholic
Joined: Jan 2001
Posts: 1,309 |
Cool, lookin good X. 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Cool, lookin good X 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote:
Originally posted by Bookie: Cool, lookin good X. quote: [qb]Originally posted by LK: Cool, lookin good X [/qb] That's really scary...
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Maybe on purpose? 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by Lord Dexter: Maybe on purpose? I don't know, LK left out the period... 
|
|
|
|
Joined: May 2002
Posts: 28
Junior Member
|
Junior Member
Joined: May 2002
Posts: 28 |
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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.
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
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
Joined: Oct 2002
Posts: 394 |
Add this in public_common.pl after or in between any other UBB Codes. I have mine after [code][/code]and load a thumb.gif ![[Linked Image]](http://www.undergroundnews.com/ubb%20mods/gfx/frost/thumb.gif) ( by Gizzy) in your nonCGI directory. Am I right TheX ?
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
Thanks Felix. The other thing you have to do is add the following to public_common.pl after Worked great! Thanks!!
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
quote: Originally posted by Felix 10: Add this in public_common.pl after or in between any other UBB Codes. I have mine after
<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 ( 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
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
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 |
|
|
|
|
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  ... the only part of "advancecd-er text" i wanted 
|
|
|
|
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 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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...
|
|
|
|
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? 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Gizzy, the image is located in the Even Advanceder Text hack.  Oh yeah, got to plug it again 
|
|
|
|
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
|
|
|
|
Joined: Dec 2003
Posts: 7
Junior Member
|
Junior Member
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) 
|
|
|
|
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 
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|