The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
hello.
vbulletin provides an option to allow html per forum. is there a hack to enable html per usergroup (admins and moderators) ?? if the mod does not exist, how much should I be prepared to pay a coder to do it for me? post scriptum: after posting I found this mod of 2003 for vb2 https://vborg.vbsupport.ru/showthread.php?t=32015 Code:
Always allow HTML for Super Mods, Admins and other usergroups of choice. [mini-hack vB 2.0.3]
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.
|
|
#2
|
|||
|
|||
|
what are acceptable upping methods here on vb.org ?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|