![]() |
Re: If statement help - wholesale
Sorry, like I said, probably too many customizations :(
Put this in your auth.php: Code:
Then output to your template: ID: {$userinfo.membership} Let me know what is output. |
Re: If statement help - wholesale
No problem, I really appreciate your help, Jon. :)
Unfortunately, that made the front-end of the site blank again. |
Re: If statement help - wholesale
Are you able to provide FTP to the site? It would be easier to see the exact files and be able to debug without causing problems to the customers
|
Re: If statement help - wholesale
Absolutely, I'll send you a PM.
|
Re: If statement help - wholesale
Here's the code to us:
In auth.php before ?> Code:
$userinfo = func_query_first("SELECT login,firstname,lastname,membership FROM $sql_tbl[customers] WHERE login='$login'"); Code in your templates: Code:
{if $userinfo.membership eq "Wholesale"} Show Text{/if} |
Re: If statement help - wholesale
Yay, it worked! :) Thank you so much, Jon!!!!
|
Re: If statement help - wholesale
Which template file has the homes main content information. I want a link to be displayed on the main home page as long as the user has a Premium membership
|
Re: If statement help - wholesale
skin1/customer/main/welcome.tpl
|
Re: If statement help - wholesale
I get an error when putting that code in my auth.php
|
Re: If statement help - wholesale
The code for 4.1.7 would be different, I believe:
Code for auth.php before ?> Code:
$userinfo = func_query_first("SELECT login,firstname,lastname,membershipid FROM $sql_tbl[customers] WHERE login='$login'"); Code for use in template: Code:
{* Where "X" is the numeric membershipid *} |
All times are GMT -8. The time now is 10:55 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.