bear Posted February 11, 2016 Share Posted February 11, 2016 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? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 11, 2016 Share Posted February 11, 2016 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! 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 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 11, 2016 Author Share Posted February 11, 2016 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). 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.