Jump to content

SMF user identify pattern


asmith

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.