![]() |
Stop autoparsing in a particular forum
1 Attachment(s)
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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
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? ;) |
Interesting topic.
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?
|
Does this disable the "Automatically parse links in text" by default for certain forums? Or does it do something else?
|
Quote:
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. |
How can I make it work for the whole vbulletin installation and not one forum ?
|
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. ;)
|
I've been informed that this works in version 4.x, too.
|
All times are GMT. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|