View Single Post
  #40  
Old 11-30-2005, 12:09 PM
 
danbass danbass is offline
 

Member
  
Join Date: Mar 2005
Posts: 13
 

Default

Quote:
Originally Posted by instinctual
lol, alright, let's get serious about this

So - we can assign variables for sure - that shouldn't be a problem - here is what we should be working with from what I can tell - and I'd like to put this into your auth.php file.

Code:
$membershiplevel=array_pop(func_query_first("select membership from $sql_tbl[customers] where login='$login'")); $smarty->assign("membershiplevel",$membershiplevel);

Now, this really should do the trick I would think - may need some slight tweaking though so lemme know. You can pretty much stick this at the end of the file...

Then your if/then tag would look like:

Code:
{if $membershiplevel eq 'Premium'}Do it!{/if}

Cheers!

Can this be altered so that people who are unregistered can see a specific membership level. I want the unregistered users to see the Retail products and registered users to see the products based on their membership level.
__________________
Dan
XCart 4.1.6 Pro
XCart 4.1.6 Gold
Redhat 7.2
Perl 5.006001
PHP 4.1.2
Reply With Quote