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
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?
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.
javascript error 100% of the time..you need to check the upshrinks in the index.temple.php file -
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??
So that it reads like this?
'/script.js?jrc2">
yes
I gave it a shot, and it doesn't appear to have any affect.
sorry Hguy?..I will look a bit more @ your file
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.
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'], '");';
Thanks Mister. That did the trick.