Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] BFA Recent Comments (http://forum.bytesforall.com/showthread.php?t=2563)

Tammy Jul 21, 2009 05:01 PM

[SOLVED] BFA Recent Comments
 
Is it possible to exclude your own comments with this widget? Maybe something that could be edited in the theme editor?

Thanks. :)
Tammy

juggledad Jul 21, 2009 06:31 PM

When you say your own comments, do you mean 'Admin' or are you asking is there a way to exclude comments made by a particular user or group of users?

Tammy Jul 21, 2009 10:05 PM

Hi Juggledad,

I mean admin comments. This way it will show everyone's comments but mine. I didn't see a way to do this in the widget and was wondering if it was something that could be done in the editor.

Thanks.
Tammy

juggledad Jul 22, 2009 05:28 AM

Well you can do this. In Atahualpa 3.4.2 edit bfa_recent_comments.php line 120 should be
HTML Code:

            foreach ($comments as $comment) {
put the following code right after that line. You must change juggledad to the name you want to skip. This may be 'Admin' or your full name depending on the settings for the user at dashboard->Users
HTML Code:

if ($comment->comment_author == 'juggledad') continue;
you could add multiple copies of this line with different names in it, if there was any need to do that.

Tammy Jul 22, 2009 08:43 AM

Thank you! That worked!


All times are GMT -6. The time now is 02:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.