Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Does OSC have a protected members pages?


garlicbred

Recommended Posts

Posted

Hi. I have been looking for a script that allows a user to login & see protected members pages. Theres many out there, but Im in a hurry & Im not a pro programmer.

 

I heard that OSC has this functionality. Specifically I need it to:

Protect a range of pages (super security not needed)

password is chosen - not generated

Auto password retrieval

Access levels

Stats available to see what the users are looking at/downloading the most

 

Ive seached this forum & the main site but cant find any info.

Can someone point me in the right direction please, or at least indicate whether or not OSC can easily acieve the above.

 

Thanks

ant

Posted

You can protect any page in osCommerce by placing the following code below the call to application_top.php:

 

  if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 

Matti

Posted
You can protect any page in osCommerce by placing the following code below the call to application_top.php:

 

 ?if (!tep_session_is_registered('customer_id')) {
? ?$navigation->set_snapshot();
? ?tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
?}

 

Matti

 

 

OK, so looking at the code ... if someone isnt logged in then show the login page...

If i read that correctly, that should do it I think... yes

 

Although I was hoping for some kinda special plug-in thingy ... has anyone developed any brilliant scripts made for slow designers - non programmers. Youd think that kinda thing would be pretty common.

 

Thanks for that code Matti

Archived

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

×
×
  • Create New...