1 (edited by SEDATED_SOUL 2008-04-21 16:42)

Topic: Integration problems, login box

Hey All,

I'm trying to add a login for the forums to the main page of my site. I've been through the integration guide, but I guess im not understanding, because any code I try results in my page coming up blank. I've scrapped my code for now till I can do more research, but some insite from you guys may help... I whipped up a quick image of what I'd like to acheve..

http://www.xalaris.net/imgtemp/loginbox.png

**UPDATE***

I created a test.php page and I have been able to get it to say "welcome guest" but I'm still confused on how to add the login box. this is my code so far

<?php

define('PUN_ROOT', './forum/');
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';

?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
Welcome <?php echo pun_htmlspecialchars($pun_user['username']); ?>! Please Login!

</body>

</html>

Re: Integration problems, login box

I'm not sure if this matches up with what you are trying to do, but have you had a look at this example code?:

http://wiki.punres.org/Add_a_login_form_over_the_header

Re: Integration problems, login box

That helped me with what I needed to acomplish smile Thanks