Jump to content

Customizing Sidebars


Recommended Posts

Hi,

 

I was customizing my client area side and nav bars

The nav bar got it working without a problem

 

Now when customizing the sidebar, using this documentation http://docs.whmcs.com/Client_Area_Sidebars_Cheatsheet

I'm able to tweak the side bar but only if I'm on certain pages.

 

For example

I'm in this page https://client.xxxxx.com/supporttickets.php

And have this hook

add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $primarySidebar)
            {
            $primarySidebar->getChild('Support')
            ->getChild('Knowledgebase')
            ->setLabel("FAQ")
            ->setUri('https://xxxxx.com/faq');
            });

 

And it's working fine, but if I go to https://client.xxxxx.com/clientarea.php

I get a blank page, witch means that an error occurred when loading WHMCS...

 

So far I couldn't find a way to fix this, any ideas?

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