Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 26th February 2013, 17:30
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default Stopping staff being added as friends
find this in userdetails

PHP Code:
if ($friend)
    print(
"<p>(<a href=friends.php?action=delete&type=friend&targetid=$id>remove from friends</a>)</p>\n");
  elseif(
$block)
    print(
"<p>(<a href=friends.php?action=delete&type=block&targetid=$id>remove from blocks</a>)</p>\n");
  else
  { 

and add this before it

PHP Code:
  if ($user["class"] < UC_MODERATOR || $CURUSER["class"] >= UC_MODERATOR)
  
  
looks like
  
  
if ($user["class"] < UC_MODERATOR || $CURUSER["class"] >= UC_MODERATOR)    
  if (
$friend)
    print(
"<p>(<a href=friends.php?action=delete&type=friend&targetid=$id>remove from friends</a>)</p>\n");
  elseif(
$block)
    print(
"<p>(<a href=friends.php?action=delete&type=block&targetid=$id>remove from blocks</a>)</p>\n");
  else 
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
Reply

Tags
added , friends , staff , stopping

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 19:54. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.