Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Installing & running WordPress (http://forum.bytesforall.com/forumdisplay.php?f=6)
-   -   Comments visible only for members? (http://forum.bytesforall.com/showthread.php?t=8977)

Superhero360 Aug 17, 2010 07:37 AM

Comments visible only for members?
 
Hello,

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?

cu
Superhero360

WebPro Nov 20, 2010 12:36 PM

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

MichelHerbert Jan 6, 2011 10:25 PM

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.


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

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