How do I remove a CB Profile Menu Item?

17 years 10 months ago #12412 by livingegg
Replied by livingegg on topic Re:How do I remove a CB Profile Menu Item?
Jesus! Thats a great idea guy, but it would have to actually teach the viewers something instead of just attacking them.

Please Log in to join the conversation.

17 years 10 months ago #12414 by stevebor1
Replied by stevebor1 on topic Re:How do I remove a CB Profile Menu Item?
Look in your cb.menu.php file
Remove

[code:1]//
VIEW MENU
if ($my->id > 0) {
// View My Profile:
if ($my->id != $user->id) {
$mi = array(); $mi["_UE_MENU_VIEW"]["_UE_MENU_VIEWMYPROFILE"]=null;
$this->menuBar->addObjectItem($mi, _UE_MENU_VIEWMYPROFILE,sefRelToAbs($ue_userprofile_url), "",
"","", _UE_MENU_VIEWMYPROFILE_DESC,""«»);
}

}[/code:1]

That should remove it completely.

PS. you will find the file here:
/components/com_comprofiler/plugin/user/plug_cbmenu/
Line 832

Your welcome B)

Post edited by: stevebor1, at: 2006/05/11 20:49

Karma Me Up!
File Attachment:


FITcommunity
Joomla! 1.0.12 - Community Builder 1.0.2 - Joomlaboard 1.1.2
Own Mods Featured Profile Mod
My Real Day Job
File Attachment:

Mobile Wallet and Social Lending, Anywhere!

Please Log in to join the conversation.

17 years 6 months ago #20256 by tah120978
Replied by tah120978 on topic Re:How do I remove a CB Profile Menu Item?
I followed these instructions and commented out the menus I didn't want to see in components/com_comprofiler/plugin/user/plug_cbmenu/cb.menu.php. I didn't see any change in the site. After a bit of debugging, I began to wonder if the file was even getting called, so I threw in some die() calls -- but no effect! The menus displayed exactly as they did before! I tried changing the name of the plugin file in the interface, which made the page render w/o menus at all, but no matter what I do to the cb.menu.php itself, it doesn't take effect on the live site.

Any ideas?

Thanks.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.141 seconds

Facebook Twitter LinkedIn