flyfish Posted January 23, 2009 Share Posted January 23, 2009 anybody has a addon or custom codes for displaying resellerclub balance in admin homapage ? 0 Quote Link to comment Share on other sites More sharing options...
bigsean Posted January 25, 2009 Share Posted January 25, 2009 I'd love to see this as well cheers 0 Quote Link to comment Share on other sites More sharing options...
charliez Posted January 25, 2009 Share Posted January 25, 2009 Yea, good suggestion... will love it for NetEarth One (CHris????) 0 Quote Link to comment Share on other sites More sharing options...
netearth Posted January 26, 2009 Share Posted January 26, 2009 There is an enom version of this module somewhere, a kind chap sent it to me, but then the laptop I was using at the time decided to "die" on me (being dropped 20ft didnt help ) If someone sends me it again, ill get my bods to look at it. Chris 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 26, 2009 Share Posted January 26, 2009 Chris - for enom its : the *simple* method ... <?php $enomuser = "user"; $enompassword = "password"; $enomurl = "http://reseller.enom.com/interface.asp?command=GetBalance&uid=$enomuser&pw=$enompassword¶mname=AvailableBalance&responsetype=text"; $enomstr = file_get_contents($enomurl); $enomstr = substr($enomstr, strpos($enomstr, "AvailableBalance=")); $enomstr2 = substr($enomstr, 0, strpos($enomstr, "Price=")); $enomstr = str_replace("AvailableBalance=", "$", $enomstr2 ); echo "$enomstr"; ?> the more complex method ... <?php require_once("/home/billing/public_html/dbconnect.php"); require_once("/home/billing/public_html/includes/functions.php"); require_once("/home/billing/public_html/includes/registrarfunctions.php"); require_once("/home/billing/public_html/modules/registrars/enom/enom.php"); $params = getRegistrarConfigOptions("enom"); $postfields["command"] = "GetBalance"; $postfields["uid"] = $params["Username"]; $postfields["pw"] = $params["Password"]; $postfields["responsetype"] = "text"; $postfields["paramname"] = "AvailableBalance"; $querystring = ""; foreach ($postfields AS $k=>$v) { $querystring .= "$k=".urlencode($v)."&"; } if ($params["TestMode"]) { $url = "resellertest.enom.com"; } else { $url = "reseller.enom.com"; } $enomurl = "http://".$url."/interface.asp?".$querystring; $enomstr = file_get_contents($enomurl); $enomstr = substr($enomstr, strpos($enomstr, "AvailableBalance=")); $enomstr2 = substr($enomstr, 0, strpos($enomstr, "Price=")); $enomstr = str_replace("AvailableBalance=", "$", $enomstr2 ); echo "$enomstr"; ?> no idea on the equivalent for the logicbox api though 0 Quote Link to comment Share on other sites More sharing options...
netearth Posted February 8, 2009 Share Posted February 8, 2009 Cheers Rob, I will have a shufty at the API. Regards, Chris 0 Quote Link to comment Share on other sites More sharing options...
LemonBarley Posted February 11, 2009 Share Posted February 11, 2009 resellerclub version - i up on this 0 Quote Link to comment Share on other sites More sharing options...
netearth Posted February 11, 2009 Share Posted February 11, 2009 the RC api doesnt have a feature to get this, it does have for customers though (fat lot of use that is in this scenario). I am working on looking into a way around it. Chris 0 Quote Link to comment Share on other sites More sharing options...
LemonBarley Posted March 11, 2009 Share Posted March 11, 2009 any news about it? i have seen a nice mod by sparky http://forum.whmcs.com/showpost.php?p=94201&postcount=35 look at his enom box. its well done. anyone has it for DirectI/ResellerClub? 0 Quote Link to comment Share on other sites More sharing options...
netearth Posted March 11, 2009 Share Posted March 11, 2009 As I mentioned the RC/LB api doesnt give you the available balance, well, this is what LB said when I asked them 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.