Toggle bar default

Started by Bounty_y2k, November 21, 2014, 06:57:59 PM

Previous topic - Next topic

Bounty_y2k

Hi,on my board in 'my messages' page there is an two arrow icon for toggling the message menu ether on left side of the message index or on top of the message index.
Is it possible to set it to show on the left side by default and delete the two arrow icon?
Witch file do I need to edit?

Kindred

?? ??? ??

url and/or screen shot showing what you re talking about?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

He's referring to the sidebar toggle.  Yes, you can fix it so sidebar always shows.  Will find the code soon as I get a minute.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Ok, here's one way to do it, but it will show sidebar menus in all sections, don't know if that's what you want.

First, go to Admin -> Themes and Layout -> Member Options -> Configure guest and new user options for this theme -> Use sidebar menus instead of dropdown menus when possible.   Check that and Save.  Do the same in -> Change current options for all members using this theme .  This will show sidebar menus to all members in all sections.

To remove the toggle, so they can't switch back, look in /Themes/default/GenericMenu.template.php and find this -



if ($firstSection && !empty($menu_context['can_toggle_drop_down']))
{
echo '
<span class="ie6_header floatleft">
<a href="', $menu_context['toggle_url'], '">', $section['title'],'<img style="margin: 0 5px; vertical-align: middle;" src="', $context['menu_image_path'], '/change_menu', $context['right_to_left'] ? '' : '2', '.png" alt="!" /></a>
</span>';



Change to this -



if ($firstSection && !empty($menu_context['can_toggle_drop_down']))
{
echo '
<span class="ie6_header floatleft">', $section['title'],'
</span>';



That will remove the widget and the link from 'Messages'.  All sections that have sidebar menus will be affected.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Bounty_y2k

Thanks it did the trick. The deleting whole line would delete the title 'Profile Info' in personal messages so I kept the title:
echo '<span class="ie6_header floatleft">',$section['title'],'</span>';

QuoteAll sections that have sidebar menus will be affected.
Even better :)

Topic solved. Thank you :)

Advertisement: