MyBB Community Forums

Full Version: Member Permissions Out Side the Forum?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm making a section on my actual website that only members of my forum can access. Well at least trying to.

Is there a way that I can set permissions for the members out side of the forum? I make them log in and it directs them to the page but anyone can get there with a direct link...

Help anyone?

Heres the code I done so far on the log in page.


<form action="forums/member.php" method="post">
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Login</strong></td>

</tr>
<tr>
<td class="trow1"><strong>Username:</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" size="25" maxlength="30" style="width: 200px;" /></td>
</tr>
<tr>
<td class="trow2"><strong>Password:</strong><br /><span class="smalltext">Please note that passwords are case sensitive.</span></td>
<td class="trow2"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" /> (<a href="forums/member.php?action=lostpw">Lost your password?</a>)</td>
</tr>
</table>

<br />
<div align="center"><input type="submit" class="button" name="submit" value="Login" /></div>
<input type="hidden" name="action" value="do_login"/>
<input type="hidden" value="{MY REDIRECTING  PAGE, I REMOVED THE LINK SO YOU DONT SEE IT}" />
</form>
There are a few tutorials in the "User Submitted Tutorials" forum about forum-site integration.