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
  #32  
Old 02-09-2006, 10:48 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
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.
Yeah, that's what I thought. Thanks for the confirmation.

Quote:
Originally Posted by Hellcat
Adding an user option would be possible, yes.
Cool. Well, count me in as someone who'd really appreciate that feature for a future version. Got PayPal? I'd even send a few bones your way to enjoy some beers on me.

/subscribes to thread
Reply With Quote
  #33  
Old 02-10-2006, 09:21 AM
Parham Parham is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great [ Installed ]
Reply With Quote
  #34  
Old 02-10-2006, 06:27 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala
Cool. Well, count me in as someone who'd really appreciate that feature for a future version. Got PayPal? I'd even send a few bones your way to enjoy some beers on me.
[high]* Hellcat smells beer?!?!
[/high]

OK, you sold me
Here you go -> Update 1.20 now adds the user option
Reply With Quote
  #35  
Old 02-10-2006, 10:33 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mod installed, beer money sent.

Thanks, Hellcat!
Reply With Quote
  #36  
Old 02-11-2006, 05:04 PM
Hellcat Hellcat is offline
 
Join Date: May 2003
Location: Germany
Posts: 560
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make it the default behaviour to display the images in quoted text and only convert them to URLs if so choosen, in the Plugin-Manager find the Plugin:
"Replace [IMG] with in quotes (Apply Userchoice)http://"<br /> <br /> Open it and ...</div> </div>
PHP Code:
", $text );
} else {
  
$text = preg_replace( "/\[[qQ][iI][mM][gG]\]/", "[img]", $text );
  
$text = preg_replace( "/\[\/[qQ][iI][mM][gG]\]/", "[/img]", $text );

If the user didn't make any choice so far the images will be left intact now.

IMPORTANT: Please remove the "*" from the "[*URL]" in the IF clause.
I had to put that in there, or else the threaddisplay would mess up this post
Reply With Quote
  #37  
Old 02-13-2006, 08:14 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice.....we r implimenting it
Reply With Quote
  #38  
Old 03-19-2006, 11:23 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hellcat
[high]* Hellcat smells beer?!?!
[/high]

OK, you sold me
Here you go -> Update 1.20 now adds the user option
Wicked, thanks

*updates*
Reply With Quote
  #39  
Old 03-27-2006, 05:26 PM
EdQ EdQ is offline
 
Join Date: Aug 2005
Location: Sunny San Diego
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you make it change to thumb instead of url?
Reply With Quote
  #40  
Old 03-27-2006, 06:37 PM
EdQ EdQ is offline
 
Join Date: Aug 2005
Location: Sunny San Diego
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EdQ
Can you make it change to thumb instead of url?
I just changed the code to thumb. Seems to work great. Thanks for the plugin.
Reply With Quote
  #41  
Old 03-27-2006, 07:37 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EdQ
I just changed the code to thumb. Seems to work great. Thanks for the plugin.
Oooh, care to share? That'd be a really nice new option.
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 06:06 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.10847 seconds
  • Memory Usage 2,312KB
  • 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
  • (2)bbcode_php
  • (6)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