Topic-icon Disable Menu Name

Active Subscriptions:

None
9 years 8 months ago - 9 years 8 months ago #50503 by gebauer
Disable Menu Name was created by gebauer
Is it possible to Disable the Menuname ?

Show User Menu : Kunena Menu
User Menu Style : List
User Menu Title : Menu Name

In my Kunena Menu i only got 1 Item . Its Profil , so when the User logs in i only want that "Profil" appears , it works fine but i want to disable the Menuname?

You can visit my Page and log in into the Frontend with test3/test3 if you want to check what i am Meaning
3dx360.no-ip.net
Thanks

Laurenz
Last edit: 9 years 8 months ago by gebauer.
The topic has been locked.
Support Specialist
9 years 8 months ago #50512 by mel
Replied by mel on topic Disable Menu Name
We currently do not have an option to not show a title. You could accomplish it with the following code changes:

In /modules/mod_sclogin/helper.php in the getUserMenu method, around line 533 change
$menuNav .= '<ul class="menu nav"><li><span>' . $parentTitle . '</span>';
to
$menuNav .= '<ul class="menu nav"><li>';

That should work for you, but let me know if you run into any issues. I've also added an item to our tracker to make this an option in a future release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 7 months ago - 9 years 7 months ago #50609 by gebauer
Replied by gebauer on topic Disable Menu Name
Ok thanks that helped to disapper the Menu name, the Menu Item is still moved under the login Button, is there a way to Place the Menu item called "Profil" to the right site of the Login Button? I colored the place of the Login Modul, that you can see that it should have enough place in my tempalte

And is it Possible to change the Template of the Menu item? I would like to make a button of it like the login Button?

Sorry for that many questions, but i realy like this modul , would be great if you can add this functuinallity
Thanks

Laurenz
Last edit: 9 years 7 months ago by gebauer.
The topic has been locked.
Support Specialist
9 years 7 months ago #50630 by mel
Replied by mel on topic Disable Menu Name

Ok thanks that helped to disapper the Menu name, the Menu Item is still moved under the login Button, is there a way to Place the Menu item called "Profil" to the right site of the Login Button? I colored the place of the Login Modul, that you can see that it should have enough place in my tempalte

The user menu items only show when the user is logged in and thus the login button will never be present. If you are referring to being right next to the logout button, then I recommend that you try the following:

In mod_sclogin/helper.php around line 531 replace
$menuNav = '<div class="scuser-menu list-view">';
//$menuNav .= '<ul class="menu nav"><li class="dropdown"><span>'.$parentTitle.'</span>';
$menuNav .= '<ul class="menu nav"><li><span>' . $parentTitle . '</span>';
//$menuNav .= '<ul class="dropdown-menu">';
$menuNav .= '<ul class="flat-list">';
foreach ($menu_items as $menuItem)
   $menuNav .= $this->getUserMenuItem($menuItem);
$menuNav .= '</ul>';
$menuNav .= '</li></ul>';
$menuNav .= '</div>';
with
$menuNav = '<div class="scuser-menu">';
foreach ($menu_items as $menuItem)
{
   $url = $this->getMenuIdUrl($menuItem->id);
   $target = $menuItem->browserNav == 1 ? ' target="_blank" ' : '';
   $menuNav .= '<a class="btn btn-primary" href="' . $url . '"' . $target . '>' . $menuItem->title . '</a>';
}
$menuNav .= '</div>';
The topic has been locked.
Active Subscriptions:

None
9 years 7 months ago #50696 by gebauer
Replied by gebauer on topic Disable Menu Name
Thanks Mellisa, it worked perfect! :-)

Finished now all the stuff which i wanted to do with the SCLogin.
The topic has been locked.
Support Specialist
9 years 7 months ago #50702 by mel
Replied by mel on topic Disable Menu Name
Great, glad to hear that you've gotten it all set up :)
The topic has been locked.