Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

password protect static page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-29-2005, 02:01 PM
 
groovedis groovedis is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 52
 

Default 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.
__________________
X-Cart version 4.0.13 (unix)
Reply With Quote
  #2  
Old 12-29-2005, 05:34 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default

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.
Reply With Quote
  #3  
Old 12-30-2005, 10:21 AM
 
groovedis groovedis is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 52
 

Default

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?
__________________
X-Cart version 4.0.13 (unix)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:11 AM.

   

 
X-Cart forums © 2001-2020