Jump to content

Zepx

Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Zepx

  1. Oh dear this is getting out of topic isn't it lol. I was asking if it could be done. I'm a developer, so if there's no such addon, I might be developing one myself. No worries, the downtime was only 48 hours due to a hack attempt...
  2. Let's say I have a downtime of 5 days, and I wish to credit/compensate my active customers 1 week of service. How should I do that? I know this can be done with SQL query, but is there a way to do it without touching the SQL query?
  3. Hello, I'm quite new to WHMCS, and looking to create some customization to fit my needs. Before I begin, I had some questions in mind which I could now find my answer. I've read the documentation and had a look at Hooks and API, but I was wondering, 1. I've seen some hooks using functions available from WHMCS itself. The thing is, I do not know where I can have a look at such function. Is there a documentation on this? An example of function I'm talking about is full_query(). 2. Also, I find it hard to understand the functions of the hooks sometime. For example, AfterCreateModule, at which point does this hook come in? After the product has been activated? 3. With regards to my 2nd question, I was trying to figure out what $params in hooks was sent, but it doesn't seem to print out anything... am I doing something wrong with the following lines of code? <?php function example($params) { echo '<pre>'; print_r($params); echo '</pre>'; } add_hook("AfterModuleCreate", 1, "example"); ?> I'm sorry, but I just can't find enough information after hours of searching...
×
×
  • 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