Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » Running WordPress » Installing & running WordPress »

Comments visible only for members?

Old Aug 17, 2010, 08:37 AM
1 posts · Aug 2010

I am using the Plug-in ""Member Access" to turn visibility for each page for "members only" or "for everyone" on and off.
Right now I am looking for a solution to turn comments visibility "for members only" or "for everyone" for each separate page. Is there a plug in for Word Press to do that easily?

Old Nov 20, 2010, 01:36 PM
WebPro's Avatar
2 posts · Nov 2010
SF Bay Area, CA
If you are a litlle bit familiar with PHP you can have these blocks of code to block the comments displays for non logged users. Open the comments.php file or whatever file assumes that role.
You can add this line of code at the top of that PHP file:
<?php if (is_user_logged_in()): ?>

Then add the line below at the very end of the file.
<?php endif; ?>
Old Jan 6, 2011, 11:25 PM
1 posts · Jan 2011
Hello, thanks for advice.
I am using the Plug-in ""Member Access" to turn visibility for each page for "members only" or "for everyone" on and off.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Comments from Non-Members? christina Comments, trackbacks & pings 13 Sep 24, 2010 05:31 AM
Members Area in Atahualpa bandsecretarypelpb Atahualpa 3 Wordpress theme 5 Aug 9, 2010 07:00 AM
5000+ members deleted, please register again Flynn Atahualpa 3 Wordpress theme 2 Jul 20, 2010 05:37 PM
Pages visible for members only DonC Center area post/pages 3 Mar 30, 2010 05:35 PM

All times are GMT -6. The time now is 01:01 AM.

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