News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how do you eliminate php as "guest"?

Started by pulpitfire, December 16, 2003, 08:26:42 AM

Previous topic - Next topic

pulpitfire

i modified Index.php on YaBB SE, to display news on the front page, in stead of the forum.  now, it always shows as if there is a guest (php) reading the news.  how can it be made to recognize the user instead of php, in users online and who?

setup is like this...

Quote
[Index.php]
       if ($currentboard == '' && $action != 'forum') { include_once "news.php"; obExit(); }
   if ($action == 'forum') { include_once "$sourcedir/BoardIndex.php"; BoardIndex(); }
           include_once "$sourcedir/MessageIndex.php"; MessageIndex();
      obExit();

news.php looks like this....

Quote
<? template_header(); ?>
<? include("http://www.pege.net/index.php?action=news;board=36"); ?>
<? footer(); ?>


Advertisement: