Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

10 Good

About z900collector

  • Rank
  1. Disabling Module Buttons

    Any hints on how to rename the buttons.... such as "Create" -> "Create Domain", "Terminate" -> "Remove Domain" Sid
  2. Disabling Module Buttons

    OMG!!! - It works... there is nothing written anywhere on that, the sample code has everything coded as a shell and not a hint that removing the function(s) removes the buttons! Thanks Heaps Sid
  3. Disabling Module Buttons

    Hi, I have written a provisioning module and attached it to a product and when I select "products/Services" for a client which has "purchased" the product, the page shows 6 buttons I don't need +plus my additional buttons the module has added. How do I remove the default provisioning modules buttons such as "Change Package" which have no relevance in my module? I've looked through the API and Hook ref to no avail (or I missed it) and I've looked at templates and can't find where the Product/Service page is defined. Any help would be really appreciated Sid
  4. Custom module question

    Although the post is a few years old, did you solve this issue? I am now trying to do something similar and hitting a few roadblocks with the button as well. Sid
  5. Can't remove Change Password from module

    I have the same issue, I am trying to disable the same buttons for a product with a module I have written. The buttons make no sense for my provisioning module. Is there an API call or Hook that removes these buttons from the product page? Sid
  6. Integrating RabbigMQ messenger into whmcs

    Further to my last message, this library is very common as a base for a variety of AMQP implementations: https://packagist.org/packages/php-amqplib/php-amqplib I've just used it in a Laravel App using the following library: https://packagist.org/packages/bschmitt/laravel-amqp Can you outline how you intend to use MQ in your app, I'm a big fan of Message Queuing so I may be able to give you more pointers Sid
  7. Integrating RabbigMQ messenger into whmcs

    Hi, There are php-amqp libraries available, you could create a RabbitMQ module which brings the AMQP code into effect, then you could issue produce()/consume() calls in the various hooks....
  8. duplicate calls to init.php on New Client Save

    Hi, I uploaded a fresh copy of the WHMCS code and the issue disappeared. I can't explain how this has fixed the issue as the files are all encoded. I've been slowly replacing the addon modules and custom hooks and so far no issues. I should add, for the custom code there are no calls to init.php.
  9. Hi All, I get the dreaded "Detected attempt to include init.php for a second time. Unable to continue." after I press save on a New Client.... I removed all the modules and hooks and checked all the plain text code to see if there is anything and I just can narrow it down. Its on our Dev System and I think its the latest version. I'm lost for things to try, being a dev systems its been a few weeks since anyone added a client so we don't have any idea why its failed. Sid
  10. Crashed Client Profile Viewer Module

    I actually could not find any way to easily contact them, however I spent a few hours and have solved it by dropping the cp_* tables, running the modules and the recreating them one by one from the backup I took and manually updating the version info in the module config table. I'd say it failed between the 1.5.5 to 1.5.6 upgrade someone did recently. Sid
  11. We have a licensed copy of the Client Profile Viewer Module but it appears to crash with a missing table error: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'admin_whmcs.cp_person_assigned' doesn't exist I've looked in the DB and we only have the following "cp_xxxx" tables... cp_clients_custom_statuses cp_conf_role cp_conf_widget cp_configuration cp_widget_configuration How do I get back my tables? Do I delete the existing ones and re-run the module? Sid
  12. Domain Renew Hook ?

    G'Day all, I need to intercept all domain renewal attempts by the WHMCS engine either just before or just after to track for specific domains (when is not important). Is there a hook available that will give me the domain name WHMCS is trying to renew? Thanks Sid
  13. Trigger Invoice Generation via an API call

    After much experimentation this has been solved using an AddOrder call: function add_order($clientId, $domainName, $paymentMethod,$regPeriod) { $command = 'AddOrder'; $postData = array( 'clientid' =>$clientId, 'domain[0]' =>$domainName, 'paymentmethod'=>$paymentMethod, 'domainrenewals'=>array($domainName=>$regPeriod) ); $results = localAPI($command, $postData); return $results; }
  14. Using AddOrder - How to add a domain renewal as a product?

    OMG Solved! - needed to add another field 'domainrenewas'=>array($domainname=>$regperiod)
  15. Bulk order management!

    I'm trying to do something similar but I get a "no items in cart error"... the call states the PID is optional but it seams to indicate you must add at least 1 "product" to the order? Sid

Important Information

By using this site, you agree to our Terms of Use & Guidelines