TinyPortal

Development => Support => Topic started by: jav_tailor on June 01, 2010, 09:05:59 AM

Title: Re: Errors
Post by: jav_tailor on June 01, 2010, 09:05:59 AM
Hi,

I've the same problem. When apply the Noize theme, the forum report this errors:

Quote8: Undefined index: rightbar
File: /home/***/public_html/foro/Themes/default/languages/TPShout.english.php (main_below sub template - eval?)
Line: 356
   
8: Undefined index: centerbar
File: /home/***/public_html/foro/Themes/default/languages/TPShout.english.php (main_above sub template - eval?)
Line: 344
   
8: Undefined index: leftbar
File: /home/***/public_html/foro/Themes/default/languages/TPShout.english.php (main_above sub template - eval?)
Line: 334
   
8: Undefined index: rightbar
File: /home/***/public_html/foro/Themes/default/languages/TPShout.english.php (main_above sub template - eval?)
Line: 324
   
8: Undefined index: leftbar
File: /home/***/public_html/foro/Themes/default/languages/TPShout.english.php (main_above sub template - eval?)
Line: 322

I modified the index.template.php and deleted the code:

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';

                function shrinkHeaderLeftbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
        echo '
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

                function shrinkHeaderRightbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

        echo '
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>


But the problem persists.

With the default theme I haven't problems.

Help me, please!
Title: Re: Re: Errors
Post by: IchBin on June 01, 2010, 03:27:59 PM
Please start your own topics in the future. It will keep things much more organized if you just reference any topic you think is related.

What version of TP? What version of SMF? What template files are in your theme? If you could Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581) in the future it would greatly help us to help you. Thanks.
Title: Re: Errors
Post by: Atomiq25 on June 01, 2010, 05:55:23 PM
we cannot provide any support until your prove you bought Noize theme legally..


;D hahah

just kidding x)
Title: Re: Errors
Post by: ZarPrime on June 01, 2010, 10:18:41 PM
jav_tailor,

Welcome to TinyPortal.

Actually, Atomiq25 brings up a very good point.  http://www.dzinerstudio.com/ has quite good support on their premium themes.  It's very possible that when you bought the theme, you downloaded the wrong version of the theme for your version of SMF/TP.  Have you checked with them.

ZarPrime