peak Posted June 30, 2008 Share Posted June 30, 2008 does anyone know how to phrase this in smarty lingo? Is there a way to say {if someone is already registered as an affiliate......} say this {else} say this {/if} 0 Quote Link to comment Share on other sites More sharing options...
freedombi Posted June 30, 2008 Share Posted June 30, 2008 For the page in question, add {debug} to the template. This will pop up a window containing all of the variables available. There may not be anything about affiliates on that page, though. I'd recommend copying your existing template to a test template and using that, so users don't get popups with all the variables. 0 Quote Link to comment Share on other sites More sharing options...
peak Posted June 30, 2008 Author Share Posted June 30, 2008 I did do that, but it there is nothing applicable. I was just wondering what the code snippet was that knew if you were an affiliate when you go to affiliates.php. If you are already an affiliate, it goes to your stats, if not, it prompts you to sign up. However, I think that code is embedded in the affiliates.php, rather then the affiliates.tpl, unfortunately! Thanks for the advice! 0 Quote Link to comment Share on other sites More sharing options...
Redsign Posted June 30, 2008 Share Posted June 30, 2008 You could do a quick query on the database to get this. Shouldn't be too hard, Ben 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.