andyf Posted March 1, 2008 Share Posted March 1, 2008 Hi everyone, Not touched PHP for ages and haven't really understood the smarty variables but could someone point me in the right direction? I have created a bare page using the code in the WHMCS KB. Now I want to add some php code to the tpl file (i think) and create a interface for administration purposes. I am basically creating a download area whose files are specific to that client. SO I want to do the following: 1. Client logs into WHMCS Client ARea. 2. Clicks on Downloads Center Link (No problem with this) 3. Downloads appear in a list from mysql db that is already setup I have been trying to use {php} and {/php} but just keep getting blank pages. Is there a easy way of doing this or if someone could point me to a general tutorial or advice on how to add php within whmcs. I copied the php code to a php file and called it and it works direct to the file but I want to try to integrate it with the WHCMs Client Area. Thanks for any general advice Cheers Andy 0 Quote Link to comment Share on other sites More sharing options...
chickendippers Posted March 1, 2008 Share Posted March 1, 2008 Here's the smarty documentation: http://www.smarty.net/docs.php 0 Quote Link to comment Share on other sites More sharing options...
andyf Posted March 1, 2008 Author Share Posted March 1, 2008 Thanks Chicken Dippers... Having some probs with MYSQL Server so I will try later. Many Thanks andy 0 Quote Link to comment Share on other sites More sharing options...
dr2web Posted March 20, 2008 Share Posted March 20, 2008 When I have problems with smarty conflicts in my code I just wrap the code in {literal} code {/leteral} Works most of the time. Here is an ebook on smarty that might help. http://www.cheapest-hosting.net/downloads/smarty.pdf Hope that helps. 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.