Topic: im gona get threw this
ok so i integrated this board with the login for the rest of my site. http://www.fatalthugs.com
if you give /ROOT a peep you can see the login box at the bottom of the screen. if a user types his forum name and password into there everyting works nicely and they get a little list of options.
the only thing now is having to retype the password even if your logged into the forum is becoming a pain.
if i could just pull the username and password out of the cookie for punbb then im pretty confident that i wouldnt have much trouble getting users logged in automaticly.
heres what ive tried so far.
<?php include("siteheader.php"); ?>
asdf
<?php
// We add the forums directory to the PHP path so that PHP can find the scripts we include later
ini_set('include_path', ini_get('include_path').'/forums');@include 'config.php';
// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
exit('config.php doesn\'t exist or is corrupt. Please run install.php to install PunBB first.');// The next line tells PunBB to not update the cookie of the visiting user
// A visit to the front page shouldn't affect stuff like new post indicators
define('PUN_DONT_UPDATE_COOKIE', 1);
require 'include/common.php';?>
asdfasdf
<?php include("sitefooter.php"); ?>
however i get the error message
asdf config.php doesn't exist or is corrupt. Please run install.php to install PunBB first.
its pulling the siteheader and sitefooter includes just fine. so i guess that means that its setting the path incorrectly.
all im looking for is the bare minimum code that pulls out the username and password. if i could get this working them im pretty sure ill be able to understand the rest just fine.
thanks for the help everybody.
oh btw, this is sporkit. heh, i must have forgotten to change the password on my other account and i think the password rest function is broken. oh well
EDIT: oh yea and if we need im putting this all in a file called cookie.php on my site for testing. you can check it out here... http://www.fatalthugs.com/cookie.php