Yup...cheers!Don Chambers wrote:I think its time for a beer!
Search found 37 matches
- Wed Mar 21, 2012 4:19 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
Re: Way to indicate comments made by (logged in) user/admin
- Wed Mar 21, 2012 3:51 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
<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 ...
- Wed Mar 21, 2012 3:34 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
- Tue Mar 20, 2012 8:52 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
- Tue Mar 20, 2012 8:22 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
- Tue Mar 20, 2012 7:59 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
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 ...
- Tue Mar 20, 2012 6:54 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
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 ...
- Tue Mar 20, 2012 6:01 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
Re: Way to indicate comments made by (logged in) user/admin
Same result as in earlier attached pic. $comment.authorid is always 1.Timbalu wrote:What about using the admin author id?Code: Select all
{if $comment.authorid == 1}_admin{/if}
- Tue Mar 20, 2012 5:48 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
Comments 1 and 3 have the same mail address (same user), but a different mail address than comment 2 (blog owner ...
- Tue Mar 20, 2012 8:44 am
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
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 ...
- Tue Mar 20, 2012 8:34 am
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
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 ...
- Mon Mar 19, 2012 11:56 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
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 ...
- Mon Mar 19, 2012 11:33 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
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 ...
- Mon Mar 19, 2012 10:40 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
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 ...
- Mon Mar 19, 2012 9:49 pm
- Forum: General discussions
- Topic: Way to indicate comments made by (logged in) user/admin
- Replies: 50
- Views: 39371
Re: Way to indicate comments made by (logged in) user/admin
http://www.bernhard-runzheimer.de/blog/archives/771-Its-dangerous-to-go-solo....html#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).
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).