PDA

View Full Version : Miscellaneous Hacks - Disable Autoparsing in the forumID of choice


SloppyGoat
11-10-2006, 10:00 PM
A good friend of mine solved this problem. As long as you're not using the WYSIWYG editor. This will disable autoparsing in the forum of your choice. Just change the forum id to whichever you like. BRILLIANT!!!! :cool:

editpost.php

line 224...
replace: $edit['parseurl'] = true;

with: $edit['parseurl'] = ($foruminfo['forumid'] != 19)

line 245...
replace: $edit['parseurl'] =& $vbulletin->GPC['parseurl'];

with: $edit['parseurl'] = ($vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19);

line 268...
replace: $dataman->set_info('parseurl', ($foruminfo['allowbbcode'] AND $edit['parseurl']));

with: $dataman->set_info('parseurl', ($foruminfo['allowbbcode'] AND $edit['parseurl'] AND $foruminfo['forumid'] != 19));

newreply.php

line 340...
replace: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']);

with: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19);

newthread.php

line 154...
replace: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl']);

with: $newpost['parseurl'] = ($foruminfo['allowbbcode'] AND $vbulletin->GPC['parseurl'] AND $foruminfo['forumid'] != 19);
I'm not the coder, so I can't support this. He did give me permission to share it, though.

SloppyGoat
11-11-2006, 01:44 AM
Maybe someone can figure out a way to disable in the WYSIWYG editor too? I assume it would have to be something that stripped the url tags from the posts after you click submit?

Wild-Wing
11-19-2006, 07:35 PM
i may sound like a red neck but what the hell is autoparsing