Jump to content

andy3dfx

Member
  • Posts

    5
  • Joined

  • Last visited

About andy3dfx

andy3dfx's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I created a custom add-on module to access a remote service without giving client full access. However, the full login information is displaying in the client area. The module $param[username] and password is showing when the field isn't empty. How do you disable it or hide it? Is there a configuration setting I can put in the module code to disable it? Thank you.
  2. Thank You laszlof. I found the solution. That was my original thought, to do processing in clientarea() code. But the function will get ridiculously long and defeat the purpose of having custom function ability. Plus, the code will lose it is modularity as well. Here is easy solution. the WHMCS has smarty var for custom function output. Just put {$modulecustombuttonresult} in clientareaproductdetails.tpl. Credit to Matt in WHMCS
  3. I understand. Let's say I call the custom function reboot in clientarea like function template_ClientArea($params) { $code = '<form action="clientarea.php?action=productdetails" method="post" > <input type="hidden" name="id" value="'.$params["serviceid"].'" /> <input type="hidden" name="modop" value="custom" /> <input type="hidden" name="a" value="reboot" /> <input name="user" size="20" type="reboot" /> <input type="submit" value="test" /> </form>'; return $code; } How do you display the $result from the custom reboot function in clieantarea? I tried with $code .= $result. It didn't work. If I do echo $result; in reboot function. It will display on top of clientarea before the <HTML> code which isn't right.
  4. function template_reboot($params) { # Code to perform action goes here... if ($successful) { $result = "success"; } else { $result = "Error Message Goes Here..."; } return $result; } This example code above. I can see the $result message passed back into admin area page. But how do you pass back the $result into client area? I can see the smarty template var {$moduleclientarea}. This is where to display client codes. So how to show custom responds $result into {$moduleclientarea} ? Thank you for the help.
  5. I need to create an add on module for WHMCS. I read through the documentation and example code provided in ModuleDevKit. It didn't really help that much. There is only about 4 pages in that document. The template file is confusing as well. Does anyone know an open source module for WHMCS I can get so I can get a better understanding of how add on module works? Or a simple tutorial? wiki page? I have googled a lot on this topic, none had any good information. Thank you for the help.
×
×
  • 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