Reseller

Started by Daniel, July 28, 2014, 09:19:18 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

upgraders

thanks,  I haven't been able to find it, which is why I posted it again here.  It was asked in a long thread but never addressed.

Brianϟ


Diego Andrés


upgraders

Thanks,  I must have missed that!  thanks again for your help!! 

upgraders

I hope not to bother you again, but I am having another problem, actually it looks as though it's been going on for a while since I first installed the Theme.  You addressed it in this post, http://smftricks.com/index.php?topic=712.0   sort of.  I am using SMFhack Menu Pro, although I am not 100% sure this is the reason.  I have no found any commonality, except that a few reference this error with the reseller theme. So I hope to reach out one last time to fix this.

If you read post #83 it also references the problem:
https://translate.google.com/translate?hl=en&sl=ru&u=http://www.simplemachines.ru/index.php%3Ftopic%3D17952.50&prev=search

I have included what I think you might want to look at.  Subs, intext.template and the profile.english.



The errors I get are in the 1000's and they are all similar in some way and almost on every page of the forum:

Apply Filter: Only show the error messages of this URLhttp://www.vapeshopforum.com/index.php?board=10.0;sort=repliesApply Filter: Only show the errors with the same message8: Undefined index: sub_buttonsApply Filter: Only show the errors from this file File: <snip> .COM/www/Themes/default/languages/Profile.english.php (body_above sub template - eval?)
Line: 506

Apply Filter: Only show the error messages of this URLhttp://www.vapeshopforum.com/index.php?action=admin;area=logs;sa=errorlog;descApply Filter: Only show the errors with the same message8: Undefined index: sub_buttonsApply Filter: Only show the errors from this file File: D<snip> VAPESHOPFORUM.COM/www/Themes/default/languages/Profile.english.php (body_above sub template - eval?)


http://www.vapeshopforum.com/index.php?topic=2.0Apply Filter: Only show the errors with the same message8: Undefined index: sub_buttonsApply Filter: Only show the errors from this file File: D:/webspace/VAPESHOPFORUM.COM/www/Themes/default/languages/Profile.english.php (body_above sub template - eval?)
Line: 507



upgraders

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

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

<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

Can you also attach the index.template.php from default theme? That could help here to find out where is the problem.

upgraders

Here you go, thanks.

Diego Andrés

Greatl, I'll take a look at it on a couple of hours as soon as I get home.

SgtEeyore

Hi, this is an awesome theme. Does it support 2.0.10?

Diego Andrés


Diego Andrés

Hi, I'm not 100% sure but try this on Subs.php
// [Articles] button
'articles' => array(
'title' => $txt['smfarticles_menu'],
'href' => $scripturl . '?action=articles',
'show' => $context['allow_view_smfarticles'],
'icon' => '',
),


Replace
// [Articles] button
'articles' => array(
'title' => $txt['smfarticles_menu'],
'href' => $scripturl . '?action=articles',
'show' => $context['allow_view_smfarticles'],
'sub_buttons' => array(),
'icon' => '',
),

upgraders

Thanks again for your help, but no the same errors occur with the change in code.

upgraders

I still have had no luck fixing this error.  Any other ideas or suggestions?

Diego Andrés

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?