Quote:
Originally Posted by ausnrl
Billspaintball whats going to be different about the other one you are going to release.
|
Just rewritten so its neater, only one line to change instead of 4, and better instructions.
(Then there is the more complex version I use that displays the logged in users Avatar, and any unread PM's, whict I will tidy up and release one day)
Your logout problem is probably because you have whitespace (just a plain ole space)either before or in the includes.
Here, try this.
Save this code in a file called test.php an upload it to your server.
Remember to edit the 3 paths here so they match your site.
PHP Code:
<?php
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
?>
<html>
<body>
This is a heading<br />
This is some more stuff <br />
And another line<br />
You get the idea<br />
Just place stuff as you normally would with HTML<br />
I use CSS to style and position on my site fwiw<br />
<br />
How about we put the login box right under here?<br />
<br />
<?php
require_once('/path/to/your/login_inc.php');
?>
</body>
</html>
remember, you need to edit the paths in your login_inc.php and upload it as well.