Jump to content

What files do I edit to remove/add items to the navbar & sidebars?


Indieola

Recommended Posts

Hi all,

 

I've been looking at the page at http://docs.whmcs.com/Editing_Client_Area_Menus but am not really sure what I need to edit from that.

 

I will not be including items such as domains and hosting for now, so would like to remove 'Network Status' from the navbar and replace it with something else.

 

I'd also like to be able to remove items from the two sidebars and replace them with other things that we are selling.

 

I can't seem to figure out where to make these edits. I have looked in templates & templates_c, but don't see it.

 

Thanks.

Link to comment
Share on other sites

I've been looking at the page at http://docs.whmcs.com/Editing_Client_Area_Menus but am not really sure what I need to edit from that.

 

I will not be including items such as domains and hosting for now, so would like to remove 'Network Status' from the navbar and replace it with something else.

with regards to removing Network Status from the navbar, take a look at the code in either of the two links below..

 

http://forum.whmcs.com/showthread.php?108806-Remove-Menu-Items-v6&p=445599#post445599

http://forum.whmcs.com/showthread.php?112699-Small-problem-with-hooks!&p=457602#post457602

 

I'd also like to be able to remove items from the two sidebars and replace them with other things that we are selling.

 

I can't seem to figure out where to make these edits. I have looked in templates & templates_c, but don't see it.

the navbar and sidebars are not modified by the templates, changes to them are made via action hooks.

 

basically, you create a .php file in the includes/hooks/ folder and paste the appropriate code into it - some of the examples in the documentation are not quite bug-free, so you may be better off using hook code that either myself or sentq have posted previously in these forums... we've created/modified/removed plenty of sidebars and navbar items between us, so i'm sure that you'll find plenty of examples searching the forums! :idea:

 

but if you have a specific sidebar that you want to change, let me know and i'll see if I can give you the code.

Link to comment
Share on other sites

Thanks for the start on this. I used WHMCS a few years ago and everything seems to have changed.

 

I have started to look around the foum and now am starting to understand hooks, though it does tend to hurt the old noggin. I'm getting there though.

 

This one you wrote was of particular help, so thank you for that:

https://forum.whmcs.com/showthread.php?114378-How-to-add-submenu-into-primary-navbar-main-menu

 

My aim is to pretty much pull the main links apart from the menu and sidebars, and replace them with my own. The menu is figured out now I think, I have got to remove, replace and add new items, so that's good.

 

My next question is about the sidebars, is it similar to the way menus work? Do I name a file ???.php and put in there what I want to do in the same way?

 

Also, what do I do to edit the home page, as I'd like to remove the domain search section and have there some simple text saying welcome to the client area. I like the menu bar in the middle, that looks good and am guessing that changing the links on there is something to do with the whole homepage.

 

Your help is very much appreciated, it is helping me to keep up with quitting smoking (bad timing), but it is fun to do things and have them work.

 

Joe

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