PDA

View Full Version : Only admins can use [IMG] code in signature?


FlyingDutchman
09-27-2002, 05:53 AM
I don't have any time to look at this, nor to make it really...
so if anyone can help me with this or point me in the right direction, i'd be grateful ;)

Xenon
09-27-2002, 10:12 AM
easiest way:
create a new vb-code doing exactly the same as img-code
and use it in your sig, don't give it away ;)

FlyingDutchman
09-27-2002, 12:57 PM
00ps the p00ps :)
didn't think of that really :)
indeed that's a simple way :D

Xenon
09-27-2002, 02:27 PM
:)

just one hint you should be sure your mods cannot view your userprofile in mod-cp.

to apply that you have to add:
if ($user[usergroupid]==6) {
echo "<p>You do not have permission to do this!</p>";
exit;
}

directly after that line:
$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parente mail,coppauser,homepage,icq,aim,yahoo,signature,ad minemail,showemail,invisible,usertitle,customtitle ,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvi sit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,em ailonpm,receivepm,ipaddress FROM user WHERE userid=$userid");