Shoutbox - Can I change the order

Is it possible to change the shoutbox to go from newest to oldest posts instead of oldest to newest?

Thanks in advance =)

Quote · 1 Feb 2010

Is it possible to change the shoutbox to go from newest to oldest posts instead of oldest to newest?

Thanks in advance =)

open "/modules/boonex/shoutbox/classes/BxShoutBoxDb.php" file

find

$sQuery = "SELECT * FROM `{$this -> sTablePrefix}messages` WHERE `ID` > " . (int) $iLastId . " ORDER BY `ID`";

Modify it like below

$sQuery = "SELECT * FROM `{$this -> sTablePrefix}messages` WHERE `ID` > " . (int) $iLastId . " ORDER BY `ID` DESC";

Looking for Help? http://www.boonex.com/kevinmitnick
Quote · 1 Feb 2010

Thanks for the response =)


This doesn't seem to be working for me though.


It didn't change the order to newest on top... and on top of that it seems to be doubling posts every now and then... I'm testing the shoutbox and on the first computer it does not double post, but on the second computer it double posts both when I post from computer 1 and computer 2.... BUT not all the time... it's wierd...

Any insight on this?

Thanks again =)

Quote · 1 Feb 2010

Did you empty the ./cache (except for the .htaccess file) and ./cache_public directories?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 1 Feb 2010

I cleared the cache in the admin before... but now I cleared both of them and all the OLD posts flip flopped correctly, but new posts stay at the bottom.  Still getting double posts on computer 2...

???

Quote · 1 Feb 2010

I cleared the cache in the admin before... but now I cleared both of them and all the OLD posts flip flopped correctly, but new posts stay at the bottom.  Still getting double posts on computer 2...

???

Well, now we know the code was wrong. Tongue out

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 1 Feb 2010

Hmmm... just saw that "except for the .htaccess"...


I totally cleared the /cache before... was there a .htaccess in there before?  And if so, what do I need to do to get it back?


Thanks again =)

Quote · 1 Feb 2010

Hmmm... just saw that "except for the .htaccess"...


I totally cleared the /cache before... was there a .htaccess in there before?  And if so, what do I need to do to get it back?


Thanks again =)

Re-upload the .htaccess file to the ./cache directory. You can do this by unzipping a copy of the script locally, and navigating to the proper directory and uploading accordingly. Or, you can run around and panic. It's your choice, really.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 1 Feb 2010

Or you can just simply create a new one. The .htaccess file in the cache directory is just there for security.

It only contains one line.

Deny from all

So that is all you would need to do.

https://www.deanbassett.com
Quote · 1 Feb 2010

Or, you can run around and panic. It's your choice, really.

lol...

Thank you both.  =)

Anyone else have an idea how to get newest posts to display in the shoutbox?


Thanks to all =)

Quote · 1 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.