Support for SMF Tricks Themes & Mods

0 Members and 1 Guest are viewing this topic.

*
upgraders
#15
Sniffer
I probably should have turned off the Template Eval.  The error occurs in the Index.template.php  specifically in the Template_menu function

Code: [Select]
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '" class="', $button['sub_buttons'] ? 'dropdown ' : '', '', $button['active_button'] ? 'active ' : '', '">
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '', $button['sub_buttons'] ? ' data-toggle="dropdown"' : '', '>
', $button['title'], '
', $button['sub_buttons'] ? '<span class="caret"></span>' : '' ,'
</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul class="dropdown-menu" role="menu">';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
', $childbutton['title'] , '
</a>
</li>';
}
echo '
</ul>';
}
echo '
</li>';
}
}

Thanks again for any help!



Lines #506,507 & 509

Code: [Select]
<li id="button_', $act, '" class="', $button['sub_buttons'] ? 'dropdown ' : '', '', $button['active_button'] ? 'active ' : '', '">
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '', $button['sub_buttons'] ? ' data-toggle="dropdown"' : '', '>
', $button['title'], '
', $button['sub_buttons'] ? '<span class="caret"></span>' : '' ,'







*
Diego Andrés
#16
Webmaster
Can you also attach the index.template.php from default theme? That could help here to find out where is the problem.
*
upgraders
#17
Sniffer
Here you go, thanks.
*
Diego Andrés
#18
Webmaster
Greatl, I'll take a look at it on a couple of hours as soon as I get home.
*
Diego Andrés
#19
Webmaster
Hi, I'm not 100% sure but try this on Subs.php
Code: [Select]
// [Articles] button
'articles' => array(
'title' => $txt['smfarticles_menu'],
'href' => $scripturl . '?action=articles',
'show' => $context['allow_view_smfarticles'],
'icon' => '',
),

Replace
Code: [Select]
// [Articles] button
'articles' => array(
'title' => $txt['smfarticles_menu'],
'href' => $scripturl . '?action=articles',
'show' => $context['allow_view_smfarticles'],
'sub_buttons' => array(),
'icon' => '',
),
*
upgraders
#20
Sniffer
Thanks again for your help, but no the same errors occur with the change in code.
*
upgraders
#21
Sniffer
I still have had no luck fixing this error.  Any other ideas or suggestions?
*
Diego Andrés
#22
Webmaster
Sorry but AFAIK there's no issue with Reseller theme, or I couldn't figure it out. Did you ask in the support board of that mod?