Version: 1.00, by SloppyGoat
Developer Last Online: Nov 2015
Category: Miscellaneous Hacks -
Version: 3.8.0
Rating:
Released: 01-21-2009
Last Update: 01-21-2009
Installs: 5
Re-useable Code Code Changes
No support by the author.
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.
$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?
You did a pretty good job fixing your problems. However there must be better solutions available. I kinda dislika hacking the .php source code without giving further options via variables.
Good luck with another solution. WYSIWYG makes that impossible, from what I've been told. Actually, if you use the WYSIWYG editor, it still parses URL's. I just checked. So, if you want it to parse a URL for some reason, you can always toggle.
Just curious: What was the particular reason you switched auto-parse off?
It's a hidden forum, and I don't want any live external links in this particular forum. No live links = no referrals.
Yes, it disables autoparsing completely, for the forum ID of your choice. It is only in standard editor mode. You can still toggle to WYSIWYG and it will autoparse, since it does it as you type.
Actually, this only works in the standard editor. It does not work in WYSIWYG. I guess there truly is no way to disable that. Nobody who has access to that forum would use the WYSIWYG editor though, unless they're linking internally.
As stated above, there really is no tech support for this hack since I am not a coder, but I would suggest just adding all forum ID's. There is a way to do this to the entire forum, somewhere. I've seen it posted here before when I was searching for my solution. Sorry I can't be of more assistance. It is what it is. If/when you find a solution, please do post it here for others.