diff -r 4042c4dd5ba4 -r 1c7f59df9474 includes/clientside/static/comments.js
--- a/includes/clientside/static/comments.js Tue Aug 28 19:00:20 2007 -0400
+++ b/includes/clientside/static/comments.js Wed Aug 29 18:23:37 2007 -0400
@@ -181,14 +181,14 @@
// User level
tplvars.USER_LEVEL = 'Guest';
if ( this_comment.user_level >= data.user_level.member ) tplvars.USER_LEVEL = 'Member';
- if ( this_comment.user_level >= data.user_level.mod ) tplvars.USER_LEVEL = 'Moderator';
- if ( this_comment.user_level >= data.user_level.admin ) tplvars.USER_LEVEL = 'Administrator';
+ if ( this_comment.user_level >= data.user_level.mod ) tplvars.USER_LEVEL = 'Moderator';
+ if ( this_comment.user_level >= data.user_level.admin ) tplvars.USER_LEVEL = 'Administrator';
// Send PM link
tplvars.SEND_PM_LINK=(this_comment.user_id>1 && data.logged_in)?'Send private message
':'';
// Add buddy link
- tplvars.ADD_BUDDY_LINK=(this_comment.user_id>1 && data.logged_in)?'Add to buddy list
':'';
+ tplvars.ADD_BUDDY_LINK=(this_comment.user_id>1 && data.logged_in && this_comment.is_buddy != 1)?'Add to buddy list
':'';
// Edit link
tplvars.EDIT_LINK='edit';
@@ -208,6 +208,13 @@
tplbool.signature = ( this_comment.signature == '' ) ? false : true;
tplbool.can_edit = ( data.auth_edit_comments && ( ( this_comment.user_id == data.user_id && data.logged_in ) || data.auth_mod_comments ) );
tplbool.auth_mod = data.auth_mod_comments;
+ tplbool.is_friend = ( this_comment.is_buddy == 1 && this_comment.is_friend == 1 );
+ tplbool.is_foe = ( this_comment.is_buddy == 1 && this_comment.is_friend == 0 );
+
+ if ( tplbool.is_friend )
+ tplvars.USER_LEVEL += '
On your friend list';
+ else if ( tplbool.is_foe )
+ tplvars.USER_LEVEL += '
On your foe list';
parser.assign_vars(tplvars);
parser.assign_bool(tplbool);