ElkArte Community

Project Support => Support => Topic started by: Ruth on September 17, 2014, 05:48:38 am

Title: Collapse & expand of Categories and Shoutbox
Post by: Ruth on September 17, 2014, 05:48:38 am
Hello!

I am using the same shoutbox in forum and portal.

If I collapse one of them, the other one should be or stay collapsed too, but the shoutbox is always expand if I go from forum to portal or back from portal to forum. The shoutbox expands every time again, even if both shoutboxes are collapsed.

If the shoutbox is collapsed in forum and I am going to collapse a categorie there, then the shoutbox will expand again.



Edit:

Maybe it is again something with the language files. ::)  I get messages in the error log, if I collapse the shoutbox or the categories:

QuoteUndefined index: time
Heute um 11:35
http://ea.XXX.de/index.php?action=forum
Datei: /var/www/XXX/html/ea/themes/default/languages/german/Post.german.php (boardindex_outer_below sub template - eval?)
Zeile: 306      

Undefined index: link
Heute um 11:35
http://ea.XXX.de/index.php?action=forum
Datei: /var/www/XXX/html/ea/themes/default/languages/german/Post.german.php (boardindex_outer_below sub template - eval?)
Zeile: 306



2. Edit: I have disabled the shoutbox now. There are no errors in the log if I collapse a category.
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: emanuele on September 17, 2014, 06:28:07 am
First thing: admin > configuration > server > general
and tick the "disable the template evaluation" function (maybe @Jorin can tell you what the German translation is :)).
Then try to reproduce the errors in the log.
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: Ruth on September 17, 2014, 06:38:44 am
I have done this, emanuele. No more errors in the log, if I collapse a category or the shoutbox, great. ;)

But this is still the same:

QuoteIf I collapse one of them, the other one should be or stay collapsed too, but the shoutbox is always expand if I go from forum to portal or back from portal to forum. The shoutbox expands every time again, even if both shoutboxes are collapsed.

If the shoutbox is collapsed in forum and I am going to collapse a categorie there, then the shoutbox will expand again.
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: Spuds on September 17, 2014, 07:08:48 am
Sounds like a bug to me, I'll have to look in to that to check on that save state in the portal
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: emanuele on September 17, 2014, 07:38:06 am
Quote from: Ruth – I have done this, emanuele. No more errors in the log, if I collapse a category or the shoutbox, great. ;)
I was referring to the errors you reported in the log.
After you have changed that setting the errors will change, please report the new error message. ;)
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: Ruth on September 17, 2014, 07:48:43 am
There are no new errors in the log, emanuele...and the old ones did not change.





Title: Re: Collapse & expand of Categories and Shoutbox
Post by: Spuds on September 17, 2014, 08:09:36 am
I found an error in the portal.js (well really its in script.js) that was preventing the saving of the collapse state of portal blocks.  In portal.js find:

Code: (find) [Select]
elk_setThemeOption(sp_sides[id], mode ? 0 : 1, null);
Code: (replace) [Select]
elk_setThemeOption(sp_sides[id], mode ? 0 : 1, null, null);
and
Code: (find) [Select]
elk_setThemeOption("sp_block_" + id, mode ? 0 : 1, null);
Code: (replace) [Select]
elk_setThemeOption("sp_block_" + id, mode ? 0 : 1, null, null);
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: Ruth on September 17, 2014, 08:11:35 am
I am so sorry, emanuele...I don't understand you.  :-[

Maybe @Jorin can look at this. I have never done this before "disable the template evaluation" , it was the first time
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: Jorin on September 17, 2014, 08:57:35 am
@Ruth  Please send me links to the posts as a message so I can't forget this... O:-)
Title: Re: Collapse & expand of Categories and Shoutbox
Post by: emanuele on September 17, 2014, 09:22:44 am
Quote from: Ruth – I am so sorry, emanuele...I don't understand you.  :-[
Don't worry, never mind. ;)