Search found 37 matches

by Bernardo
Wed Mar 21, 2012 5:19 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Don Chambers wrote:I think its time for a beer! :mrgreen:
Yup...cheers! :mrgreen:
by Bernardo
Wed Mar 21, 2012 4:51 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Works perfect with the following code: <div class="serendipity_comment_source{if $comment.clear_email == 'runzheimer@googlemail.com'}_admin{/if} icon_link"> <span class="comment_source_author"> {if $entry.is_entry_owner} <a href="mailto:{$comment.email}"> {/if} {$comment.author|@default:$CONST.ANONY...
by Bernardo
Wed Mar 21, 2012 4:34 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

I think I have the answer as to why Timbalu sees email, clear_email, etc, and I do not.... I have the anti-spam plugin configured to hide email addresses. When configured to hide email addresses, a logged in admin will still have access to $comment.email and $comment.clear_email. When logged out, t...
by Bernardo
Tue Mar 20, 2012 9:52 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

@Bernardo didn't want to bother you, if you want help from "Don seulement", just say that first. :roll: That's not the point...I felt quite misunderstood all the way down here. So after I tried my best to explain in several comments what I wanted to accomplish, it was quite frustrating to read this...
by Bernardo
Tue Mar 20, 2012 9:22 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

So after further review, I hate to say that my earlier posts were incorrect. $commentform_entry.email is always going to be the same as the entry author's email, so comparing the two is pointless. $comment.clear_email is the only non-obfuscated, comment-specific email address available. However, as...
by Bernardo
Tue Mar 20, 2012 8:59 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

I did test it. They are still avaiable, even if logged out. But maybe I just don't understand what you are trying to do... What else can I tell you? I tested them too. They are available when logged in, and unavailable when logged out. Sorry, but I'm out...I'll try to debug it myself. Maybe Don com...
by Bernardo
Tue Mar 20, 2012 7:54 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Yepp true. Its not the admin id, sorry! :? You have to stick with [email] => john[at]example.com [clear_email] => john@example.com [author] => John Doe or .serendipity_comment_author_Bernardo { background: orange; } AFAIS. As mentioned earlier: Those variables are not usable, until I am logged in (...
by Bernardo
Tue Mar 20, 2012 7:01 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Timbalu wrote:What about using the admin author id?

Code: Select all

{if $comment.authorid == 1}_admin{/if}
Same result as in earlier attached pic. $comment.authorid is always 1.
by Bernardo
Tue Mar 20, 2012 6:48 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Before I review these tpls, can you verify that these three comments are saved with different email addresses, and that all three do not actually have the same email address? Comments 1 and 3 have the same mail address (same user), but a different mail address than comment 2 (blog owner). Verified ...
by Bernardo
Tue Mar 20, 2012 9:44 am
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Please post the entire code for comments.tpl Well...now I'm curious: {foreach from=$comments item=comment name="comments"} <a id="c{$comment.id}"></a> <div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author ...
by Bernardo
Tue Mar 20, 2012 9:34 am
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

And the commentform.tpl. It's possibly you set this email-adress there. I don't think so...but here you go: <div id="serendipityCommentFormC" class="serendipityCommentForm"> <div id="serendipity_replyform_0"></div> <a id="serendipity_CommentForm"></a> <form id="serendipity_comment" action="{$commen...
by Bernardo
Tue Mar 20, 2012 12:56 am
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Are we having fun yet??!! :mrgreen: Actually, no... :mrgreen: ...I'm getting confused more and more... This is how I think it SHOULD work, based solely on the email address provided when the comment is submitted: That's exactly what I did after you mentioned it for the first time. The result is wha...
by Bernardo
Tue Mar 20, 2012 12:33 am
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

commentform.tpl is the actual comment form... comments.tpl displays the comments that have already been posted. I know... Is it possible that your logical test is occuring in the wrong location, such as the wrong place in a loop? Maybe that's the point where we're talking about different things. I ...
by Bernardo
Mon Mar 19, 2012 11:40 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

Let me ask again - Why does every comment author have the same email address, and why are those identical email addresses the same as the blog owner (you)? Each person submitting a comment should be using their own email address, and therefore not triggering the custom author class. Having said tha...
by Bernardo
Mon Mar 19, 2012 10:49 pm
Forum: General discussions
Topic: Way to indicate comments made by (logged in) user/admin
Replies: 50
Views: 15364

Re: Way to indicate comments made by (logged in) user/admin

http://www.bernhard-runzheimer.de/blog/ ... l#comments

At the moment, I'm checking the commenters url to set the custom css class...so this is actually how it should look like (blue user icons = "normal" comments, black user icon = blog owner comment).