Hi,
I am trying to set one or more forums to display in expanded view by default - overriding the preferences set sitewide and in the user preferences.
So far I have...
in main.inc.php
$config['view_expanded'] = "forum1,forum2,forum8"; //Enter forum keywords separated by a comma
in postlist.php
if (stristr(",{$config['view_expanded']},",",$Board_q,")) {
$view = "expanded";
}
just after we grab the board info.
This works fine, and displays the forum(s) in expanded view - so far so good

However.... If you click on '- collapse' on these forums, then despite &view=collapsed being in the address bar, the forum remains in expanded view.
How can I therefore set this up so that clicking on '- collapse' will override my override for the forum and go into collapsed view.
Once this is working then I will do a similar thing with dateslip.
Thanks.