![]() |
Does anyone know where VB does this? I can't for the life of me find it! I added a little thing in the control panel options called "HTML Censoring" where you can stick in tags that you don't want displayed. For instance, on our HTML enabled forums someone discovered that you can embed sounds < bgsound > into posts and that really trashed everything. So, we had to turn HTML off, and people really like it (create tables, colors and such), and so I want to turn HTML back on, but just create a list of "bad" tags that will *not* be turned into HTML... So you could do something like:
Code:
<B>This is bold</B> BAD! Will be either deleted or turned into the <g; whatever tags so it will just appear on the board instead of being turned into HTML. I'm looking in showthread.php and I see Code:
$htmlcodeon=iif($foruminfo[allowhtml]==1,$ontext,$offtext); Thanks, |
Never mind, I found it.. Sheesh, I am tired or something, and it's only Sunday afternoon! Ok, if anyone wants this hack I'll post it, otherwise this thread can die. :)
|
please share, sounds nice.
|
Ok, a couple of easy things to do:
Edit /admin/options.php: On or about line 68 you'll see Code:
<li><a href=\"#styles\">Styles Options</a></li> Code:
<li><a href=\"#html\">HTML Censoring Options</a></li> Code:
</table> Code:
<!--/// Start HTML Censoring --> Now open /global.php (not the one in /admin). Find (around line 421) the line that reads: Code:
$bbcode=censortext($bbcode); Code:
if( $dohtml == 1 ) { Here is the function: Code:
// ###################### Start censorhtml ####################### Now you can play around in the options control panel to make changes. You have to dot the "Enable Censoring" thing in the HTML Censoring section or otherwise it will skip censoring the HTML. Also, you enter in your censor tags like this: Code:
<bgsound <sometag <someothertag |
Of course, you need to "enable HTML" on the forum in which you post to in order to make the code active.
|
All times are GMT. The time now is 11:42 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:
|