miniBB ®®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
How To miniBB Community Forum / How To /

Sorting by answers (latest replies) = default

 Page:  1  2  »» 
Anonymous
Guest
#1 | Posted: 19 Mar 2004 15:22
Reply 
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.
Team
8-)
#2 | Posted: 19 Mar 2004 15:45
Reply 
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)
Anonymous
Guest
#3 | Posted: 19 Mar 2004 15:49
Reply 
I have
$sortingTopics=0;

And I haven't really understand how to swap values. Can you please show me?
Team
8-)
#4 | Posted: 19 Mar 2004 15:53
Reply 
$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';
}
Anonymous
Guest
#5 | Posted: 19 Mar 2004 16:12
Reply 
Thank you very much!
Your support is the best I have ever seen!
It's not a compliment, it's true!
nomadicink
Forums Member
#6 | Posted: 23 Feb 2005 04:25
Reply 
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?
Team
8-)
#7 | Posted: 23 Feb 2005 09:57
Reply 
What do you mean by "reset"?

Look at the setup_options.php, and you'll find here $sortingTopics setting, which probably could help you.
nomadicink
Forums Member
#8 | Posted: 23 Feb 2005 16:04
Reply 
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.
Team
8-)
#9 | Posted: 23 Feb 2005 16:10
Reply 
Because registered users should set sorting option in their Preferences which overrides default setting.
nomadicink
Forums Member
#10 | Posted: 23 Feb 2005 23:10
Reply 
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?
Team
8-)
#11 | Posted: 24 Feb 2005 10:53
Reply 
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.
nomadicink
Forums Member
#12 | Posted: 24 Feb 2005 15:46
Reply 
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 :)
Team
8-)
#13 | Posted: 24 Feb 2005 15:51
Reply 
There is no another field. user_sorttopics field stores either 0 or 1.
nomadicink
Forums Member
#14 | Posted: 24 Feb 2005 16:29
Reply 
gotcha, thanks.
Anonymous
Guest
#15 | Posted: 25 Feb 2005 04:21
Reply 
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:  1  2  »» 
Your Reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 48
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®