boppes Posted October 19, 2007 Share Posted October 19, 2007 Hi all, I was wondering if there is some sort of function defined in OSC that retruns a boolean value of wheater a person is logged in or not. I want to add some content pages for my custumers with an account, and the content must differ from guests on the site. So can someone help me please? Thanks in advance! Greeting, Bob Link to comment Share on other sites More sharing options...
germ Posted October 19, 2007 Share Posted October 19, 2007 This bit of code: <?php if (tep_session_is_registered('customer_id')) { // insert code for LOGGED IN people here } else { // insert code for NOT LOGGED IN people here }?> Will get you where you need to go.... :thumbsup: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
boppes Posted October 21, 2007 Author Share Posted October 21, 2007 Thanks that did the trick! topic closed Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.