[wp-hackers] comment author vs post author

Mark Jaquith mark.wordpress at txfx.net
Fri Dec 3 09:52:27 UTC 2004


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
>>
>>    
>>
>
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/hackers_wordpress.org/attachments/20041203/1bc6fcf9/attachment-0001.htm


More information about the hackers mailing list