mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Do not display adding friend/foe for anonymous and users own profile
git-svn-id: file:///svn/phpbb/trunk@5754 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dd1e25e830
commit
86ed5e5828
2 changed files with 4 additions and 3 deletions
|
@ -396,8 +396,9 @@ switch ($mode)
|
|||
'S_CUSTOM_FIELDS' => (isset($profile_fields['row']) && sizeof($profile_fields['row'])) ? true : false,
|
||||
'S_SHOW_ACTIVITY' => ($config['load_user_activity']) ? true : false,
|
||||
|
||||
'U_ADD_FRIEND' => "ucp.$phpEx$SID&i=zebra&add=" . urlencode($member['username']),
|
||||
'U_ADD_FOE' => "ucp.$phpEx$SID&i=zebra&mode=foes&add=" . urlencode($member['username']))
|
||||
'S_ZEBRA' => ($user->data['user_id'] != $user_id && $user->data['is_registered']) ? true : false,
|
||||
'U_ADD_FRIEND' => "{$phpbb_root_path}ucp.$phpEx$SID&i=zebra&add=" . urlencode($member['username']),
|
||||
'U_ADD_FOE' => "{$phpbb_root_path}ucp.$phpEx$SID&i=zebra&mode=foes&add=" . urlencode($member['username']))
|
||||
);
|
||||
|
||||
if (isset($profile_fields['row']) && sizeof($profile_fields['row']))
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<tr>
|
||||
<td align="center">{ONLINE_IMG}</td>
|
||||
</tr>
|
||||
<!-- IF S_USER_LOGGED_IN -->
|
||||
<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
|
||||
<tr>
|
||||
<td class="genmed" align="center">[ <a href="{U_ADD_FRIEND}">{L_ADD_FRIEND}</a> | <a href="{U_ADD_FOE}">{L_ADD_FOE}</a> ]</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue