simplybe Posted July 12, 2008 Share Posted July 12, 2008 this will allow you to display your enom balance in whmcs admin. I am sure someone could improve it but it does work. file attached enombalance.zip 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted July 12, 2008 Share Posted July 12, 2008 I am sure someone could improve it but it does work. Or it would if you included the fix from the other thread 0 Quote Link to comment Share on other sites More sharing options...
simplybe Posted July 12, 2008 Author Share Posted July 12, 2008 the uploaded file works fine ? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 12, 2008 Share Posted July 12, 2008 It works fine here also! 0 Quote Link to comment Share on other sites More sharing options...
9DollarDomains Posted July 12, 2008 Share Posted July 12, 2008 Hi - How/Where do I edit this in? I know he text says into the quicksummary (which seems like a great place to me) but I don't know which file to find that in. /admin/templates/sumthin maybe? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 13, 2008 Share Posted July 13, 2008 Look in admin/templates/homepage.tpl ... Search for <div class="errorbox">Quick Summary This would be the line you need to enter the included code into. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted July 13, 2008 Share Posted July 13, 2008 or add a new "balances at registrar" table in homepage.tpl and show all your different registrar accounts 0 Quote Link to comment Share on other sites More sharing options...
simplybe Posted July 13, 2008 Author Share Posted July 13, 2008 Here is and updated version using code posted by forum member 'Ben' enombalance.zip 0 Quote Link to comment Share on other sites More sharing options...
Mwki3 Posted July 13, 2008 Share Posted July 13, 2008 thanks thats good 0 Quote Link to comment Share on other sites More sharing options...
strzelecki Posted July 23, 2008 Share Posted July 23, 2008 I've modified it further, to use the Enom XML feed, parse the result and put the results into a table on the admin index. homepage.tpl added code: {php}include('enombalance.php'); {/php} <h1>Registrar Stats</h1> <table width=100% cellspacing=1 bgcolor="#cccccc"> <tr bgcolor="#efefef" style="text-align:center;font-weight:bold"> <td>Registrar</td> <td>Account Balance</td> <td>Number of Domains</td> <td>Domains hosted by Enom</td> <td>Expired domain</td> <td>Domains in processing</td> </tr> <tr bgcolor=#ffffff> <td align=center> Enom </td> <td align=center> {php} echo $data['balance']; {/php} </td> <td align=center> {php} echo $data['REGISTEREDCOUNT']; {/php} </td> <td align=center> {php} echo $data['HOSTCOUNT']; {/php} </td> <td align=center> {php} echo $data['EXPIREDDOMAINSCOUNT']; {/php} </td> <td align=center> {php} echo $data['PROCESSCOUNT']; {/php} </td> </tr> </table> <br> Just use the attached homepage.tpl or edit yours using the above code and also edit $enom_user = 'user'; $enom_password = 'password'; in enombalance.php. Then upload these together with xmlparser.php to the admin (for the php files) folder (or wherever you like, but you'll have to modify the include paths obviously!). Now you should be able to see Account Balance, Number of Domains, Domains hosted by Enom, Expired domain and Domains in processing in your admin. enombalance.zip 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 24, 2008 Share Posted July 24, 2008 Nice I Like It! Thanks! 0 Quote Link to comment Share on other sites More sharing options...
arhost Posted July 24, 2008 Share Posted July 24, 2008 Why not make this a WHMCS addon module? 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted July 26, 2008 Share Posted July 26, 2008 I can't seem to get this working. The paths are all correct as is the username and password, but it just displays an empty table. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 26, 2008 Share Posted July 26, 2008 Double check the path to enom_balance.php 0 Quote Link to comment Share on other sites More sharing options...
strzelecki Posted July 27, 2008 Share Posted July 27, 2008 Why not make this a WHMCS addon module? Good point will try that! 0 Quote Link to comment Share on other sites More sharing options...
strzelecki Posted July 27, 2008 Share Posted July 27, 2008 Why not make this a WHMCS addon module? Second thoughts, is there much point? Nothing to configure really, especially after I work out whether it's possible to pull the ENom username and password from the database. You'd still have to upload the modified admin template file. 0 Quote Link to comment Share on other sites More sharing options...
Boss Posted July 28, 2008 Share Posted July 28, 2008 Really great Addon. Thanks muchly to the author. Very easy install. Just to take it one slight further step. Wrap the Enom Name as below: <a href="https://www.enom.com/Login.asp" target="_blank">Enom</a> For quick logon and top ups etc. 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 28, 2008 Share Posted July 28, 2008 Really great Addon. Thanks muchly to the author.Very easy install. Just to take it one slight further step. Wrap the Enom Name as below: <a href="https://www.enom.com/Login.asp" target="_blank">Enom</a> For quick logon and top ups etc. That's what I did, just wish I could get the domains to link. 0 Quote Link to comment Share on other sites More sharing options...
Boss Posted July 28, 2008 Share Posted July 28, 2008 That's what I did, just wish I could get the domains to link. I'm obviously not on the same wave length. What domains? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted July 29, 2008 Share Posted July 29, 2008 Sorry I'm using a different code.... 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted August 7, 2008 Share Posted August 7, 2008 Anyone got a *simple* php opensrs api handler written, wading through that manual and hacking together an xml parser and so on seems like way too much work to do 3 simple queries ... #1 whats the current available balance (get_balance) #2 how many domains registered (get domains by expiry date) return count where date >=today #3 how many domains expired the rest from #2 I'm loathe to have to implement their perl interface and then parse the results ... 0 Quote Link to comment Share on other sites More sharing options...
mcraedesigns Posted November 21, 2008 Share Posted November 21, 2008 Really great Addon. Thanks muchly to the author.Very easy install. Just to take it one slight further step. Wrap the Enom Name as below: <a href="https://www.enom.com/Login.asp" target="_blank">Enom</a> For quick logon and top ups etc. I added this instead: <a href="https://www.enom.com/myaccount/" target="_blank">Enom</a> That way it kicks right to my account overview if I am logged in. Also it kicks to my account if I am required to enter my ID/PW, as it tracks the original link request. -Mike 0 Quote Link to comment Share on other sites More sharing options...
yamaharr1 Posted November 29, 2008 Share Posted November 29, 2008 Does anybody have an updated version of this, the present one doesn't work 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted November 29, 2008 Share Posted November 29, 2008 If allow_url_fopen is disabled in php.ini it won't work. 0 Quote Link to comment Share on other sites More sharing options...
yamaharr1 Posted November 30, 2008 Share Posted November 30, 2008 I have allow_url_fopen enabled but no good. In the registrar it shows "Enom" and in account balance it shows a dollar sign "$" but that is all. Any ideas on how I could get this working as this would be a great feature for me with all of the domains I have. I am just wondering in the file it shows a link to Enom but when I log into my account it goes to enomcentral.com would this make a difference? 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.