Log in

View Full Version : html enabled per usergroup not per forum


webmaster74
10-23-2007, 12:27 AM
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



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.

webmaster74
10-24-2007, 01:18 AM
what are acceptable upping methods here on vb.org ?