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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.