Forum/plugin for forum

Hi, i’m hosting a forum for me and my friends(at least trying to do so) and i have a couple of questions for you guys.

I want this to be strictly for users i want on the site, so i have created a login page, members page, and a couple of others. I now wonder, how to create a forum where i can use this session to make sure only users i have added to the DB to see anything on this forum. After all this info here a my Q’s:

  • Do you have a tut. where i can learn how to make this forum?
  • Is there an plugin that allows me to do just this?
  • How secure is a simple login in php?

Most of your requirements already handled by forum software. So if your building your own, than you should provide code where you are having problems with as well as a description of the problem

But in what type of software? that was a part of the question :stuck_out_tongue:

If you’re concerned about security in your code, The Open Web Application Security Project (OWASP) has some very good articles on - many specifically related to PHP code.

In terms of limiting certain users to certain parts of your site, you could add permissions to the post record in the database:

E.g. an allowed_users field that contains something similar to this:

Dave,Mark,Simon

Then check those values on the page:

[php]$result = mysql_query(‘SELECT * FROM posts WHERE posts.id=12345’);
$post = mysql_fetch_array($result);
$allowed_users = explode(’,’, $post[‘allowed_users’]);

if(in_array($_SESSION[‘user’], $allowed_users)) {
// Allowed access
} else {
// Not allowed access
}[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service