[wp-hackers] comment author vs post author

Horst "zeroK" Gutmann zerok at zerokspot.com
Fri Dec 3 11:23:49 UTC 2004


Mark Jaquith 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
>  
>
I additionally also check that no guest uses the username or email 
address of a registered user.



More information about the hackers mailing list