hidden if not logged in...

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
brownrl
Forum Members
Forum Members
Posts: 74
Joined: Thu Sep 23, 2004 11:06 am

hidden if not logged in...

Post by brownrl »

Ok,

here's one I have not seen...

Lets say I have a session var $_SESSION['logged_in'] == 0;

Well when it is 0 I want to make sure not to show the link to a page that requires login.

Can I in the MenuManager templates or MenuManager module code add a little something to check this session var?


Thanks a ton in advance.

Regards,
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: hidden if not logged in...

Post by calguy1000 »

read the smarty manual....... session variables are available to smarty.
menu manager templates are just funky smarty templates.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
brownrl
Forum Members
Forum Members
Posts: 74
Joined: Thu Sep 23, 2004 11:06 am

Re: hidden if not logged in...

Post by brownrl »

thanks got it.

$smarty.session.etc.yada.yada.... thanks a ton....
Post Reply

Return to “Developers Discussion”