How can I insert:
- Registered User
- Login Status
- Latest Post Forums.
- Welcome Status e.g.: "Welcome, Guest/Registered User Name."
to my Main website. In short "What are the phpBB modules?"
Please help me!
How can I insert:
- Registered User
- Login Status
- Latest Post Forums.
- Welcome Status e.g.: "Welcome, Guest/Registered User Name."
to my Main website. In short "What are the phpBB modules?"
Please help me!
Last edited by cluepoe; 12-31-2007 at 07:44 AM.
You'll have to specify which version of phpBB you're using.
phpBB3...
This should get you started. $user->data will contain an array of the user's data. Uncomment the print_r() command to list all the data it has in the array. Ex: $user->data["username"] will contain the user's username. You can check if the person is logged in by checking if the username is "Anonymous"; a guest's $user->data["username"] will contain "Anonymous".
PHP Code:<?php
define('IN_PHPBB', true);
$phpbb_root_path = 'forums/'; // Directory of the forums
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path."common.".$phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// print_r($user->data);
?>
Last edited by Penguin129; 12-31-2007 at 08:30 AM.
Uhh... I'm hoping for an html? Is there anything that would be in html?:happysad:
Last edited by cluepoe; 12-31-2007 at 12:34 PM.
Erm html then I can't help you there.
modules are extras like games and stuff