PDA

View Full Version : IMG for X user group


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

DarkDraco07
03-16-2003, 02:40 PM
bump

DarkDraco07
03-22-2003, 04:10 PM
anyone?

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

ChristianA
01-04-2005, 10:09 AM
Bump

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)