![]() |
lost
I can't seem to locate the thread(s) about how to disable HTML tags. A search on the word "HTML" doesn't seem to yield the thread(s) I'm looking for.
:ermm: - I want to disable all HTML tags. without disabling the vb codes. - I want "Automatically parse URLs: automatically adds and around internet addresses. " to always be "no" - I want the button http:// to not work I want to stop my website url from showing up on other servers via referrers. I host a private site on a private url and intend to keep it that way. (We've been hacked and cracked at least 4 times already and want to do everything we can to stop it.) |
Firstly, to remove the http:// and prevent automaticly putting [ URL ] around URLS you need to remove the vb code for the [ URL ] tag in the admin CP, to disable HTML in posts you change the relevent option in the vBulletin Options part of the Admin CP.
Hope this helps, Lee |
Quote:
I've looked all around the admin Cp and the php files.... In templates the response for the "automatically parse urls" is a $parseurlChecked value... how and where do I set that value so that it is permanently unchecked. |
OK, To remove the Parsing of URL's I think you need to remove the following from functions.php (Make sure you backup the file first, I haven't tested it and am not resposible if it goes wrong ;) )
And remove $parseurlChecked from the template PHP Code:
|
I'll try that. Right now one of our servers just crashed... might be sometime before I get back to you. Thank you for the quick reply.
|
No problem Dixiemill I hope it works for you :D
|
I found that removing the code from checkurl and parseurl erases the whole message if a link is anywhere in the message.
But your lead was not in vain... I was successfully able to disable "hotlinks" by simply changing the last line in the function checkurl from: return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>"; to: return "<a =\"$righturl\" >".str_replace('\"', '"', $hyperlink)."</a>"; now when I type www.test.com in the message or use the http:// button in the vbcode area the url appears as text not a hotlink. |
I knew that code had something to do with it, and as it wasn't a vB code in the admin CP I guessed it would be in funcions.php so I just did a quick serach, I'm glad it helped :D
Was there anything else that you needed help on or was it just the hyperlinks? |
Just the hyperlinks... I'm trying to keep my site url from appearing on other servers via referrers.
Thanks again for all the help. |
No problem, glad I could help you out.
|
All times are GMT. The time now is 03:07 PM. |
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:
|