Welcome Guest!   Please Login or Register
Subscribe Today

You are not subscriber of DaDaNuke | Making PHP-Nuke Better!. You can subscribe from here now!

Sponsored Links




Search




Site Navigation

· Home
· About Us
· Advertise With Us
· Club
· CVS
· Downloads
· Feedback
· Forums
· Gallery
· Groups
· Journal
· Private Messages
· Search
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
· Your Account

Survey

I Want This Addon:

SEO
Gaming
Commerce
Database
Security



Results
Polls

Votes 1934

Advertisers





Who's Online

There are currently, 18 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

Total Hits

We received
7844636
page views since September 2005




DaDaNuke :: View topic - Messages sorting order
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

Messages sorting order

 
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke Modules
View previous topic :: View next topic  
Author Message
Mtwo
dadaClub
dadaClub


Joined: Mar 14, 2006
Posts: 42


PostPosted: Wed Jun 20, 2007 5:12 pm    Post subject: Messages sorting order Reply with quote

Does anyone know how to add the ability to change the sort order of the messages in nukes message module?

...

Hasn't anyone wanted to post a message and have it appear as the top most message on your home page. I am sure you have; and you simply replaced message 1 with your new posting and moved your first message to the next spot. I only see message ID being important for the sort oder, so how can we add the ability to manage this? Can use or create something similar to the blocks manager? Does anyone know how to make this happen?
Back to top
View user's profile Send private message
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 223
Location: Miami, FL

PostPosted: Mon Jul 16, 2007 12:28 pm    Post subject: Reply with quote

Hi Mtwo,

Do you mean to sort the private messages?

Enjoy. Wink
_________________
Emil Acosta
"In the computer business you’re either a one or a zero and I am determined never to be zero."
Back to top
View user's profile Send private message Visit poster's website
Mtwo
dadaClub
dadaClub


Joined: Mar 14, 2006
Posts: 42


PostPosted: Mon Jul 16, 2007 3:03 pm    Post subject: Nuke Messages, not private messages Reply with quote

No, Nuke messages. i.e. /admin.php?op=messages

I would like the ability to add a new message and move it to the top when desired.
Back to top
View user's profile Send private message
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 223
Location: Miami, FL

PostPosted: Mon Jul 16, 2007 3:34 pm    Post subject: Reply with quote

Hi Mtwo,

What you want to do can be done, but will require a lot of hacking.

1. Modified nuke_messages to add a row for the weight of the message (order)

2. Edit the functions add_message and edit_message to update the SQL to include the new row

3. Edit mainfile.php to add the sort by weight to the SQL

4. Modified message.php (admin/modules/message.php) to include the arrows and an extra column

I can recommend you to check the code of blocks.php (admin/modules/blocks.php).

Enjoy. Wink
_________________
Emil Acosta
"In the computer business you’re either a one or a zero and I am determined never to be zero."
Back to top
View user's profile Send private message Visit poster's website
Mtwo
dadaClub
dadaClub


Joined: Mar 14, 2006
Posts: 42


PostPosted: Wed Aug 01, 2007 11:20 am    Post subject: Reply with quote

I have tried this, but have not had any success. Has anyone else attempted this mod?

If so, can you please post the code changes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke Modules All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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
Powered by phpBB © 2001 phpBB Group Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Theme designed by Western Studios



Terms of Use | Privacy Policy © 1996-2007, DaDaNuke

Listed on FeedBurner

PHP-Nuke Copyright © 2006 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.

Theme Designed by Western Studios