PDA

View Full Version : Always allow HTML for Admins (SMods / Mods)


Entourage
09-04-2002, 10:00 PM
The most easy to use hack ever :P

Just follow the instructions and enjoy!

Entourage

Ian
09-05-2002, 11:32 PM
I just installed it and it works pretty good. I did find 2 minor bugs:[list=1] If you preview a post with HTML code it'll show the actual <B>whatever...</B> code instead of doing the effect of the tag. It still shows "HTML code is OFF" in the "Forum Rules:" box for users who are now allowed to post HTML code.[/list=1]Also, does this work with signatures?

Erwin
09-06-2002, 12:38 AM
There's a hack like this that was released a loooooong time ago, which works well. :)

Ian
09-06-2002, 01:00 AM
Originally posted by Erwin
There's a hack like this that was released a loooooong time ago, which works well. :) Link pls. :)

mewgood
09-06-2002, 01:53 AM
hm..
can anyone fix it?

Velocd
09-06-2002, 02:30 AM
I saw the hack Erwin speaks of also awhile back, if you want it that badly search for it...

Interesting idea I might add.

Mr. X
09-06-2002, 06:44 AM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=32015&highlight=html" target="_blank">https://vborg.vbsupport.ru/showt...highlight=html</a>

Entourage
09-06-2002, 01:01 PM
Originally posted by Ian
I just installed it and it works pretty good. I did find 2 minor bugs:[list=1]
If you preview a post with HTML code it'll show the actual <B>whatever...</B> code instead of doing the effect of the tag.
It still shows "HTML code is OFF" in the "Forum Rules:" box for users who are now allowed to post HTML code.
[/list=1]Also, does this work with signatures?

1st It's only parsed using showthread.php
2nd The HTML is turned off on most forums, this is the way to bypass it.

And no it does not work with signatures

lichtflits
09-06-2002, 05:06 PM
is it posibel to do this same witch the image option?

Link14716
09-06-2002, 06:57 PM
Very simple hack, but it gets the job done. I might expand it to more than showthread, into private.php, and also post previews (and signatures ;))

Entourage
09-06-2002, 08:14 PM
Originally posted by lichtflits
is it posibel to do this same witch the image option?

Yes offcourse just a bit rewriting :)
(I even think it allreafy includes the img tag bypass :))

NuclioN
09-06-2002, 08:53 PM
This hack conflicts with the / me hack (irc kind of display) from firefly. How can they work together?

Entourage
09-06-2002, 09:37 PM
NuclioN > let the replacements parse in the bbcodeparse2 not only in the normal :)

NuclioN
09-06-2002, 09:53 PM
How does the code looks if you want to do that? I'm getting or the / me working or the html without / me etc.

Entourage
09-09-2002, 09:40 AM
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmi lies,$dobbcode, $dome = 0)






if ($dome == 0) {
global $post;
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"#9C009C\">* $post[username] \\1</font>", $bbcode);
}

NuclioN
09-09-2002, 10:59 AM
I'm sorry Entourage, what to replace with this code? I found the line and replaced it and after it there was a parse error.

function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmi lies,$dobbcode, $dome = 0)
if ($dome == 0) {
global $post;
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"#9C009C\">* $post[username] \1</font>", $bbcode);
}
{ // parses text for vB code, smilies and censoring