Grizzlyware Josh Posted January 21, 2011 Share Posted January 21, 2011 After stressing with the fact that iWHMCS doesn't support PUSH notifications, I went and wrote a hook to do so... All you need to do is purchase an App called 'Prowl' I don't want to give the URL, incase I get marked for advertising, but search the App Store for something called Prowl. It's like a version of Growl for iOS. SUPER EASY to set up: Once you have the app, Prowl, you'll need to create an account on their website and then login on your iPhone. This will assign your iPhone device to your account. You only ever have to log in once. Go to their web site again, and generate an API Key. This is needed to tell WHMCS which devices to send the PUSH notification to. Copy & paste that key somewhere safe for the time being. Download the integration here: http://b-digital.biz/members/dl.php?type=d&id=40 Upload the files to your WHMCS Includes folder & one to your Hook folder Edit the configuration & add your API Key that you got from their web site. That is it! You can configure the PUSH notifications: Change the text for notifications - Merge fields are available Enable or disable them Change the TONE on your iPhone when a notification is received. Eg, loud tone for support tickets. I think this App is one of the best & most useful I have ever purchased. I'll hapilly answer any questions you may have on the forums, but please don't send support requests to my website, as this hook is free of charge. FAO Devs: It's not a module, it's a hook. I started writing it as a hook, then didn't stop to change it to a module. It would be better suited as a module, but I don't have the time to convert it. Anyway, the end result is the same. Happy PUSHING! 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 21, 2011 Author Share Posted January 21, 2011 I forgot to mention, it allows for push notifications of New Tickets & New Orders. Here's a screenshot: 0 Quote Link to comment Share on other sites More sharing options...
GNS_Harrison Posted January 22, 2011 Share Posted January 22, 2011 (edited) very awesome! thanks was hoping for something like this. i Edited January 22, 2011 by GNS_Harrison 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted January 22, 2011 Share Posted January 22, 2011 Neat. How do you configure it to send to more than one iPhone. Do you just duplicate the $CONFIG["API_KEY"] line? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 22, 2011 Share Posted January 22, 2011 Hah. I thought about doing this a couple months ago and never got around to it. Very nice. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 22, 2011 Author Share Posted January 22, 2011 Neat. How do you configure it to send to more than one iPhone. Do you just duplicate the $CONFIG["API_KEY"] line? To add more devices, you just need to download the App, and then log in with the username & password you created the account with. The API Key connects to your username, of which you can assign as many devices as you want. So it seems from their web site anyway Hah. I thought about doing this a couple months ago and never got around to it. Very nice. With Prowl? I only discovered it yesterday and set it up for server monitoring to save on SMS costs. Then thought of WHMCS 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 22, 2011 Share Posted January 22, 2011 Yes, with prowl. I was using prowl for a long time when I had an iphone to push Google Voice notifications since Apple refuses to allow an official GV app. I may still go ahead and write an addon module rather than a hook for this. Maybe with support for multiple API keys, and different notification types for each key. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 22, 2011 Author Share Posted January 22, 2011 If you want to, take the above code and turn it into a module. I have no objection as long as my notice stays in place. The reason it's in a class too, is so it's easy to upgrade to newer versions in the future, save breaking peoples WHMCS. All you would have to do for a module is dump ProwlPHP.php, Prowl_WHMCS.class.php into the addon folder and insert the hook into hooks.php. Then reconfigure the search for configuration to support WHMCS Addons config. Then we'll be rocking. I just started it as a hook for personal use, then decided to make it a bit more expandable, hence why it is still a hook. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 22, 2011 Share Posted January 22, 2011 If you want to, take the above code and turn it into a module. I have no objection as long as my notice stays in place. The reason it's in a class too, is so it's easy to upgrade to newer versions in the future, save breaking peoples WHMCS. All you would have to do for a module is dump ProwlPHP.php, Prowl_WHMCS.class.php into the addon folder and insert the hook into hooks.php. Then reconfigure the search for configuration to support WHMCS Addons config. Then we'll be rocking. I just started it as a hook for personal use, then decided to make it a bit more expandable, hence why it is still a hook. Sure. I'll probably just follow up to this thread and repost here. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 22, 2011 Author Share Posted January 22, 2011 Look forward to it I'm going to contact the Prowl developer & let him know about this. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 23, 2011 Author Share Posted January 23, 2011 I'm going to convert it to a module tonight, maybe with multiple instances of API Keys. I'm in that creative mood 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted January 23, 2011 Share Posted January 23, 2011 has anyone found when setting quiet hours the app crashes?? i am using iPhone 4 with iOS 4.3 beta 2 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 23, 2011 Author Share Posted January 23, 2011 I didn't plan on using the quiet hours, but after tying to set them it crashed. I couldn't replicate it again though. It only crashed once. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 23, 2011 Author Share Posted January 23, 2011 I have now converted this to an addon module that you can enable / disable from the WHMCS Admin Area. Merge fields are listed in the admin area too. It only allows for one API Key, as I can't seem to work out why you would want more than one. It wouldn't be hard to replicate this code into another module named differently and then setup another API Key there. If you have the old version, delete all the files related to it and then install this module. All the files for this are now included in one folder & allow for easy install & removal. Download link: http://b-digital.biz/members/dl.php?type=d&id=41 Again, happy pushing 0 Quote Link to comment Share on other sites More sharing options...
GNS_Harrison Posted January 23, 2011 Share Posted January 23, 2011 (edited) I have now converted this to an addon module that you can enable / disable from the WHMCS Admin Area. Merge fields are listed in the admin area too. It only allows for one API Key, as I can't seem to work out why you would want more than one. It wouldn't be hard to replicate this code into another module named differently and then setup another API Key there. If you have the old version, delete all the files related to it and then install this module. All the files for this are now included in one folder & allow for easy install & removal. Download link: http://b-digital.biz/members/dl.php?type=d&id=41 Again, happy pushing thanks! really enjoy it. Does this module works on whmcs 4.1.? or just the latest 4.4? Edited January 23, 2011 by GNS_Harrison 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted January 23, 2011 Share Posted January 23, 2011 I downloaded this yesterday evening. the folder must of been made on a mac but it contained dsstore files which broke our WHMCS templates removing the dstore files fixed this. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 23, 2011 Author Share Posted January 23, 2011 No problem, glad you like it It's written as a 4.4 module to allow for it to be activated / deactivated. So it won't support WHMCS < 4.4 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 23, 2011 Author Share Posted January 23, 2011 (edited) @cyberhostpro Yes it was ZIPped on my Mac. I'll ZIP it again and make sure they're all gone. Sorry about that. EDIT: Rezipped compatible with Windows now. Edited January 23, 2011 by bdigitalstudios 0 Quote Link to comment Share on other sites More sharing options...
sochart Posted January 24, 2011 Share Posted January 24, 2011 Hi, wonderful module, great job. I experience a little trouble with the merge fields. They are not replaced so I get ORDER_ID ORDER_NUMBER in the notification instead of the real value. Please help me !. Regards. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 24, 2011 Author Share Posted January 24, 2011 Hi, wonderful module, great job.I experience a little trouble with the merge fields. They are not replaced so I get ORDER_ID ORDER_NUMBER in the notification instead of the real value. Please help me !. Regards. Thank you You need to wrap them in your selected merge delimeter. say %ORDER_ID% and %ORDER_NUMBER% You can change the merge delimeter to allow for using those characters in your alerts. 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted January 24, 2011 Share Posted January 24, 2011 I have now converted this to an addon module that you can enable / disable from the WHMCS Admin Area. Merge fields are listed in the admin area too. It only allows for one API Key, as I can't seem to work out why you would want more than one. It wouldn't be hard to replicate this code into another module named differently and then setup another API Key there. If you have the old version, delete all the files related to it and then install this module. All the files for this are now included in one folder & allow for easy install & removal. Download link: http://b-digital.biz/members/dl.php?type=d&id=41 Again, happy pushing update the link in your original post too to use the new one as this ones better if you can disable it.. and it don't break whmcs if uploaded via ftp from a windows OS 0 Quote Link to comment Share on other sites More sharing options...
gregbirch Posted January 24, 2011 Share Posted January 24, 2011 Thanks for the Mod this is a great addition, and works well. 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted January 24, 2011 Author Share Posted January 24, 2011 I can't edit the original post... I'll repack V1.0 & upload that without the DS Store files. Thanks Greg, kind words are appreciated! Glad it works well for you. 0 Quote Link to comment Share on other sites More sharing options...
sochart Posted January 24, 2011 Share Posted January 24, 2011 Thank you You need to wrap them in your selected merge delimeter. say %ORDER_ID% and %ORDER_NUMBER% You can change the merge delimeter to allow for using those characters in your alerts. Haaaa cool, had just split the fields with a single delimiter. Works like a charm. Again, good job guy !. 0 Quote Link to comment Share on other sites More sharing options...
openmind Posted January 24, 2011 Share Posted January 24, 2011 We have two separate WHMCS installs each wit their own iWHMCS plugin. Would this still work with a single Prowl account? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.