miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
How To miniBB Support Forums / How To /  
 

Sorting by answers (latest replies) = default

 
 
Page  Page 1 of 2:  1  2  Next »

Author Anonymous
Guest
#1 | Posted: 19 Mar 2004 15:22 
Hello,
I think sorting by new topics is not a good idea by many reasons, at least for me, and I want to make sorting by answers as a default. I don't want to choose it when register or in preference. I want it to to be Sorting by Answers ALWAYS, even for unregistered users. Of course I mean everyone still could change it to "by topics" but I want default = "by answers"
How can make it?
Help me pls, thank you.

Author Team
8-)
#2 | Posted: 19 Mar 2004 15:45 
setup_options -> $sortingTopics

And edit this in bb_func_regusr:

if (!isset($sorttopics)) {
$sortTopics1 = 'checked'; $sortTopics0 = '';
}
else {
$sortTopics1 = ($sorttopics==1)?'checked':'';
$sortTopics0 = ($sortTopics1=='checked')?'':'checked';
}


(swap the values)

Author Anonymous
Guest
#3 | Posted: 19 Mar 2004 15:49 
I have
$sortingTopics=0;

And I haven't really understand how to swap values. Can you please show me?

Author Team
8-)
#4 | Posted: 19 Mar 2004 15:53 
$sortingTopics=0; already means that they are sorted by Last replies.

if (!isset($sorttopics)) {
$sortTopics1 = ''; $sortTopics0 = 'checked';
}
else {
$sortTopics1 = ($sorttopics==1)?'checked':'';
$sortTopics0 = ($sortTopics1=='checked')?'':'checked';
}

Author Anonymous
Guest
#5 | Posted: 19 Mar 2004 16:12 
Thank you very much!
Your support is the best I have ever seen!
It's not a compliment, it's true!

Author nomadicink
Partaker
#6 | Posted: 23 Feb 2005 04:25 
The sort by method is not sticking for my forums. We're having to constantly reset it. Is there way to set this in admin panel?

Author Team
8-)
#7 | Posted: 23 Feb 2005 09:57 
What do you mean by "reset"?

Look at the setup_options.php, and you'll find here $sortingTopics setting, which probably could help you.

Author nomadicink
Partaker
#8 | Posted: 23 Feb 2005 16:04 
What do you mean by "reset"?


Topics are being sorted by New Topics by default DESPITE the $sortingTopics being set to "0".

So, users are constantly having to reset how topics are sorted to latest replies.

Author Team
8-)
#9 | Posted: 23 Feb 2005 16:10 
Because registered users should set sorting option in their Preferences which overrides default setting.

Author nomadicink
Partaker
#10 | Posted: 23 Feb 2005 23:10 
Ah ha!!!

I've got a custom situation, where minibb is intergrated with my CMS (expression engine).

Hi Paul!!!

Is there was to get around this, to globally set this for my users?

Author Team
8-)
#11 | Posted: 24 Feb 2005 10:53 
If you want to set this option to ALL users, then update user_sorttopics field in the database to 0, and change default value to 0.

Author nomadicink
Partaker
#12 | Posted: 24 Feb 2005 15:46 
Ok, I changed the default value to to 0, but what other value am I supposed to change to 0. Is there anther field and if so, what EXACTLY is it's name?

I'm a newbie, be kind :)

Author Team
8-)
#13 | Posted: 24 Feb 2005 15:51 
There is no another field. user_sorttopics field stores either 0 or 1.

Author nomadicink
Partaker
#14 | Posted: 24 Feb 2005 16:29 
gotcha, thanks.

Author Anonymous
Guest
#15 | Posted: 25 Feb 2005 04:21 
Whoops, not quite finished.

Ok, I've set user_sorttopics to O.

However, some users can STILL log in and the default is sort by new topics. Do they need to reset their cookies/passwords or some such?

Page  Page 1 of 2:  1  2  Next » 
How To miniBB Support Forums / How To /
 Sorting by answers (latest replies) = default
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑