TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

December 09, 2024, 07:01:52 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 116
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 109
  • Total: 109

Log-Out issues, WorkDesk3

Started by Ken., January 27, 2016, 05:20:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

illori

i wonder if it may be easier to remove the custom menu and revert it back to the default manu... would that work for you?

Ken.

Yes that would work.
The custom menu is nice to have, but it's obviously not working, so removing it would be a good option.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

illori

take a backup of index.template.php

find this function and replace it with the following

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
<div id="main_menu">
<ul class="dropmenu" id="menu_nav">';

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', 'firstlevel" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
<span class="responsive_menu ', $act, '"></span>

<span class="', isset($button['is_last']) ? 'last ' : '', 'firstlevel">', $button['title'], '</span>
</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul>';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
<span', isset($childbutton['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span>
</a>';
// 3rd level menus :)
if (!empty($childbutton['sub_buttons']))
{
echo '
<ul>';

foreach ($childbutton['sub_buttons'] as $grandchildbutton)
echo '
<li>
<a href="', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '>
<span', isset($grandchildbutton['is_last']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span>
</a>
</li>';

echo '
</ul>';
}

echo '
</li>';
}
echo '
</ul>';
}
echo '
</li>';
}

echo '
</ul>
</div>';
}

Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

illori

somehow you must have copy/pasted wrong or something, there were lots of blank lines when i copied out the code you had used. i tried it again and the link you posted is now working. the log out link now has the correct session id in it as well.

Ken.

I thought as much, although the edits were tried three times with the same bad result after each edit.

So, you made the correct edits?
It works as expected now... Thanks Illori, you are the best.  8)
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

Umm... now it's blowing up the error log.  ^-^

Quote
http://www.ourfamilyforum.org/FamilyForum/index.php?topic=1295.15
8: Undefined index: can_neg_rep
File: /home/ourfamil/public_html/FamilyForum/Themes/workdesk3_smf202/Display.template.php
Line: 431

http://www.ourfamilyforum.org/FamilyForum/index.php?topic=1295.15
8: Undefined index: can_pos_rep
File: /home/ourfamil/public_html/FamilyForum/Themes/workdesk3_smf202/Display.template.php
Line: 431

http://www.ourfamilyforum.org/FamilyForum/index.php?topic=1295.15
2: Invalid argument supplied for foreach()
File: /home/ourfamil/public_html/FamilyForum/Themes/workdesk3_smf202/Display.template.php
Line: 347

http://www.ourfamilyforum.org/FamilyForum/index.php?topic=1295.15
8: Undefined index: bars
File: /home/ourfamil/public_html/FamilyForum/Themes/workdesk3_smf202/Display.template.php
Line: 347

http://www.ourfamilyforum.org/FamilyForum/index.php?topic=1295.15
8: Undefined index: power
File: /home/ourfamil/public_html/FamilyForum/Themes/workdesk3_smf202/Display.template.php
Line: 344

http://www.ourfamilyforum.org/FamilyForum/index.php?topic=1295.15
8: Undefined index: karma_power
File: /home/ourfamil/public_html/FamilyForum/Themes/workdesk3_smf202/Display.template.php
Line: 344
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

illori

are you using a karma mod? can you attach that file to your next post?

Ken.

It was turned on, turned it off but the errors keep coming. What file do you need?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.