diff -r 7c68a18a27be -r c162ca39db8f includes/clientside/static/comments.js
--- a/includes/clientside/static/comments.js Thu Aug 09 12:26:16 2007 -0400
+++ b/includes/clientside/static/comments.js Fri Aug 10 15:57:22 2007 -0400
@@ -34,7 +34,7 @@
switch(response.mode)
{
case 'fetch':
- document.getElementById('ajaxEditContainer').innerHTML = 'Rendering response...';
+ document.getElementById('ajaxEditContainer').innerHTML = '
Rendering '+response.count_total+' comments...
';
if(response.template)
comment_template = response.template;
setAjaxLoading();
@@ -53,7 +53,7 @@
materializeComment(response);
break;
case 'error':
- alert(response.error);
+ new messagebox(MB_OK|MB_ICONSTOP, ( response.title ? response.title : 'Error fetching comment data' ), response.error);
break;
default:
alert(ajax.responseText);
@@ -183,12 +183,12 @@
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';
-
+
// Send PM link
- tplvars.SEND_PM_LINK=(this_comment.user_id>1)?'Send private message
':'';
+ 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)?'Add to buddy list
':'';
+ tplvars.ADD_BUDDY_LINK=(this_comment.user_id>1 && data.logged_in)?'Add to buddy list
':'';
// Edit link
tplvars.EDIT_LINK='edit';