PDA

View Full Version : IMG tag globally == OFF, but for admins == ON


wooolF[RM]
06-27-2002, 08:01 PM
]hello again :)

FireFly made once a hack so only admins can have images in their signature (cause img tag is globally off). I spent over 2.5 hours on this board right now and used search function and even looked in the hacks section... No luck... :(

Anyone can point me to the right direction please? I'm lost :(

Xenon
06-27-2002, 08:03 PM
if you just want the images in the signature, just create a custom bb-code and just give it to your admins.....

wooolF[RM]
06-27-2002, 08:06 PM
]welll... that's the solution too... but MODs can see other peoples profile (admin's too) so it's not the best solution :(

anyway thanx for the tip :)

and I'm still looking for the hack made by FireFly... :/

Xenon
06-27-2002, 08:09 PM
oh, you allow your mods to view admins profile?
i never do that, so i can use those codes ;)

or i found this one:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=38091&highlight=img+admins

wooolF[RM]
06-27-2002, 08:12 PM
]Add [img] to the censored words list, and exempt admins from censor.


^^^^ not a solution... it will just confuse other users :(

wooolF[RM]
06-27-2002, 08:15 PM
]Originally posted by Xenon
oh, you allow your mods to view admins profile?


I allow them to view all profiles... there's no limitation... only all or nothing...

Xenon
06-27-2002, 08:18 PM
just hack the mod/user.php
just 1 small if clause *g*

i don't allow my mods to view my profile ;)

hmm, make an announcement, that the img-code is censored now, and the confusion is gone ;)

wooolF[RM]
06-27-2002, 08:23 PM
]can u make a step by step instruction for man in need? ;) thanx I'm really not so good in php and I can't risk my forum with 7000 users...

wooolF[RM]
06-27-2002, 08:30 PM
]I know only one thing... it have something to do with admin/functions.php where u have this code:// ###################### Start bbcodeparse #######################
function bbcodeparse($bbcode,$forumid=0,$allowsmilie=1) {

global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsm ilies; etc... but I just can't figure it out

Xenon
06-27-2002, 08:30 PM
no problem ;)

find this:// ###################### Start viewuser #######################
if ($action=="viewuser") {
$perms=getpermissions();
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canviewprofile=1")) {
echo "<p>You do not have permission to do this!</p>";
exit;
}

$userid=verifyid("user",$userid,0);

$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");


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

thats when you don't like your mods can view your profile :)

then just make the new bbcode and just give it to your admins ;)

wooolF[RM]
06-27-2002, 08:34 PM
]thanx for the lil hack :) very appreciatted. I will make a new bbcode now and use it.

Still... everyone is welcome to find a hardcoded solution that FireFly made once... :) thanx everyone and specially to Xenon

wooolF[RM]
06-29-2002, 11:48 AM
*bump* /me looks at FireFly *bump*

wooolF[RM]
06-29-2002, 02:10 PM
]damn... nobody can find it...

https://vborg.vbsupport.ru/showthread.php?postid=242054#post242054 :(

wooolF[RM]
06-30-2002, 01:04 PM
_