asmith Posted June 5, 2008 Share Posted June 5, 2008 hey guys I wanted to set my site like if the user login in the forum, he become logged in to the site pages too. I was checking index.template.php of the theme folder of SMF, and from what i saw i tried to test it : <?php global $context, $settings, $options, $txt; if($context['user']['is_logged']) { echo 'it is working!!!'; } else {echo 'sorry';} ?> it gave me "sorry" for both times i'm logged on forum or i'm not. what's the problem with that ? Link to comment https://forums.phpfreaks.com/topic/108882-smf-user-identify-pattern/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.