Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
how do i change the order of threads/messages? (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: how do i change the order of threads/messages?
#37724
how do i change the order of threads/messages? 9 Months, 1 Week ago  
i have strong opinions on how i'd like fireboard to sort the data.

when looking in a forum in flat view, i'd like all the threads to appear with the newest ones being on top. (meaning, the ones most recently written or updated.)

but once the user clicks on a thread to read it, i'd like the oldest messages to appear at the top, so that the user can read them in logical order.

how do i do that?

thanks!
altoidboy (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#37729
Re:how do i change the order of threads/messages? 9 Months, 1 Week ago  
Somebody? Solution?

Thanks!
tescojim (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#37730
Re:how do i change the order of threads/messages? 9 Months, 1 Week ago  
JEEZ! This just got posted and you're already bumping it with a "me too" reply?
grumblemarc (User)
Platinum Boarder
Posts: 3557
graph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
The administrator has disabled public write access.  
#38866
Re:how do i change the order of threads/messages? 9 Months ago  
I'de be interested in a solution to this for my forum too thanx
Namsul (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#39583
Re:how do i change the order of threads/messages? 8 Months, 4 Weeks ago  
go to components/com_fireboard/template/default/view.php line 155
change
[code:1] $ordering = $orderingNum ? 'DESC' : 'ASC';[/code:1]
to
[code:1] $ordering = $orderingNum ? 'ASC' : 'DESC';[/code:1]
seems to work
Namsul (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/01/18 18:32 By Namsul.
 
The administrator has disabled public write access.  
#40391
Re:how do i change the order of threads/messages? 8 Months, 3 Weeks ago  
thanks namsul!
altoidboy (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#41097
Re:how do i change the order of threads/messages? 8 Months, 3 Weeks ago  
Namsul wrote:
[quote]go to components/com_fireboard/template/default/view.php line 155
change
[code:1] $ordering = $orderingNum ? 'DESC' : 'ASC';[/code:1]
to
[code:1] $ordering = $orderingNum ? 'ASC' : 'DESC';[/code:1]
seems to work[/quote]

I am having a problem with my members postings posting above the original post with me the admin its fine new posts for me go under the previous post but my members post go above the original post, I looked at my code as well in the view.php too and mine is as follows.

[code:1]
if ($fbordering == "_UE_FB_ORDERING_OLDEST") {

$orderingNum = 0;

}

else {

$orderingNum = 1;

}

}

else

{

$database->setQuery("SELECT ordering from #__fb_users where userid=$my->id");

$orderingNum = $database->loadResult();

}



$ordering = $orderingNum ? 'DESC' : 'ASC';

$database->setQuery("SELECT * FROM #__fb_messages AS a "

."n LEFT JOIN #__fb_messages_text AS b ON a.id=b.mesid WHERE (a.thread='$thread' OR a.id='$thread') AND a.hold=0 AND a.catid='$catid' ORDER BY a.time $ordering");



if ($view != "flat")

$flat_messages[] = $this_message;



foreach ($database->loadObjectList()as $message)

{

if ($view == "flat")[/code:1]


Is there somewhere else I need to change my code to
[code:1] $ordering = $orderingNum ? 'DESC' : 'ASC';[/code:1]

other then the view.php?
Mr. Green (User)
Junior Boarder
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#41123
Re:how do i change the order of threads/messages? 8 Months, 3 Weeks ago  
I don't know php.
but usually there is the same code arguement written a few times for different instances.
they write it once for viewing something not logged in and then it's usally written again for viewing if logged in.
Probably something like that in this instance to for admins.
I'll have a look but I just look for the obvious. I'm no good code
I'm surprised this isn't yet in the forum admin preferences as a standard option/choice in the forum view.

Fireboard has just about everything else
Namsul (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#41145
Re:how do i change the order of threads/messages? 8 Months, 3 Weeks ago  
Namsul wrote:
I don't know php.
but usually there is the same code arguement written a few times for different instances.
they write it once for viewing something not logged in and then it's usally written again for viewing if logged in.
Probably something like that in this instance to for admins.
I'll have a look but I just look for the obvious. I'm no good code
I'm surprised this isn't yet in the forum admin preferences as a standard option/choice in the forum view.

Fireboard has just about everything else


I am also suprised my members are very confused about the ordering? I will check all the php codes for this goofy posting problem, I have never seen a forum post new posts above the original so why would this be the norm for fireboards? Hello fireboard people make a button in the fireboard admin panel for ascending and descending responses to posts. Simple as that.
Mr. Green (User)
Junior Boarder
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#41151
Re:how do i change the order of threads/messages? 8 Months, 3 Weeks ago  
I dont know whats so hard about answering these questions the support here is very weak do you mods or whatever consider yourselves too good to help the lesser educated? Lame all I see is "wrong category" or "wrong board" just answer our questions fellas I appologize for us not being as sharp as you but we dumb a$$es need a little help too.

Its all good
Mr. Green (User)
Junior Boarder
Posts: 43
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top