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
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 and [VIDEO] in the quoted text with [url] using regular expressions:
[PHP]
$pagetext = preg_replace('/\[img\]([^\[]*)\[\/img\]/i','[url]$1[/url]', $pagetext);
$pagetext = preg_replace('/\[video[^\]]*\]([^\[]*)\[\/video\]/i','[url]$1[/url]', $pagetext);
[/PHP]
[B]Compatibility[/B]
Since this product only uses two hooks (newreply_post_quote and newreply_quote) it should work on any VB version that supports those hooks.
[B]History[/B]
[LIST]
[*]1.0 - added [video] support
[*]1.0 - first version: updated (and cleaned/rewrote) the old mod from vb 3.5 : [url]http://www.vbulletin.org/forum/showthread.php?t=107022[/url]
[/LIST]
[DOWN] [url="http://www.mediafire.com/?kzlpzamfh5b8m6k"]product-replace_img_in_quote.xml[/url][/DOWN]
this product should help you remove the clutter when users quote long posts and their images. It simply replaces all quoted images with links
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 and [VIDEO] in the quoted text with [url] using regular expressions:
[PHP]
$pagetext = preg_replace('/\[img\]([^\[]*)\[\/img\]/i','[url]$1[/url]', $pagetext);
$pagetext = preg_replace('/\[video[^\]]*\]([^\[]*)\[\/video\]/i','[url]$1[/url]', $pagetext);
[/PHP]
[B]Compatibility[/B]
Since this product only uses two hooks (newreply_post_quote and newreply_quote) it should work on any VB version that supports those hooks.
[B]History[/B]
[LIST]
[*]1.0 - added [video] support
[*]1.0 - first version: updated (and cleaned/rewrote) the old mod from vb 3.5 : [url]http://www.vbulletin.org/forum/showthread.php?t=107022[/url]
[/LIST]
[DOWN] [url="http://www.mediafire.com/?kzlpzamfh5b8m6k"]product-replace_img_in_quote.xml[/url][/DOWN]