[wp-hackers] comment author vs post author
BoBB
rjorgy at gmail.com
Fri Dec 3 10:04:35 UTC 2004
So in the comment loop $authordata refers to the author of the post
and not of the comment correct?
On Fri, 03 Dec 2004 04:52:27 -0500, Mark Jaquith
<mark.wordpress at txfx.net> wrote:
> You could replace 'my_secret_email at site.com' with $authordata->user_email
> and then just post comments using the e-mail address set under your User
> Info page in WordPress.
>
>
>
> BoBB wrote:
> I would have to post my comments with that secret email then? I suppose
> that could work although I would like something a bit more on the code
> level. On Fri, 03 Dec 2004 04:26:12 -0500, Mark Jaquith
> <mark.wordpress at txfx.net> wrote:
> I just designate a secret e-mail address for my own comments and do this:
> <?php if ($comment->comment_author_email == 'my_secret_email at site.com'){ //
> do stuff } ?> The secret e-mail address acts as a sort of password. Works
> for me. BoBB wrote:
> Is there any way to verify if the author of a comment is the author of the
> post? Something like this within the loop if (comment_author() ==
> the_author) {do_this;} _______________________________________________
> hackers mailing list hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>
>
>
--
/* BoBB
* AIM: Jodokast49 ICQ: 151495596
* Jabber: BoBB at jabber.com
* http://myeurotrip.org
*/
More information about the hackers
mailing list