Jump to content

Hooks and "six" client home page


bear

Recommended Posts

I've been fiddling with the v6 template, and have found the hooks needed to do some of what I need, but I'm unsure about some of it. I see the Client area home page hook point: http://docs.whmcs.com/Hooks:ClientAreaHomepage but it doesn't go into detail about what can be done with it other than adding content to the page. I need to edit URIs and/or remove some bits.

 

I'm using an external helpdesk, so the ticket count and link needs to go (see attached, highlighted with a red box), as well as removing or editing the other bits below that. Looks like I can use something like the hooks that remove menu items to manipulate those: http://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels but it doesn't mention the blocks in the screen cap.

What have I missed here?

six-home-page.png

Link to comment
Share on other sites

I've been fiddling with the v6 template, and have found the hooks needed to do some of what I need, but I'm unsure about some of it. I see the Client area home page hook point: http://docs.whmcs.com/Hooks:ClientAreaHomepage but it doesn't go into detail about what can be done with it other than adding content to the page. I need to edit URIs and/or remove some bits.

that hook is just for adding html content to that page, not for manipulating the existing content - if you're wanting to change URI's and remove sections, then take a look at the docs thread below and specifically the Dynamic Menus section...

 

http://docs.whmcs.com/Version_6.0

 

though I would imagine that whatever you want to do, a hook has already been posted in these forums to do it! :idea:

 

I'm using an external helpdesk, so the ticket count and link needs to go (see attached, highlighted with a red box), as well as removing or editing the other bits below that. Looks like I can use something like the hooks that remove menu items to manipulate those: http://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels but it doesn't mention the blocks in the screen cap.

What have I missed here?

you'll be pleased to hear you don't need any hooks for them - it's modified via a good old-fashioned template edit to six/clientareahome.tpl :)

Link to comment
Share on other sites

the Dynamic Menus section...

Thanks. Been all through that, and the URI in need of changing isn't in a menu (which I didn't have much trouble with), it's in that support ticket block pictured. ;)

though I would imagine that whatever you want to do, a hook has already been posted in these forums to do it!
Been reading loads of threads to find what I've needed, but some needs haven't come up, at least that I could find.
you'll be pleased to hear you don't need any hooks for them - it's modified via a good old-fashioned template edit to six/clientareahome.tpl :)

lol, here I was trying to "get with the program" and learn about hooks to "future proof" edits. Odd to have some as hooks and others as hard coded, but I suppose it's inevitable for some of it. Kind of like when I tried seeing the results of my efforts on the five theme, only to realize it's not controlled at all by hooks (that I could see). :P

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