Back to vBulletin 4.x Add-ons

Quote Improvements
Mod Version: 1.3, by tdev1

vB Version: 4.x.x Rating: (8 votes - 4.88 average) Installs: 83
Released: 14 Mar 2011 Last Update: 22 Sep 2013 Downloads: 302
Not Supported Uses Plugins Re-usable Code Translations  

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 : Convert [IMG] to [URL] in quoted text

Download

File Type: %1$s product-quote_improvements.xml (3.5 KB, 88 downloads)

Supporters / CoAuthors

  • Hellcat
  • Zero Tolerance

Screenshots

Click image for larger version
Name:	quote_improvements.png
Views:	374
Size:	24.4 KB
ID:	146485  

Similar Mods

Convert [IMG] to [URL] in quoted text vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024