Back to vBulletin 3.0 Add-Ons

Kill Attachments in Signatures
Mod Version: 1.00, by Sean335

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 4
Released: 31 Jul 2004 Last Update: Never Downloads: 1
Not Supported  

Replaces signature images using your board's attachements with a message telling them to stop.

open includes/functions_showthread.php
find: (on lines 517 and 518)
PHP Code:
$post['signature'] = parse_bbcode($post['signature'], 'nonforum'$vboptions['allowsmilies']);
$sigcache["$post[userid]"] = $post['signature']; 
and add above it:
PHP Code:
$post['signature'] = preg_replace("/\[img\](.*?)\/attachment.php(.*?)\[\/img\]/i""[i]attached pictures not allowed in signatures.[/i]"$post['signature']); 
Using this method will block any img tag that uses attachment.php, if you want to block just ones that use your site, use something like:
PHP Code:
$post['signature'] = preg_replace("/\[img\](.*?)www.3.8mustang.com\/forum\/attachment.php(.*?)\[\/img\]/i""[i]attached pictures not allowed in signatures.[/i]"$post['signature']); 

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024