gcphost
Retired Forum Member-
Posts
47 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by gcphost
-
Please use the revised file here, I failed to realize some of the setting variables seem to conflict with the user login system of WHMCS (oops!) - updating the names has fixed the issue. $plug_banned=array("ru", "ro"); $plug_url = ""; # URL to WHMCS API file $plug_urlapi = ""; # URL to WHMCS API file $plug_username = ""; # Admin username goes here $plug_password = ""; # Admin password goes here $plug_packagenum=array("2"); validate_country.zip
-
Well in a few hours I managed to write a hook to do this, thanks anyway! http://forum.whmcs.com/showthread.php?p=189832#post189832
-
Hi WHMCS users! Here is my most recent hook! It is designed to suspend packages ordered by users in certain countries, defined by an array. A user orders a product defined in an array inside the hook The users IP address and Country is validated against a list of countrys to deny activation If the users country is in the list the hook will suspend the users product & notify both the user and admin It is a very simple hook and requires minor configuration to operate correctly. $url = ""; # URL to WHMCS , no trailing slash $urlapi = ""; # URL to WHMCS API file $username = ""; # Admin username goes here $password = ""; # Admin password goes here $packagenum=array("2"); # Array of the packages to validate on $banned=array("ru", "ro" ,"us"); # Array of lower case country codes to validate on The $packagenum should contain an array of packages you want to validate, for example, package #2 for me is a Free Trial package The $banned should contain an array of country codes, lower case, that match the WHMCS profile fields & the iptolocation fields (they are standard codes), example - ru, ro, us, au, de If there are more questions about the config please reply, everything else seems standard. Installing: Download the database script @ http://gamecp.com/iptocountry.sql Import the table to your WHMCS database Configure the validate_country.php with a list of packages and countrys to ban Upload the validate_country.php file to your hooks folder Enjoy! If you find this useful send me a donation! gcphost AT gmail DOT com via PayPal - or email me - as I accept many forms of payment. validate_country.zip
-
Hi I did start testing shortly after writing this - with AfterShoppingCartCheckout - as I have used this before, I seem to be able to gather the information I need with this - and I guess I could simply use the API to cancel, or suspend, the users order - then notify both admins and client that the order requires manual approval. Still open to suggestions.
-
Hi all I need to make a hook that can disable auto-activation of a product. The hook would determine if a user was a bad user - and would then prevent their package from auto-activating thus requiring manual activation. I tried AcceptOrder but didnt see any results, so I am left wondering what to do with it. My goal is this: user orders hook checks the users location if the location is one of a few in an array the order will be set to manual activation, not auto accepted I am happy to also cancel the order if auto activation cant be disabled. If someone can point me to a few hooks - or ideas - on how to do this, I'd be great-full. Basically I am trying to disable auto activation of a free trial product from Russia and Romania - the two largest abusers of my free trial. This is the only valid solution I can come up with. Thanks!
-
The license add-on should be required, you could mod this for other things but this is designed for the whmcs license add-on. You can mail me, gcphost AT gmail DOT com if you want to donate to receive it - or be a developer.
-
Hi I have not yet needed to do any updates, the module I made works really simple and fairly well with the whmcs license add-on they sell. I had several people interested, a few donations, but no follow ups and no new developers. I'd love to have a new dev expand on this, otherwise I may just leave it fairly simple - to allow anyone - to expand.
-
Thats great! Drop me a mail gcphost AT gmail DOT com and say you'd like to develop on it and I will send it over this week. I've been using it since I wrote the first post and I love it! 10x better then WHMCS's crappy plugin.
-
Over 80% of my "legit" users do, sorta stupid not to when we promote it and want users to try before they by, saves a lot of hassle. Question still stands, what do you do to help prevent or avoid the abusers? Not offering a trial is not a solution.
-
Hi all I've been using WHMCS + the free trial add-on for the license add-on for some time now. Users continue to massively abuse the free trials, registering multiple accounts or multiple trials per account. I built a new license manager to show me who has multiple trials, based on their license domain or ip. It still takes hours each day to bust the trial abusers, I then must IP Ban then on the server itself to ensure that even if they manage to register a new trial - it wont work - most keep the same ip, some dont and get right by their ban. What do you do to prevent trial abusers?
-
Hi If you rename it to licenses_manager, the folder and file, it will replace what WHMCS provides and works much better. * Please note when emailing me to include the url to this topic as I have other mods for sale, I may get confused.
-
Great! drop me an e-mail, I cant upload files here.
-
Hello WHMCS users! I have created a new license manager for the WHMCS License Add-on. Here are some upgrades this features over the default one provided by WHMCS its open sorce, you can edit it & add new features you can search with multiple values you can see similar licenses based on ips or domains there is a back to list button when editing licenses you can sort by column It is easy to use as a new add-on or a direct replacement for the WHMCS one (just name it licenses_manager). I have attached 2 screen shots. You will find this looks nearly identical to what WHMCS provides (same layout) but the backend has changed to enable the new features. Want the module? I am happy to provide the module for a small donation or to those who are willing to contribute the the development of the module. Contact me at gcphost AT gmail DOT com or send me a message/reply here.
-
my $.02 says to contact whmcsbb, if you cant - or they dont reply - id question using their software.
-
My Mods are now with 100% visible source code
gcphost replied to ChrisTERiS's topic in Commercial Modules and Addons
I am totally on board here too - all the modules I plan to offer for WHMCS are 100% open source. I've coded my main app for over 7 years - started with 99% encoded versions and over the years have transitioned to only encoding the really important files. The only thing it hurts is source code sales - but I can get over that. This is a great idea to help save a lot of time. -
Hi I'd love to know how to do this too - it is not silly - but a good question. We need to send mail with hooks. How?
-
My $.02 says that you cannot use 2 modules together - I never saw this as an option. I believe what you need is a custom server module that triggers both tcadmin and plesk - so take both modules and glue them together. I doubt any of these 3 companys will do this for you - so you will likely need to hire a dev to do the job, or dev it yourself. I believe both modules are not encoded.
-
Hey guys - I realized I did jack this op thread - sorry about that, I guess he should have finished his module Read my own thread here, again - sorry - I did not intend to hijack this at all, hell - I didnt even think id code a module.. http://forum.whmcs.com/showthread.php?p=179755#post179755
-
Overview This is originally designed for the WHMCS License Add-on that allows you to sell licenses to customers. This Add-on uses the "domain" field to store the license key. I needed a way for my "resellers" to directly sell licenses within WHMCS, using their account. I needed them to be able to add or remove these licenses 24 hours a day, without my intervention. I needed the reseller to be given a grace period to pay for the new licenses. I defaulted to WHMC's grace period. How it works Your reseller has an account on your system. You add your reseller id to the approved reseller list Your reseller configures their WHMCS panel with the Reseller Module People order from your reseller Your resellers module triggers the API on your WHMCS The API creates the order on your resellers account The API updates the Module with the 'domain' and 'hostingid' of the reseller's order The module saves the hostingid as the 'username' field for that order What it needs All settings to be defined in WHMCS, not in the PHP code - currently you must define your configurable options, promotion codes and approved resellers within the API and module itself. Upgrade feature Ability to automatically merge configurable options - ie: take the array from your reseller and validate it against the array from your main panel, taking the ID's from the main and the data from the reseller Security checks Updates to make it work for ALL types of services, not just licenses - but domains, games, hosting - etc, anything you can sell should work here Can you use it now? Yes! In the basic form of a License Reseller Add-on you can totally use it now, I am, and it works fairly well! If you are not selling Licenses - then maybe not! You will likely need to modify the code to make it work fully for you. How do I get the API? You can make a donation to me or sign-up to be a developer on this project. We will share profits with the developers who contribute the most - consider this as a collaboration for the community. Reply to this thread, send me a private message or a direct e-mail (gcphost AT gmail DOT com) to sign-up. More about me My name is William and I am the maker of the famous panel, GameCP. With over 10 years of programming under my belt making a module like this only took a few hours. I will be using WHMCS for at least another 2 years and will be active in developing and updating this module for my personal gain. Unlike other module makers who tend to drop out either after you pay them - or before they even launch a module - I will stick around for a couple years minimum. If I do stop using WHMCS - or developing modules for it - I will post this code open source or provide it to another developer for maintenance. I will try very hard to ensure the module does not "die" like others do. Thanks! I hope some will find this useful. I am looking forward to working with developers to make this module better. I think this is a very valuable asset to WHMCS. I have attached the WHMCS Module as an example. whmcs_reseller.zip
-
Drop me a line guys - gcphost AT gmail DOT com I've tested my plugin a little more (for license reselling) and so far - so good. I talked in message to steam.roy and we came up some other ideas for the system as well - to make it easier to define your custom variables and such. I use WHMCS's main grace period. I did write 1 version that used `updateinvoice` but I had to remove it as my WHMCS does not support that feature. I'd love for 1 or 2 devs to jump on this with me and make it a full featured system. I will be using it as long as I use WHMCS (at least 2 more years) so I will be around - unlike many mod developers who tend to start posts - and drop out - or drop out after taking your money.
-
Hi all I offer a 31 day free trial of my product. This is managed with the free trial add-on and works very well. The big problem is people can order more then 1 trial per account. I could never get an action hook to stop the person from fully ordering SO I have restored to using a `clean up` script to help. This will terminate all related products if the user has more then 1 So if usera buys 2 trials - both will be terminated. I use mysql to calculate if its duplicated - I know this can be optimized more - I really didnt care. I hope someone else will find it useful. <?php // include WHMCS and base functions require("../../dbconnect.php"); require("../../includes/functions.php"); require("functions.php"); $url = "http://..../includes/api.php"; # URL to WHMCS API file $username = ""; # Admin username goes here $password = ""; # Admin password goes here $packageid=""; $allq = "SELECT O.userid FROM tblorders O, tblhosting TH WHERE TH.packageid='$packageid' AND TH.orderid=O.id"; $sq_allq = mysql_query($allq) or die(mysql_error()); $okarray=array(); while($row = mysql_fetch_array($sq_allq)){ if($row['userid']){ $allqq = "SELECT TH.id, O.userid FROM tblorders O, tblhosting TH WHERE TH.packageid='$packageid' AND TH.orderid=O.id AND O.userid='".$row['userid']."'"; $sq_allq2 = mysql_query($allqq)or die(mysql_error()); $cnt=mysql_num_rows($sq_allq2); if($cnt > 1){ while($row2 = mysql_fetch_array($sq_allq2)){ echo "duplicate found ".$cnt." user #". $row2['userid'].", hosting id#".$row2['id']."\n"; $postfields=array() $postfields["username"] = $username; $postfields["password"] = md5($password); $postfields["action"] = "moduleterminate"; $postfields["accountid"] = $row2['id']; $postdata = http_build_query($postfields); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $data = file_get_contents($url, false, $context); $data = explode(";",$data); foreach ($data AS $temp) { $temp = explode("=",$temp); $results[$temp[0]] = $temp[1]; } if ($results["result"]=="success") { echo "ok\n"; } else { # An error occured echo "The following error occured: ".$results["message"]."\n"; } } } } } ?> I run this as: modules/freetrial/duplicates.php
-
we always integrate our sites with all the software we use - the new site made us re-do our whmcs integration http://my.gamecp.com/ the order process was made much easier - more clearer for non english customers and those who receive errors. we've reduced spam orders by over 95% with the creation of a few plugins we've made full automation with even more plugins created that help clean up orders, auto accept and auto cancel trials. we've been using whmcs a little over a year - it has its ups - it has its downs - but one thing is for certain - you can customize this very well for being mostly closed source. we will keep using this another year and see where it takes us!
-
One idea is running a clean up script that at the end of the day checks for all unpaid paypal accounts and issues a cancellation request. I do this same concept with auto-marking orders as 'accepted' - could be easily switched im sure.
-
Do you have to include anything for "sendmessage"? I am using it in a module but am having issues using it in a hook.
