Jump to content

Add-on modules visible for customers


Recommended Posts

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.

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • WHMCS CEO
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated