News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Issues with custom pages logging users out.

Started by Spaztnb, September 17, 2007, 08:09:54 PM

Previous topic - Next topic

Spaztnb

--=SOLVED=--

I've made a custom page that utilizes the same layout as the rest of my SMF Forum System. (This page is a roster of people in a group on our game server)

I used this basic php code to set up the page.


<?php

$ssi_theme
= 4;
$ssi_layers = array('main');
require_once(
'SSI.php');

// All of the custom coding I did went here

ssi_shutdown();

?>


Here is an image of the site when browsing the forum index:

Enlarge: hxxp:www.tacoinbanana.com/smf/tnbloggedin.jpg [nonactive]


And here is what I see after clicking the link to my custom page:

Enlarge: hxxp:www.tacoinbanana.com/smf/tnbloggedout.jpg [nonactive]


So to sum it up, the issue I am having is that when I click on the link to my custom page, it shows that the user is logged out. Is there a code I must add to my above script that will add the user session or something of the sort?

Any comments or tips would be greatly appreciated.

Advertisement: