New CB Menu Item

13 years 8 months ago #8649 by dardo36
hey guys how r u

ok this is my question...i would like to add a new item to the "CB Menu BAR" (no joomla menu)... it should be call gallery ...does any one know how do get it?

i will appreciate ur seggestions
TNX
13 years 8 months ago #8673 by kober
You must manualy edit the cb.menu.php in plug_cbmenu there is an example in this file how to do this :)
13 years 8 months ago #8682 by dardo36
Tnx kober for ur help ...hey what do u mean "this file" u mean the cb.menu.php? or u uploaded something with the message ? just in case if u uploaded something let me tell this is blank
13 years 8 months ago #8754 by kober
this file is cb.menu.php :)
13 years 8 months ago #8903 by Aligator21
Can you be more speciefic? (my english sucks :p)
i didnt find any example :/

Online Games
www.online-games.gr
13 years 6 months ago #14810 by bzn
edit cb.menu.php and search for:
//
EDIT MENU


after:
[code:1] "<img src=\"".$adminimagesdir."delavatar.gif\" alt='' />","", _UE_MENU_DELETE_AVATAR_DESC,""«»);[/code:1]

add this for example:
[code:1]
// Jump to bottom:
if ($my->id == $user->id) {
$mi = array(); $mi["_UE_MENU_EDIT"]["_UE_JUMPTOBOTTOM"]=null;
$this->menuBar->addObjectItem($mi, _UE_JUMPTOBOTTOM,sefRelToAbs($ue_jumptobottom), "",
"<img src=\"".$adminimagesdir."updateprofile.gif\" alt='' />","", _UE_MENU_UPDATEPROFILE_DESC,""«»);
}[/code:1]

then have a look some lines above and search for:
[code:1] $adminimagesdir = "components/com_comprofiler/images/";
[/code:1]
and after that line add this for example:
[code:1] $ue_jumptobottom = $ue_base_url."#bottom"; // Jump to bottom
[/code:1]

note: if you want to use my example, you need to add this line to your footer (or at the end of your index.php) of you joomla template:
[code:1]<span id="bottom"></span>[/code:1]
and you need to define _UE_JUMPTOBOTTOM in your language file

I used this to give people a link to the profile gallery

Post edited by: bzn, at: 2006/06/06 17:14

________________________________________
I'm running Joomla v1.5.5 and CB v1.1
Moderators: beatnantkrileon
Time to create page: 0.456 seconds

Facebook Twitter LinkedIn