The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Admin Only HTML
Is there anyway (I think it needs a hack) to allow admins only to post HTML?
Thanks. |
#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! That was quick thanks! :banana:
|
#4
|
||||
|
||||
We aim to please.
|
#5
|
||||
|
||||
Just a heads up to try and search before you ask as this has been done many times before
Thanks - miSt |
#6
|
||||
|
||||
I realize this thread is from early May, but MiSt - I've been searching and haven't come up with much other than this thread alone. Thank you, Boofo for the quick fix, it works for version 2.3.0. However, it doesn't censor Private Messages. Er, un-censor html for admins in PM's. I imagine it'll be a similar step, but could you point me in the right way?
|
#7
|
||||
|
||||
In private.php, find:
$message[message]=pmcodeparse($message[message],0,$allowsmilies); $message[message] .= '<br>'.$message['attachment'] . $fromuserinfo[signature]; REPLACE it with: if ($fromuserinfo[usergroupid]==6 OR $fromuserinfo[usergroupid]==5) { $message[message]=pmcodeparse($message[message],1,1,1,1); } else { $message[message]=pmcodeparse($message[message],0,$allowsmilies); } $message[message] .= '<br>'.$message['attachment'] . $fromuserinfo[signature]; Try that and let me know if it works for you. I haven't tested it. |
#8
|
||||
|
||||
It doesn't give any errors, Bob, but it doesn't do the trick.
|
#9
|
|||
|
|||
I'm fairly sure that this has long since been released...have ye searched?
|
#10
|
||||
|
||||
I have, but apparently not with the right searchwords. :s I'll keep looking. I was sure it's been published several times before as well.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|