Jump to content

Recommended Posts

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

SixTemplate-CreditBalance.png

Edited by sentq
  • Like 4
  • Thanks 3
  • Confused 1

Share this post


Link to post
Share on other sites

nice module, i was about to do this because i have clients what to see they balance when they login balance

Share this post


Link to post
Share on other sites
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 :idea:

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
Share on other sites
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 the

You 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 8)

Share this post


Link to post
Share on other sites
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 8)

you're welcome :)

Share this post


Link to post
Share on other sites

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

  • Disappointing 1

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites

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

 

Screen Shot 2015-11-12 at 5.25.16 PM.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Hello,

 

how do you download this hook?

 

It say's you do not have permission?

Maybe when you reach 5 posts in the forum

Share this post


Link to post
Share on other sites
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;
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By web2008
      In Standard Cart/sidebar-categories-collapsed.tpl the link to Register a New Doman  "cart.php?a=add&domain=register" hardcoded.
      Does anyone know how to change this link to e.g domainchecker.php?
    • By cdeese8
      Specifically, I desire having the "Support Knowledgebase Tag Cloud" sidebar panel title minimized on page load on knowledgebasearticle.tpl and knowledgebasecat.tpl pages.
      May you please recommend and share some wisdom? Might you know of a hook, that will automatically make it so the sidebar <div menuitemname="Support Knowledgebase Tag Cloud" class="panel panel-sidebar panel-sidebar"> is hidden / minimized by default?
      Thanks in advance for whatever help you can offer.
    • By web2008
      I need to add some Bootstrap Tooltip to the Sidebar under Manage Domain.
      Anyone who knows how this can be done?
    • By wp4all
      Hi @ all,
      I'm searching for a solution to hide on click the Sidebar.
      Has anyone ever had experience with it?
      I have already made single menu hide over a hook.
      Now I do not want to remove it completely but just let it slide out.
      The rest should of course be extended by this part.

      Could be also a commercial version.
      Thank you and best regards
      Christian
    • By web2008
      I have a menu/hook I want to display only for one or more product groups.Is there anyone who can help me with this?
      function sitebuilder_hook_sidebar($sidebar) {     $actions = $sidebar->getChild('Service Details Actions');     if ($actions) {         $actions->addChild('Sitebuilder', array(             'name' => 'Sitebuilder',             'label' => 'Sitebuilder',             'uri' => 'index.php?m=sitebuilder',             'order' => 999,             'attributes' => array(                 'target' => '_blank'  
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated