FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Using fudforum throughout a website  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Using fudforum throughout a website [message #9718 is a reply to message #9619] Tue, 15 April 2003 22:59 Go to previous messageGo to previous message
philip is currently offline  philip   United States
Messages: 21
Registered: December 2002
Karma:
Junior Member
I've started this process and here's what I have thus far, this might help people in the future or perhaps be streamlined by someone but it appears all these files are required. This is just a simple example:

<?php 
include_once '/path/to/your/GLOBALS.php';
include_once 
$DATA_DIR 'sql/mysql/db.inc';
include_once 
$INCLUDE  'core.inc';
include_once 
$INCLUDE  'theme/default/err.inc';
include_once 
$INCLUDE  'theme/default/cookies.inc';
include_once 
$INCLUDE  'theme/default/time.inc';
include_once 
$INCLUDE  'theme/default/users.inc';

// Initiate user, returns an array of objects with user info
$userinfo init_user();

echo 
"Visit the <a href='{$WWW_ROOT}?S=" "'>forum</a>
"
;

// Only logged in users have $userinfo[1] set
if (empty($userinfo[1])) {
    include_once 
$INCLUDE 'theme/default/quicklogin.inc';
    print 
$quick_login;
} else {
    print 
'You are logged in as ' $userinfo[1]->alias;
    print 
'<pre>';
    
print_r($userinfo);
}
?>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to display latest post/topic on another page
Next Topic: CHANGE MY HOME URL??
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 17:26:47 GMT 2024

Total time taken to generate the page: 0.04450 seconds