TinyPortal

Development => Support => Topic started by: Hyperguy on February 08, 2006, 08:07:58 PM

Title: Upshrink error in v.0.8.6 on Babylon Template [Solved]
Post by: Hyperguy on February 08, 2006, 08:07:58 PM
After upgrading to the latest version of Tiny Portal, I encountered an unusual error.

When logged in, users can't use the upshrink button to hide blocks on the left side of the homepage.

However, guests can.

I'm using a modified template based on Babylon and my forum's at Hyperguy.net (http://www.hyperguy.net/forum/index.php)

I made a dummy account that can be used for trouble shooting this.

username: debug
password: password
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: IchBin on February 08, 2006, 08:34:38 PM
Does this happen on other themes as well? Would you mind sending me your index.template file so I can take a look at it?
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: Hyperguy on February 08, 2006, 08:42:39 PM
So far I haven't tried it with other themes.

Here's my index.template.php file. (http://hyperguy.net/downloads/index.template.txt)

I converted it to .txt so that it could be viewed in browser.
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: crip on February 08, 2006, 08:49:08 PM
javascript error 100% of the time..you need to check the upshrinks in the index.temple.php file -

Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: crip on February 08, 2006, 09:05:38 PM
I only thing I saw that might be a bug:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2"></script>

is to add a - j - after the ? here:  '/script.js?rc2">  file looks good??


Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: Hyperguy on February 08, 2006, 09:12:25 PM
So that it reads like this?

'/script.js?jrc2">
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: crip on February 08, 2006, 09:14:20 PM
yes
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: Hyperguy on February 08, 2006, 09:22:58 PM
I gave it a shot, and it doesn't appear to have any affect.
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: crip on February 08, 2006, 09:26:05 PM
sorry Hguy?..I will look a bit more @ your file
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: Hyperguy on February 08, 2006, 09:39:40 PM
I appreciate it.  I think what's oddest about this error is that it only affects logged in users.  My best guess is that it's either related to the index.template.php file or permissions.
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: IchBin on February 08, 2006, 10:57:09 PM
This line:
smf_setThemeOption("collapse_leftbar", mode ? 1 : 0);';

Needs to be:
smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

This line:
smf_setThemeOption("collapse_rightbar", mode ? 1 : 0);';

Needs to be:
smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
Title: Re: Upshrink error in v.0.8.6 on Babylon Template
Post by: Hyperguy on February 09, 2006, 03:04:58 PM
Thanks Mister.  That did the trick.