![]() |
password protect static page
i need to password protect one of our static pages. i thought i could just do it by .htaccess which works for protecting the actual html file. http://****/skin1/pages/US/stores.html)
however, when i try http://****/pages.php?pageid=5 pays no attention to the fact that the html page is protected. is there a way to keep x-cart from displaying the static page unless the right username/password is entered? any help would be most appreciated. thanks. |
Enable smarty tags on your static pages. Then follow this.
Code:
{if $login eq "" } If the user is not logged in it will display the 'You must login..' if they are logged in it will show the HTML. |
thanks for the tip. however, i want to use a completely separate password that is not linked to x-cart accounts. maybe this is impossible?
|
All times are GMT -8. The time now is 06:11 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.