The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
some small help needed...
Ok, what my goal is here is to allow the forum administrator to use HTML in posts.. i tracked it down to this code in the admin/functions.php that had to be altered... i THINK
Code:
if(!$dohtml) { // kill any rogue html code // $bbcode=str_replace("&","&",$bbcode); $bbcode=str_replace("<","&lt;",$bbcode); $bbcode=str_replace(">","&gt;",$bbcode); $bbcode=str_replace("<","<",$bbcode); $bbcode=str_replace(">",">",$bbcode); } Code:
if(!$dohtml and !($bbuserinfo[usergroupid]==6)) { // kill any rogue html code // $bbcode=str_replace("&","&",$bbcode); $bbcode=str_replace("<","&lt;",$bbcode); $bbcode=str_replace(">","&gt;",$bbcode); $bbcode=str_replace("<","<",$bbcode); $bbcode=str_replace(">",">",$bbcode); } -jamslam P.S. i thought about putting this in the help me finish forum, but thought that it was short enough to just go here.. however, if it is in fact a longer hack, pardon my ignorance and you may do with it what you will. thanx again. |
#2
|
||||
|
||||
In admin/functions.php
Find: ==================== $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); //highlight words for search engine ==================== Replace with if ($post[usergroupid]==6 OR $post[usergroupid]==5) { $post[message]=bbcodeparse2($post[pagetext],1,1,1,1); } else { $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); } //highlight words for search engine =================== Just add more OR $post[usergroupid]==X to the IF statement for whatever usergroups you want to allow. 5 is Super Mod and 6 is Admin. |
#3
|
||||
|
||||
wow thanx a lot.. i wonder why that was never released as an official hack...
BTW, if anyone could be so nice, as to explain to me why my method didn't work.. i'm new to the PHP stuff, and would like to obsorb as much as i can.. again, i would appreciate it very much. and thanx again boofo, that helps! |
#4
|
||||
|
||||
It was released as a hack, but I don't remember who released it. If you have the /me vbcode hack installed (by Firefly), you will need to edit the above code for the me code to work there, too.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|