Home  | FAQ  | Search  | Memberlist  | Usergroups  | Register  | Profile  | Log in  | Log in for your private messages
Restricting Comments to Users Only

 
Post new topic   Reply to topic    myWebland Forum Index -> Customization
View previous topic :: View next topic  
Author Message
nathaningram
Newbie


Joined: 05 Jun 2006
Posts: 6

PostPosted: Mon Jun 05, 2006 3:55 am    Post subject: Restricting Comments to Users Only Reply with quote

Is is possible to restrict the ability to comment to users only?
Want to create a blog where anyone can read it but only signed in users can comment.

Thanks!
Nathan
Back to top
View user's profile Send private message
sean
Site Admin


Joined: 14 Jul 2004
Posts: 671

PostPosted: Mon Jun 05, 2006 5:18 am    Post subject: Reply with quote

In the view.php file

below this line

Code:
  if (isset($_POST["submit"])) {


insert this

Code:
 if (!isset($_SESSION['username']) || !isset($_SESSION['passwd'])) {
 ($lang['Error'],"Only registered members are allowed to comment"); }
Back to top
View user's profile Send private message Send e-mail
nathaningram
Newbie


Joined: 05 Jun 2006
Posts: 6

PostPosted: Mon Jun 05, 2006 1:53 pm    Post subject: Reply with quote

Awesome! Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    myWebland Forum Index -> Customization All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
TNX?

Error. Page cannot be displayed. Please contact your service provider for more details. (16)




Powered by phpBB © 2001, 2005 phpBB Group
Contact Us