Back to vBulletin 3.8 Add-ons

Stop autoparsing in a particular forum
Mod Version: 1.00, by SloppyGoat

vB Version: 3.8.0 Rating: (0 vote - 0 average) Installs: 5
Released: 22 Jan 2009 Last Update: 22 Jan 2009 Downloads: 49
Not Supported Code Changes Re-usable Code  

A friend of mine helped me figure this out some time ago, when I was still using 3.6.5. Well, it still seems to work perfectly in 3.8.0. I'm no coder, but I managed to figure out where to put these lines in the new php files. This will stop autoparsing of links in every way...even the quick reply.

This is a manual hack, since it requires changing the php files, and also requires you to change the forum ID to whichever you choose. Fortunately, it's also very easy.

In editpost.php, find:

PHP Code:
$edit['parseurl'] = true
replace with:

PHP Code:
$edit['parseurl'] = ($foruminfo['forumid'] != 10); 
In newreply.php, find:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']); 
replace with:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 10); 
In newpost.php, find:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']); 
replace with:

PHP Code:
$newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 10); 
____________________________________________

10 would be the forum ID which you do not want to autoparse URL's. All other forums will act completely normal. I can't support this, so if you have any questions or problems, you're on your own. Sorry, I'm no PHP coder. I just thought someone else might find this useful. Feel free to improve this hack. I'm sure, with some effort, a GUI could be made to assign whatever forum(s) you want?

Download

File Type: %1$s No Autoparse Hack.txt (767 Bytes, 51 downloads)


vblts.ru supports vBulletin®, 2022-2025