Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quote Improvements Details »»
Quote Improvements
Version: 1.3, by tdev1 tdev1 is offline
Developer Last Online: Apr 2016 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 03-13-2011 Last Update: 09-21-2013 Installs: 83
Uses Plugins
Re-useable Code Translations  
No support by the author.

What is this
this product should help you remove the clutter when users quote long posts and their images. It simply replaces all quoted images with links

New in version 1.2
Now with admin options so you can change the regular expressions easily. (see attached screenshot)

Installation
simply import the attached file as new product:
AdminCP > Plugin System > Manage Products > [Add/Import Product]

What it does
when a user replies with quotes, the plugins replace the [IMG] and [VIDEO] in the quoted text with [url] using regular expressions:

PHP Code:
$pagetext preg_replace('/\[img\]([^\[]*)\[\/img\]/i','[url]$1[/url]'$pagetext); 
The regular expression that are used can be configured in the admin options.

Compatibility
Since this product only uses two hooks (newreply_post_quote and newreply_quote) it should work on any VB version that supports those hooks. Be aware that other plugins that also rewrite quotes with those hooks might conflict with this product. (Simply test yourself)

How to add more replacements
Go to Admin -> Options -> Quote Improvements and add this as new line in the regular expression field:
Code:
/BLA/i || BLUB
This will replace any "BLA" with "BLUB" in quotes.

History
  • 1.3 - 22nd of September 2013: fixed validation of the regular expression settings, improved plugin execution order, added link to online regexp testers in description.
  • 1.2 - 22nd of September 2013: added option in admin -> options -> Quote Improvements
  • 1.1 - added [video] support
  • 1.0 - first version: updated (and cleaned/rewrote) the old mod from vb 3.5 : https://vborg.vbsupport.ru/showthread.php?t=107022

Download Now

File Type: xml product-quote_improvements.xml (3.5 KB, 85 views)

Screenshots

File Type: png quote_improvements.png (24.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
AusPhotography

Comments
  #32  
Old 09-22-2013, 10:10 AM
tdev1 tdev1 is offline
 
Join Date: Jul 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New version 1.2 featuring some admin options Admin -> Options -> "Quote Improvements"

Tested and working with VB 4.2.1

UPDATE: v 1.3 now with some fixes, see first post
Reply With Quote
  #33  
Old 11-29-2014, 03:33 PM
Marcin1 Marcin1 is offline
 
Join Date: Sep 2012
Location: Poland
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod works perfectly but after small improvements in code!
Reply With Quote
  #34  
Old 11-29-2014, 03:38 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it would be nice if you described what the small improvements did, and share what you changed, so others can benefit from it.
Reply With Quote
  #35  
Old 11-30-2014, 06:53 PM
Marcin1 Marcin1 is offline
 
Join Date: Sep 2012
Location: Poland
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this uploaded file
Attached Files
File Type: xml product-quote_improvements-2.xml (3.9 KB, 11 views)
Reply With Quote
  #36  
Old 11-30-2014, 09:08 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't use this mod, so it is best to describe what the changes do, and provide screenshots so users can see.
Reply With Quote
  #37  
Old 09-08-2016, 11:32 AM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't seem to work in 4.2.4 beta 1. No errors but images still show up in quoted text. Any ideas?
Reply With Quote
  #38  
Old 02-11-2020, 10:42 AM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It didn't work with 4.2.x
Reply With Quote
  #39  
Old 05-10-2020, 09:39 PM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works for me 4.2.5

How do I add a line to hide [attach] ?
Reply With Quote
  #40  
Old 05-10-2020, 09:40 PM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sticky View Post
Works for me 4.2.5

How do I add a line to hide [attach] ?
Actually, not working with [video] tags
Reply With Quote
Reply


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 03:11 PM.


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.04722 seconds
  • Memory Usage 2,326KB
  • Queries Executed 26 (?)
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_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete