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 #9719 is a reply to message #9718] Tue, 15 April 2003 23:14 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Few issue with this code, GLOBALS.php will automatically include core.inc, so including it manually is not necessary.
core.inc has a nice function called fud_use() that can be used to include forum's .inc file.
users.inc will automaticall initialize the user and store the data inside $usr variable unless the 'forum_debug' constant is defined.
So the code could be simplified to:
<?php 
include_once '/path/to/your/GLOBALS.php';
fud_use('db.inc');
fud_use('err.inc');
fud_use('cookies.inc');
fud_use('time.inc');
fud_use('users.inc');
$userinfo $usr;

if (!
_uid) {
    
fud_use('quicklogin.inc');
    print 
$quick_login;
} else {
/* registered user stuff */
}
?>


FUDforum Core Developer
[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: Sun Nov 10 06:48:07 GMT 2024

Total time taken to generate the page: 0.04624 seconds