Log in

View Full Version : PHPBB as User System....



gbt91
29-03-2007, 02:48 PM
I have heard that you can use PhpBB as an User System for your website and protect your pages just like a normal user system...
who knows something about it??????

Sam
29-03-2007, 03:03 PM
Why not just get a user system ?

Nether$
30-03-2007, 03:50 PM
I don't use PHBB but i could take a look. Try this or simular

Following is coded to work with most forums

<?php
chdir('forums');
require './global.php'; // Path to either global or member page. for example this is http://www.example.com/forums/global.php
?>

<!Doctype...>
<html>
<head>
</head>
<body>
<?php

if($variable_for_the_current_Session)
{
// The user is logged in content here for logged in users to see.
echo "HTML here, or to show nothing leave blank. Only use ' in here and not double quotes. If you have to use double quotes write like this \". When you have put the HTML here close like this";
}
else // else, well work it out. Not logged in. I've included a login form :)
{

echo "<form action='forums/member.php' method='post' target='logintarget' onsubmit='submitted()'>

<input type='hidden' name='url' value='http://www.habbohalaxy.com/en.php' />
<input type='hidden' name='action' value='do_login'>
<table border='0' cellpadding='0' style='border-collapse: collapse' width='100&#37;' id='table1'>
<tr>
<td style='padding-bottom: 4px'>Username</td>
<td style='padding-bottom: 4px'><input type='text' name='username' size='17' maxlength='30' style='font-family: Verdana; font-size: 8pt; border: 1px solid #000000' tabindex='1' /></td>
</tr>
<tr>
<td>Password</td>
<td><input type='password' name='password' size='17' style='font-family: Verdana; font-size: 8pt; border: 1px solid #000000' /></td>
</tr>
</table>";
?>
</body>
</html>

Change username to whatever the var is for your forum.

This will only help if you are very good at php xD

If you can change to MYBB and i will be able to help you fully.

Want to hide these adverts? Register an account for free!