sentq Posted October 6, 2015 Share Posted October 6, 2015 (edited) Some people want to show their client's credit balance when they login to client area, as the option not implemented by default in Six Template here is how to do it: 1) Upload the PHP file from Attachements to -> /WHMCS-Path/includes/hooks/ directory. WHMCS_SixTemplateCreditBalance.zip Edited October 7, 2015 by sentq 15 Quote Link to comment Share on other sites More sharing options...
sgtpeter Posted October 7, 2015 Share Posted October 7, 2015 Thank you @sentq for sharing this useful hook 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted October 7, 2015 Share Posted October 7, 2015 nice module, i was about to do this because i have clients what to see they balance when they login balance 1 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 8, 2015 Author Share Posted October 8, 2015 Thank you @sentq for sharing this useful hook You're welcome nice module, i was about to do this because i have clients what to see they balance when they login balance so I've saved you this effort my friend 0 Quote Link to comment Share on other sites More sharing options...
markjwilliamson Posted October 13, 2015 Share Posted October 13, 2015 Some people want to show their client's credit balance when they login to client area, as the option not implemented by default in Six Template here is how to do it: 1) Upload the PHP file from Attachements to -> /WHMCS-Path/includes/hooks/ directory. Thanks for sharing this sentq, it works perfectly and your code has helped me to understand the sidebar implementation a little better. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 13, 2015 Author Share Posted October 13, 2015 Thanks for sharing this sentq, it works perfectly and your code has helped me to understand the sidebar implementation a little better. Glad to here that Mark, You're welcome 0 Quote Link to comment Share on other sites More sharing options...
Manchester Web Hosting Posted October 28, 2015 Share Posted October 28, 2015 Some people want to show their client's credit balance when they login to client area, as the option not implemented by default in Six Template here is how to do it: 1) Upload the PHP file from Attachements to -> /WHMCS-Path/includes/hooks/ directory. CANNOT donwload the sample hook zip file. each and everytime it goes to the [h=3]You are not logged in or you do not have permission to access this page.[/h] I can do everything else and have been a user for a good few years. Simply wont let me do it - - - Updated - - - CANNOT donwload the sample hook zip file. each and everytime it goes to theYou are not logged in or you do not have permission to access this page. I can do everything else and have been a user for a good few years. Simply wont let me do it SPOKE too SOON. I opened the link via right click open new tab and it worked. ALthough clicking the link itself still takes me to the permissions error page. Strange.. P.S thanks for a great sample plugin 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 28, 2015 Author Share Posted October 28, 2015 SPOKE too SOON. I opened the link via right click open new tab and it worked. ALthough clicking the link itself still takes me to the permissions error page. Strange.. P.S thanks for a great sample plugin you're welcome 0 Quote Link to comment Share on other sites More sharing options...
torpix Posted October 28, 2015 Share Posted October 28, 2015 Thanks for the plugin.. Installed. 0 Quote Link to comment Share on other sites More sharing options...
Benjade Posted November 9, 2015 Share Posted November 9, 2015 Lol what for an addon ?! You juste have to put : <tr> <td class="textright"><strong><dl><dd class="title">{$LANG.statscreditbalance}</a> :</dd></strong></td> <td><dd class="number">{$clientsstats.creditbalance}</a></dd></dl></td> </tr> To your file clientareaaddfunds.tpl No need hook for that ^^ Regards 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 9, 2015 Share Posted November 9, 2015 Lol what for an addon ?! You just have to put To your file clientareaaddfunds.tpl No need hook for that ^^ you do realise that when you update your WHMCS template, if WHMCS changes the clientareaaddfunds.tpl template, you'll lose the above additional code - but sentq's hook will continue to work! in any event, your code and the hook are two different things... your code just adds the balance on the add funds page, sentq's hook will display it on the client homepage (and could be modified to work on other pages too). 1 Quote Link to comment Share on other sites More sharing options...
Jaen Posted November 12, 2015 Share Posted November 12, 2015 Thank you! hook works insanely well... Found one issue, when in "Portal Home / Client Area / My Invoices" the Secondary_Sidebar-Billing module glitches out from the sidebar. Sorry not very familiar, learning whmcs as I go along. (See screenshot) Is there an easy fix to this? Thanks in advance... Once again Great Hook!!! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 12, 2015 Share Posted November 12, 2015 have you modified the hook in any way? when I go to that page on my dev site, the credit balance sidebar isn't shown there - it only appears on the client homepage. 0 Quote Link to comment Share on other sites More sharing options...
Jaen Posted November 13, 2015 Share Posted November 13, 2015 have you modified the hook in any way? when I go to that page on my dev site, the credit balance sidebar isn't shown there - it only appears on the client homepage. Hi, Wow you respond quickly. No not at all... also re-downloaded and uploaded the hook again... and still the same issue? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 13, 2015 Author Share Posted November 13, 2015 Hi, Wow you respond quickly. No not at all... also re-downloaded and uploaded the hook again... and still the same issue? Is the issue only appear when you use this hook? What version of WHMCS you currently use? if you have the 6.1.1 does your template use the latest template updates in v6.1.1? Tell me how to replicate the issue and i will check, thank you 0 Quote Link to comment Share on other sites More sharing options...
Jaen Posted November 13, 2015 Share Posted November 13, 2015 Hi, thanks for getting back to me, Yes, if I remove the hook everything goes back to normal. Billing block moves back to sidebar. Using Version: 6.1.1 and also using latest v6 template. Thanks for looking into this for me. Let me know if you need anything else. 0 Quote Link to comment Share on other sites More sharing options...
Jaen Posted November 13, 2015 Share Posted November 13, 2015 Hi also notices that when changing the code from “Primary” to “Secondary” it resolves the issue… : ) and then also moves it between “Your Info” block and “Contacts” block… which also works well. ClientAreaSecondarySidebar $secondarySidebar 0 Quote Link to comment Share on other sites More sharing options...
cosmic Posted November 24, 2015 Share Posted November 24, 2015 Hello, how do you download this hook? It say's you do not have permission? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 24, 2015 Author Share Posted November 24, 2015 Hello, how do you download this hook? It say's you do not have permission? Maybe when you reach 5 posts in the forum 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 21, 2015 Author Share Posted December 21, 2015 Thank you! hook works insanely well... Found one issue, when in "Portal Home / Client Area / My Invoices" the Secondary_Sidebar-Billing module glitches out from the sidebar. Sorry not very familiar, learning whmcs as I go along. (See screenshot) Is there an easy fix to this? Thanks in advance... Once again Great Hook!!! [ATTACH=CONFIG]9667[/ATTACH] I was able to replicate the issue, even without using this Sidebar ActionHook, looks like a problem with Six Template but it can be fixed (almost) with CSS. The issue only appear when left sidebar (Primary) gets height more than the content in the middle, this will cause the Secondary sidebar to be displayed as in the screenshot above, this need to be fixed by WHMCS it self someday. as a work around here is how you can solve this issue when you face it anytime, or simple to avoid it, add the following inside /templates/six/css/custom.css: .main-content { min-height: 600px; } 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 5, 2016 Author Share Posted January 5, 2016 Updated the ActionHook to add multi-language support WHMCS_SixTemplateCreditBalance_1.1.zip 2 Quote Link to comment Share on other sites More sharing options...
JonathanChun Posted January 9, 2016 Share Posted January 9, 2016 Why is this not a default feature? Can't wait to try it out 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 9, 2016 Author Share Posted January 9, 2016 Why is this not a default feature? Can't wait to try it out what prevents you from using it? 0 Quote Link to comment Share on other sites More sharing options...
wapps Posted January 9, 2016 Share Posted January 9, 2016 Very nice module 0 Quote Link to comment Share on other sites More sharing options...
rkatz0 Posted February 12, 2016 Share Posted February 12, 2016 Excellent module, thanks! How do I get it to show the credit balance only in the billing section? Thank you in advance! 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.