PDA

View Full Version : [fixed] Adding an user with your Admin CP doesn't give him an usertitle


Mystics
Sat 27th Jul '02, 6:48pm
Hi,

when you add an user with your Admin CP, and you do not use a custom title for him, he doesn't get an usertitle.

This will fix it:

Open admin/user.php and search for: if ($biography=="Location:\r\nOccupation:\r\nInterests:\r\n") {
$biography="";
}Add below it: if ($customtitle==0) {
$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid='$usergroupid'");
if ($usergroup[usertitle]=="") {
$gettitle=$DB_site->query_first("SELECT title FROM usertitle WHERE minposts<=0 ORDER BY minposts DESC LIMIT 1");
$usertitle=$gettitle[title];
} else {
$usertitle=$usergroup[usertitle];
}
}Greetings,
Mystics

Steve Machol
Sat 27th Jul '02, 8:47pm
Bug confirmed. This only happens until the user makes his or her first post, then the user title kicks in.

Scott MacVicar
Sat 27th Jul '02, 9:22pm
The thing is no one can see the usertitle before they post unless they are viewing his profile, so its not a big issue.

Mystics
Sat 27th Jul '02, 9:28pm
Originally posted by PPN
unless they are viewing his profile Exactly PPN...but the title is also shown in private messages of him...without updating the title :rolleyes:

In any case, it's a bug :p

Mystics