Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: MilStories - marraskuu 08, 2007, 02:14:48 IP

Otsikko: Forum Error Log help
Kirjoitti: MilStories - marraskuu 08, 2007, 02:14:48 IP
Hello.  I hope someone here can help us with this.  I just checked our forum error log, and though our forum has only been open to our members for a few days, we have 170 pages of this message:

Lainaa8: Undefined index: topbottomEnable
File: /home/milstori/public_html/forum/Themes/7dana_smf/Display.template.php (eval?)
Line: 495


I opened the display.template.php and found the line in question (the one in bold):

Lainaa<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
   <tr>
      <td align="left" class="catbg" width="100%" height="30">
         <table cellpadding="3" cellspacing="0" width="100%">
            <tr>
               <td>
                  <a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], ($modSettings['topbottomEnable'] ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_up.gif" alt="' . $txt['topbottom4'] . '" border="0" align="top" />' : $txt['topbottom4']) . '</a>' : ''), '
               </td>
               <td align="right" style="font-size: smaller;">';


Help..?
Otsikko: Re: Forum Error Log help
Kirjoitti: greyknight17 - marraskuu 11, 2007, 09:31:52 IP
Does this occur on the default theme as well? If not, you might want to post this in the 7dana theme's topic instead for more support.
Otsikko: Re: Forum Error Log help
Kirjoitti: MilStories - marraskuu 11, 2007, 10:05:53 IP
We changed the theme and haven't had the problem.  I'll post in teh 7dana topic as well, though.  Thank you!
Otsikko: Re: Forum Error Log help
Kirjoitti: SleePy - joulukuu 11, 2007, 04:41:05 IP
Change that line to this:
                  <a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], (!empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_up.gif" alt="' . $txt['topbottom4'] . '" border="0" align="top" />' : $txt['topbottom4']) . '</a>' : ''), '