Page Index Toggle Pages: 1
Topic Tools
Normal Topic Change default from Expanded to Compacted (Read 1,026 times)
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Change default from Expanded to Compacted
Reply #3 - Sep 8th, 2011 at 2:33pm
Post Tools
Hi again,

jon666 wrote on Sep 8th, 2011 at 12:12pm:
As the user option to compact boards has always been turned off, the change would not differentiate between old and new users.

It still won't affect members who are already registered, because nothing will be written to their .vars files until they use the feature - that's why you can only do it on registration when the .vars file is created - if you know what I mean.
  
Back to top
 
IP Logged
 
jon666
Junior Member
**
Offline



Posts: 83
Re: Change default from Expanded to Compacted
Reply #2 - Sep 8th, 2011 at 12:12pm
Post Tools
Thanks. Will try this soon. As the user option to compact boards has always been turned off, the change would not differentiate between old and new users.
Smiley
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Change default from Expanded to Compacted
Reply #1 - Sep 6th, 2011 at 2:53pm
Post Tools
Hi,

I guess it would be a little tricky because those settings are stored in the users .vars file. Unless anyone else has any better ideas, then the only plausible thing I can think of doing is to modify Register.pl so that the categories are collapsed by default for future members.

Obviously it won't affect any members who are already registered, but if you do want to change it for future members then this should do it:

In Sources/Register.pl find:

Code (Perl)
Select All
    ${$uid.$reguser}{'language'} = $language; 


And add after - You'll need to change the 'yourcatid' to a comma separated list of your categories:

Code (Perl)
Select All
    ${$uid.$reguser}{'cathide'}  = "yourcatid1,yourcatid2,yourcatid3"; 


I haven't really tested that by the way, but should do the trick...
« Last Edit: Sep 6th, 2011 at 3:03pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
jon666
Junior Member
**
Offline



Posts: 83
Change default from Expanded to Compacted
Sep 6th, 2011 at 1:33pm
Post Tools
Would like to change the default for displaying Categories on the Board Index page from expanded to compacted. Is this possible without too many script changes?
Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top