View Full Version : AdminHTML
S1R1US
02-06-2003, 03:12 AM
Description: Allows Admins to use HTML even if board is set not to use HTML.
is there already a hack for this?
Erwin
02-06-2003, 05:43 AM
In newreply.php, newthread.php and editpost.php -
Find:
require("./global.php");
Underneath add:
if ($bbuserinfo[usergroupid]==6) {
$foruminfo[allowhtml] = 1;
}
S1R1US
02-06-2003, 09:20 AM
awesome, thanks. and that will let admins and admins only to use html?
Xenon
02-06-2003, 05:54 PM
hmm, i don't think this will work, sorry erwin...
but new posts are preparsed when posting and again parsed when viewing a thread, so it won't show up....
@sirius: try to search around a bit, there is a hack around AFAIK
Erwin
02-07-2003, 05:38 AM
Works for me, Stefan. :) I've been using that just for myself on my forums for the past year... this just changes the allowhtml permission - nothing to do with parsing. :)
Xenon
02-07-2003, 11:29 AM
hmm, isn't possible erwin, at least not when you've just hacked these three files, because the html code is parsed out on showthread.php where you haven't changed the forumrules...
so you have to edit functions.php the getpostbit function,too:
//line 263 unhacked vb229 functions:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
Erwin
02-07-2003, 10:08 PM
You're right... my functions.php there is modified to pieces... :)
This is what I've got instead of the line Xenon posted:
if ($post[usergroupid]==6)
{
$post[message]=bbcodeparse2($post[pagetext],1,1,1,1,1);
} else {
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie], 1);
}
Xenon
02-08-2003, 04:28 PM
:)
so everything clears out, and give's us a nice way to let admins use html :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.