DarkDraco07
03-14-2003, 09:02 PM
is there or can someone make something that allows only admin / whatever is chosen to use the [img] tag
Diggin
03-27-2003, 07:14 PM
I am looking for something like this too
I have looked at the html only for admin but couldn't figure out how to change html to the img code
Thanks in advance
Marco van Herwaarden
01-04-2005, 01:54 PM
You could do the following as a quick and dirty solution:
open your includes/functions_newpost.php.
Find:
// check max images
require_once('./includes/functions_misc.php');
require_once('./includes/functions_bbcodeparse.php');
if ($vboptions['maximages'] != 0 AND fetch_character_count(parse_bbcode($post['message'], $foruminfo['forumid'], $post['enablesmilies'], 1), '<img') > $vboptions['maximages'])
{
eval('$errors[] = "' . fetch_phrase('toomanyimages', PHRASETYPEID_ERROR) . '";');
}
Add below:
if ($bbuserinfo['usergroupid'] != 6 AND fetch_character_count(parse_bbcode($post['message'], $foruminfo['forumid'], $post['enablesmilies'], 1), '<img') > 0)
{
eval('$errors[] = "' . fetch_phrase('toomanyimages', PHRASETYPEID_ERROR) . '";');
}
This will give a "Too many images" error for all users that are not in the Admin group (groupid=6)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.