Jump to content

TeleMagic

Member
  • Posts

    44
  • Joined

  • Last visited

Everything posted by TeleMagic

  1. Hi Penhiun. Thanks for the reply. Its not that I have anything against runnning in on cpanel, just that I think it would be better to have my Website on a seperate server to the one I host client accounts on. I dont really want to have to pay for a cPanel license for a dedicated vps just to host my website and whmcs install. Regards
  2. Hi guys. I am just in the final throws of putting my whmcs site live. I have been hosting it on my cPanel server for testing but feel it would be better to have it on its own VPS for live purposes. Can anyone give and suggestions on flavour of server? Would Ubuntu 12.04 with a basic LAMP install be best? Is there any extra security concerns apart from the usual, I would obviously lock it down as much as I could using iptables. Regards
  3. How do I go about customising the shopping cart? I cannot find a file for it in the Template. I want to change [No Hosting! Click to Add] to goto my Joomla product pages instead of the WHMCS pages. Regards
  4. Also how do I get the clientdetails.id into the php file called from the template? I use the $clientsdetails['id'] to store in the external system.
  5. How would I convert my PHP variable into a smarty variable? Ie if I included a php which did the database connection, and did a $result = mysql_query("mysuery"); How would I then convert the value of $result into a smarty variable $voipbalance? Regards
  6. Thanks for the Help Kian I said it would be a schoolboy error, I wasnt expecting it to be something quite as stupid as it was though. There was nothing wrong with the code or my hook, it actually worked first time, which is pretty good as I am not really a programmer and until last week when I started doing my VOIP modules for WHMCS had only ever done basic hacks to php scripts. The only issue is that I was working on the wrong version of WHMCS. I have 2 dev licenses for 2 dev sites to keep code seperated between 2 groups of developers I freelance work to. I was working on the module code on one and trying to get it to execute by purchasing a product add-on on the other! DOH!!!
  7. I'm out at the moment, but will paste is shortly. I copied it from The hook docs so should be right! Probably made schoolboy error. Is mailto an internal function?
  8. Um. I have tried a die, but it does not seem to give me a blank screen in same way a die does on a module! So I wonder if that means the hook isn't loading! Is there anything I have to do to make the hook load?
  9. Thats great. Now how do I debug this hook. I have written the code which I think will do what I want but it does not seem to be doing anything? How do I veryify and debug if the hook is actualling being called? And then if it is debug the actual hook code? Regards
  10. Ok gone to do this and found one issue. To achieve this I would need to pull the value of tblservers.password however this is an encrypted field, is there a function in WHMCS to decrypt this back to use in a DB Connect? Regards
  11. Ah I hadn't thought of doing that! Thanks for the pointer!
  12. Hi Guys I am writing a custom addon hook to execute when a product Addon is Activated. I have a hook that pulls $vars as a variable aray for the function. Now in the documentation here http://docs.whmcs.com/Hooks:Addons it shows just 4 variables passed is that just the specific variables? Would it also pass things like serverusername, serverpassword etc the same as the module I created for the main product? Also is there any way of passing debug information from a hook? Can I place a Die in the script? Regards
  13. Thanks for that. Thats great. One final query, how do I make it display the did against the product on the list in product & Services? Or do I just update the $domain value in the module. Regards
  14. Hi kian Thanks for the reply. The addon module would be great but I want to concentrate on key functionality for now. I have already written a module which creates the actual VoIP accounts and that's working great so I am familiar with provisioning modules, I'm just not sure how to store and display on the product page the did number selected by customer when ordering. Regards
  15. Hi Guys I am trying to setup a module to allow customer to buy VOIP Did Numbers through my WHMCS site. I have a Joomla site which is integrated with WHMCS and want to create a product page in Joomla that shows the customer a list of available numbers, the customer picks one and it calls the order page using the Direct Shopping Cart link for the VOIP DID product. I need a way to be able to pass the did selected to the pdoduct so that firstly it can be displayed on the list of products and services against the product so customer can distinguis between their different numbers and secondly allow the provisioning module Im going to write to provision the number. I have tried using the &tld={number} in the order link assuimg that would populate the domain field of the product which would achieve the first objective and also would then be a variable for the provisioning module which would take care of the second but this does not seem to work. Any ideas on how I can achieve this? Regards
  16. Thats great. Thanks very much. Didnt think to look at hooks. Regards
  17. I already store the client id in the external system. So I can just put that code in the template for client area and display like that? How would I configure the external connection? Regards
  18. Hi Guys I am wondering if it is possible to display the balance of a VOIP account on an external system in the client area. So I would have ie Account Credit Balance: $0.00 USD Due Invoices Balance: $14.30 USD Voip Account Balance: $12.95 USD The voip accounts are created by WHMCS using a module I am writing and the table that stores the balance has the customerid from WHMCS in it so from a database perspective it would simply be a case of running a query to find out the balance of that customer, Im just not sure how and if it is possible to change the template to display this is client area? Regards
  19. I am in the process of writing a server module for A2Billing to provision voip accounts. I want to use one-time product addons to allow customer to apply Top-up to their voip account. I notice in the product Addons setup in WHMCS Admin there is an option to AutoActivate the product, However I see nowhere in the ModuleDevKit where the code it to run on Product Addon Purchase? Can anyone give me any pointers on how to do this? Regards
×
×
  • 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