X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   password protect static page (https://forum.x-cart.com/showthread.php?t=18939)

groovedis 12-29-2005 02:01 PM

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.

wjbrewer 12-29-2005 05:34 PM

Enable smarty tags on your static pages. Then follow this.

Code:

  {if $login eq "" }
You must login to view this page
{else}
                 
--Insert you HTML here--

{/if}



If the user is not logged in it will display the 'You must login..' if they are logged in it will show the HTML.

groovedis 12-30-2005 10:21 AM

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.