×
Kunena 5.1.15 Released (27 Oct 2019)

The Kunena team has announce the arrival of Kunena 5.1.15 [K 5.1.15] which is now available for download as a native Joomla extension for J! 3.9.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1.

× Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Reverse Post Order Solution

More
10 years 7 months ago - 10 years 7 months ago #1 by DarkSlash
Ok... there's no single way to change ALL users's order in Kunena... how about if we try this until the development team gives us a solution:

1) Create a trigger in mysql wich every time that a row is inserted on the user table, the ordering field is set to 0 instead of 1.

2) Find the file and code where the INSERT of the user is done and modify it by replacing ordering = 1 to ordering = 0.

Anyone can help with this? I use Community Builder and I don't know how it does Kunena to get every new registered user...

EDIT: is one OR another, not both ;)
Last edit: 10 years 7 months ago by DarkSlash.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #2 by xillibit
Hello,

do you want change the order in the userlist ? or do you want change the order of posts ?

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #3 by DarkSlash
Order of the posts... like the title of this post says ;)

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #4 by xillibit
There is an parameter nammed default_sort placed in components/com_kunena/lib/config.class.php but when I change this, there is no effect. In the Kunena config panel, there is no way to change this.

The only way to change this is to modified the file components/com_kunena/template/dafault_ex/view.php at line 168 replace:
$ordering = ($fbConfig->default_sort == 'desc' ? 'desc' : 'asc'); // Just to make sure only valid options make it

by this
$ordering ='desc';

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #5 by DarkSlash
Cool! It works! But for getting FPFR (First Posted First Readed) configuracion you have to set ordering to 'asc' instead of 'desc'!
It works perfectly! Thank you, xillibit! You found the solution that many Kunena users where looking for! :)

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #6 by xillibit
You are welcome, I will try do add this possibility in the kunena config panel .

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #7 by DarkSlash
That will be cool. Until that, this is a great solution! :)

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #8 by xillibit

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #9 by harykopar
How to set the reverse order of displaying messages (posts) in Kunena 1.6?

In /administrator/components/com_kunena/libraries/tables/kunenauser.php find:
var $ordering = null;
and fix in:
var $ordering = 1;
Visitors and new users will see the reverse order, and have already registered you must change the option in the settings in backend.

(i'm don't speak english - google translator :P)

Pozdrawiam,
Harykopar

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #10 by xillibit
You can change order in your profile

I don't provide support by PM, because this can be useful for someone else.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.070 seconds