Jump to content

Display Paypal Balance on Homepage


trappedatuf

Recommended Posts

  • Replies 116
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

I saw the post about something similar, but I can bring it to work. I want to display in WHMCS the main "PayPal balance" or "Total Balance converted to".

 

I use more currencies in my Paypal account but the WHMCS displays only the "Available balance EUR (primary).

 

Any idea what has to be changed?

 

Thanks.

image-087.jpg

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

Is there any updates to the code? I'm wanting to add it to the header but after downloading the files, it doesn't give a folder saying PayPalBalance with the files and images as it did a while back.

 

Any help appreciated!

Link to comment
Share on other sites

  • 5 months later...

Hi Sparky

 

Thought I would share an improvement I made to your mod:

by default the window floats at the top of the browser window, hovering over everything and generally looking a little out of place.

 

Change the following two lines (instructed to be added to homepage.tpl, in readme.txt):

 

<div id="paypalbalance" align="left" style="position:absolute;top:25px;left:470px;"></div>
<div id="paypaltrans" align="left" style="display:none;position:absolute;top:135px;left:135px;z-index:100;max-height:500px;overflow:auto;border:2px #ccc solid;background-color:#fff;"></div>

 

to

 

<div id="paypalbalance" align="left" style="position:relative;top:0px;"></div>
<div id="paypaltrans" align="left" style="display:none;position:relative;top:5px;z-index:100;max-height:500px;overflow:auto;border:2px #ccc solid;background-color:#fff;"></div>

 

 

 

and further down homepage.tpl

 

{if $viewincometotals}<div class="contentbox" style="font-size:18px;"><a href="transactions.php"><img src="images/icons/transactions.png" align="absmiddle" border="0"> <b>Income</b></a> Today: <span class="textgreen"><b>{$stats.income.today}</b></span> This Month: <span class="textred"><b>{$stats.income.thismonth}</b></span> This Year: <span class="textblack"><b>{$stats.income.thisyear}</b></span></div>

 

becomes

 

{if $viewincometotals}<div class="contentbox" style="margin-top:10px; font-size:18px;"><a href="transactions.php"><img src="images/icons/transactions.png" align="absmiddle" border="0"> <b>Income</b></a> Today: <span class="textgreen"><b>{$stats.income.today}</b></span> This Month: <span class="textred"><b>{$stats.income.thismonth}</b></span> This Year: <span class="textblack"><b>{$stats.income.thisyear}</b></span></div>

 

And the entire window sits nicely in the homepage summary instead, directly above the "Income this month" section. The content moves down to accomodate the ajax transactions window when they are opened as well. Much better!

 

see attached piccy:

curioushippomod.jpg

 

 

Cheers for the plugin guys!

 

Rgds

 

Jon

Curioushippo.com

Link to comment
Share on other sites

Ohh one more thing: To the user with a problem regarding showing a Pound sign instead of dollar sign:

 

You can't just put a pound sign into PHP in UTF-8 - it will pop up as a diamond with a question mark. Instead find the "$" item in the GetBalance.php, and replace it with:

 

£

 

job done!

Link to comment
Share on other sites

The mods are modestly priced; I recommend Client Area Home Page as its a good basis for a custom home page - you can basically remove any bits you don't want from Sparky's mod, rather than the pain of going through the process of working out how to add the bits you feel aqre missing from your client home page.

 

6 hours reduced down to 6 minutes. That's worth 10 aus dollars surely? And you'll get the paypal mod too as a bonus.

Link to comment
Share on other sites

I have made several of the FREE downloads only available to clients that have purchased mods.

This was done for a few reasons but mainly as a bonus to my clients.

 

Fair enough. I just thought everyone else was getting it without purchasing something and I was doing something wrong. I get it now. Thanks! :)

 

"PLEASE NOTE!

All Mods and Addons Available are Compatible with WHMCS V4.3.1

FREE mods in the download section are only available to clients.

 

I apparently can't read before asking questions. lol

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