PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Tizwit
Involved
Involved


Joined: Aug 29, 2004
Posts: 324
Location: New Mexico

PostPosted: Wed Nov 30, 2005 4:11 am Reply with quote Back to top

Is there any way to Re-Arrange the messages that you place in the Messages Administration?

Thanks
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Nov 30, 2005 5:50 am Reply with quote Back to top

Try changing start date. You can use the Messages Control Panel Change start date to today? or directly edit the start date via phpMyAdmin.

Oops. That is for Stories only Smile. You will need to directly edit the date field via phpMyAdmin.


Last edited by Raven on Wed Nov 30, 2005 2:50 pm; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Tizwit
Involved
Involved


Joined: Aug 29, 2004
Posts: 324
Location: New Mexico

PostPosted: Wed Nov 30, 2005 2:46 pm Reply with quote Back to top

There is no start date on the Messages. I found one for the Stories but not the messages.

I did swap 2 dates that were located in the control panel but that had no effect on the order of messages.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Nov 30, 2005 2:49 pm Reply with quote Back to top

Use phpMyAdmin and manually change the date field.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Tizwit
Involved
Involved


Joined: Aug 29, 2004
Posts: 324
Location: New Mexico

PostPosted: Wed Nov 30, 2005 3:06 pm Reply with quote Back to top

Raven wrote:
Use phpMyAdmin and manually change the date field.


yes I used the phpmyAdmin and no effect.


I swapped the 2nd and the 4th ones dates:

Image
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Nov 30, 2005 6:35 pm Reply with quote Back to top

It might use the message ID (primary key)... You might try altering that...been a while since I looked at that code.
View user's profile Send private message
Tizwit
Involved
Involved


Joined: Aug 29, 2004
Posts: 324
Location: New Mexico

PostPosted: Wed Nov 30, 2005 6:42 pm Reply with quote Back to top

in the phpmyadmin? if so that was the first thing I try to change to get it reordered
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Nov 30, 2005 6:51 pm Reply with quote Back to top

OK, so in the mainfile, you'll see this:
Code:
$result2 = $db->sql_query("SELECT mid, content, date, who FROM ".$prefix."_public_messages WHERE mid > '$c_mid' ORDER BY date ASC LIMIT 1");

That means it's using the date - but in ASCENDING order. So, you can either change the ASC to DESC to get the most recent messages first or change the date accordingly in PHPMYADMIN or some other SQL utility.
View user's profile Send private message
Tizwit
Involved
Involved


Joined: Aug 29, 2004
Posts: 324
Location: New Mexico

PostPosted: Wed Nov 30, 2005 7:08 pm Reply with quote Back to top

I will look into this in the morning and see what it says. Thanx

off to work I go now
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum