justinsigner Posted March 20, 2008 Share Posted March 20, 2008 I would like to intergrate APC reboots, Bandwidth, rDNS and power usage for certain customers (who have severs, colocation and racks), it would be great to have something like the add-on modules, but visible for customers. I hope our wishes will be granted. Regards. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 20, 2008 WHMCS CEO Share Posted March 20, 2008 This is already possible - it's called "editing the templates"! You can add anything you want to the client area via the template files, including your own PHP code, buttons, remote API calls, bandwidth images, etc... Matt 0 Quote Link to comment Share on other sites More sharing options...
justinsigner Posted March 26, 2008 Author Share Posted March 26, 2008 Dear Matt, Thanks for your reply, I looked at the debug options, those will not be sufficient. I wrote a huge, ip_mangement systemen, controlled in the admin area (add-on), where I can match servers, racks, colo, remote APC, bandwidth to clients. This information is stored in SQL. In order for a specific client to see the information about the clients products as mentioned above, I will need to include $_get and mysql tables. In order to make a frontend for the clients, I will need to put it on a separate page, for instance clientarea.php?=manageproducts(&....). I found out this is not possible. What could be an option is to provide an empty page but with header and footer (manageproducts.php or whatever) like the add-on modules in the admin area to include this feature where I can write php. Regards, Justin 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 26, 2008 WHMCS CEO Share Posted March 26, 2008 You mean like this: http://wiki.whmcs.com/Creating_Pages ? Matt 0 Quote Link to comment Share on other sites More sharing options...
justinsigner Posted March 27, 2008 Author Share Posted March 27, 2008 Dear Matt, That is close, but if I put plain php code in such a file the output is all over te screen. I will have to put the php code in the template, which is mind breaking because it is SMARTY, I am going crazy from it. Can you tell me how to get the {clientsdetails.id} into a variable (let's say $id), so I can use it in between the {php}{/php} tags? Or can you tell me how not to use the content templates and just code hard php in a new created page? See screenshots http://www.spango.com/1.jpg http://www.spango.com/2.jpg Regards, Justin 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted March 27, 2008 WHMCS CEO Share Posted March 27, 2008 That is close, but if I put plain php code in such a file the output is all over te screen. I will have to put the php code in the template, which is mind breaking because it is SMARTY, I am going crazy from it. You wouldn't need to do that. Just take a look at how smarty works @ http://smarty.php.net/ and it should all become clear. Matt 0 Quote Link to comment Share on other sites More sharing options...
justinsigner Posted March 27, 2008 Author Share Posted March 27, 2008 I did, and could not figure it out. That's why i am asking you. Regards, justin 0 Quote Link to comment Share on other sites More sharing options...
johnmigen Posted March 29, 2008 Share Posted March 29, 2008 {php} extract($this->_tpl_vars); echo $item_price; {/php} Reference from http://forum.whmcs.com/showthread.php?t=8031 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.