Convert [IMG] and [VIDEO] to [URL] in quoted text

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
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]
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
699
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
665
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
2
Views
2K
AdminAdmin is verified member.
Admin
khanhsak3r
Replies
7
Views
3K
khanhsak3r
khanhsak3r
L0ngHackit
Replies
3
Views
2K
AdminAdmin is verified member.
Admin
Back
Top