Jump to content

Enom Balance In Admin.


Recommended Posts

  • 2 weeks later...

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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 ...

Link to comment
Share on other sites

  • 3 months later...
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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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