Hi all,
Is there a way to hide all items from the public (non-registered members)?
Many thanks in advance !![]()
This is a discussion on Items viewable to registered memebers only? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi all, Is there a way to hide all items from the public (non-registered members)? Many thanks in advance !...
Hi all,
Is there a way to hide all items from the public (non-registered members)?
Many thanks in advance !![]()
You would have to modify the code. It can be done without too much difficulty. It would redirect non-logged in people to the login page. You would need to add something like:
You would add this to your index.php or main_page.tpl.php. I have not tested this so it may require other modifications as well, but you get the idea...Code:if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } else {
Michael Sasek
osCMax Developer
osCmax Installation Service - Have our professionals install osCmax on your server - same day service!
osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5
Stay Up To Date with everything osCMax:
Free osCmax Newsletters - Security notices, New Releases, osCMax News
osCmax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
Hi Michael,
Thanks much for your help, good to know that it is possible.
However, would you mind to let me know where exactly in index.php I should add this? I'm not familiar with PHP... Thanks !
For those of you who are interested, found a great contrib over at the osCommerce site:
http://www.oscommerce.com/community/...l/search,login
Bookmarks