Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Convert [IMG] to [URL] in quoted text Details »»
Convert [IMG] to [URL] in quoted text
Version: 1.20, by Hellcat Hellcat is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-02-2006 Last Update: 02-09-2006 Installs: 95
Uses Plugins
 
No support by the author.

OK, another quick one I made 'cause someone requested something like this and I didn't find it while looking for it
So, forgive me if something like this already exists.... :nervous:
(Point of reference)

This one replaces all [IMG] tags in quoted text with [URL] tags.
So, you and your users don't have to see the same image over and over again, and if you really forgot what the image was, just click the link

Installation:
Import the product .XML -> DONE


Like I said, a quick one.


Update 1.20
By request, this now also adds an option to the UserCP where users can choose if quoted images should be converted to URLs or left as images.

UserCP -> Edit Options -> At the bottom of the page

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-06-2006, 02:23 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK,here comes the update

I replaced the "plain search and replace" by a regular expression - resulting in case INsesitive replace :up:
So, [img], [IMG], [imG].... whatever, should be propperly replaced by [url] now.

To update, just re-import the new product .XML with the "allow overwrite" option enabled and you're set.
Reply With Quote
  #23  
Old 02-06-2006, 03:06 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs
Reply With Quote
  #24  
Old 02-06-2006, 08:35 PM
S@NL - BlackBik's Avatar
S@NL - BlackBik S@NL - BlackBik is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update, Hellcat
Reply With Quote
  #25  
Old 02-06-2006, 08:39 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by S@NL - BlackBik
Thanks for the update, Hellcat
A pleasure (as long as some1 really uses it )
Reply With Quote
  #26  
Old 02-06-2006, 08:53 PM
S@NL - BlackBik's Avatar
S@NL - BlackBik S@NL - BlackBik is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I sure am, and it's working fine
Reply With Quote
  #27  
Old 02-07-2006, 03:48 AM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey if you are up for challenges hellcat, I have a good one for ya

It would be similar to this mod, but with a more general application. On my board there's lots of people that link to pictures from other sites. This is ok for awhile, but soon the original picture is deleted leaving the post with the signature x.

I was wondering if you could add to this hack or start a new one which would let the admin run a scheduled task every so often which would search all new posts for images and add when it finds posts with images it would find out if it was hosted at a remote site or not, and if it was then it would convert it to a forum attachment in that post or copy/host the image in a folder specified by the admin and relink the img tag to the new location. And if the admin can add exempt urls that'd be beneficial too I'm sure.

Anyways, just something I've had on my mind for awhile
Reply With Quote
  #28  
Old 02-09-2006, 12:47 AM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice little thing, which is very much needed indeed! Thank you!
Reply With Quote
  #29  
Old 02-09-2006, 04:25 AM
Slacker Slacker is offline
 
Join Date: Apr 2002
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I needed! Installed, thanks!

http://boards.slackercentral.com
Reply With Quote
  #30  
Old 02-09-2006, 05:49 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Curious for feedback on this. Does installing this actually decrease load on the forum's server in any way, or is it more of an "aesthetic" decision?

(I realize it could speed things up for the user side rendering and display of image-heavy threads, but I'm of the mindset that it wouldn't have any effect, really, on the forum server itself. Am I wrong?)

That said, some users really don't like this. At all. Any chance it could be made a user-selectable option? That would please everyone, one would think.
Reply With Quote
  #31  
Old 02-09-2006, 09:10 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has no affect on the forum's server, except when most of the images are hosted on the forum server itself, wich usually isn't the case.

Adding an user option would be possible, yes.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05015 seconds
  • Memory Usage 2,294KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete