New CB Menu Item

18 years 1 month ago #8649 by dardo36
New CB Menu Item was created 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

Please Log in to join the conversation.

18 years 1 month ago #8673 by kober
Replied by kober on topic Re:New CB Menu Item
You must manualy edit the cb.menu.php in plug_cbmenu there is an example in this file how to do this :)

Please Log in to join the conversation.

18 years 1 month ago #8682 by dardo36
Replied by dardo36 on topic Re:New CB Menu Item
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

Please Log in to join the conversation.

18 years 1 month ago #8754 by kober
Replied by kober on topic Re:New CB Menu Item
this file is cb.menu.php :)

Please Log in to join the conversation.

18 years 1 month ago #8903 by Aligator21
Replied by Aligator21 on topic Re:New CB Menu Item
Can you be more speciefic? (my english sucks :p)
i didnt find any example :/

Online Games
www.online-games.gr

Please Log in to join the conversation.

17 years 10 months ago #14810 by bzn
Replied by bzn on topic Re:New CB Menu Item
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

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.236 seconds

Facebook Twitter LinkedIn