PDA

View Full Version : Sort threads by the date of the first post


garrynewman
10-08-2005, 10:00 PM
A really simple plugin.

There's no controls, you need to add your forumid to the script itself.

It simply orders the threads by the date of the original post instead of the date of the last post made in that thread.

This could be useful for a forum in which you post news etc where you want the latest news to stay on top.

Colin F
10-09-2005, 12:01 PM
Very simple indeed :)

To use this for multiple forums, replace this:if ($foruminfo[forumid] == 51 )
with this:if (in_array($foruminfo[forumid], array(51,52,53)))

JohnBee
10-09-2005, 01:18 PM
Wow! simple and yet so effective I will be using this in a few forums for sure.
thanks for this

Andreas
10-11-2005, 06:05 PM
For those who want more control over sorting:
https://vborg.vbsupport.ru/showthread.php?t=93074

Dot50Cal
10-11-2005, 06:57 PM
Yeah I seen that Kirby as I was searching for a system. This one does us just great and we dont need all that extra stuff :) Thanks though!

SALvation
10-11-2005, 07:21 PM
OK, for the noob...

How do you install this?

Andreas
10-11-2005, 07:35 PM
1. Start your computer
2. Login with a valid account for your computer
3. Make a connection to the internet (if you are not running vBulletin locally)
4. Open your Browser (if you are using Windows and the Internet Explorer, there should be a small e-icon next to the Start-Button in the lower left corner of your screen - click it)
5. Point your browser to your AdminCP-Driectory
In a standard installation, this is http://www.yoursite.com/forum/admincp
6. Login with your Admin account
7. In the left frame click the arrow next Plugin System to expand this group
8. Click Download/Upload Plugins
9. In the from, click browse to select the XML on your harddisk you previously saved there (in step 0)

Or in other words: Just import the plugin XML

Boofo
10-11-2005, 11:08 PM
Very simple indeed :)

To use this for multiple forums, replace this:if ($foruminfo[forumid] == 51 )
with this:if (in_array($foruminfo[forumid], array(51,52,53)))

How would you do a setting for multiple forums?

Razasharp
05-06-2006, 12:11 AM
Fantastic plug-in!

Any chance of modifying it slightly so that users can further sort by the normal options too? (last post/thread starter/ratings etc)? Or is that too involved?

thanks!

ryancooper
05-06-2006, 12:16 PM
How can you order it opposite? I want the last post to be at the bottom and the first post to be at teh top?

Rickie3
05-06-2006, 12:55 PM
1. Start your computer
2. Login with a valid account for your computer
3. Make a connection to the internet (if you are not running vBulletin locally)
4. Open your Browser (if you are using Windows and the Internet Explorer, there should be a small e-icon next to the Start-Button in the lower left corner of your screen - click it)
5. Point your browser to your AdminCP-Driectory
In a standard installation, this is http://www.yoursite.com/forum/admincp
6. Login with your Admin account
7. In the left frame click the arrow next Plugin System to expand this group
8. Click Download/Upload Plugins
9. In the from, click browse to select the XML on your harddisk you previously saved there (in step 0)

Or in other words: Just import the plugin XMLLOL,can you also tell me where to find the any key please?

Razasharp
05-06-2006, 01:04 PM
How can you order it opposite? I want the last post to be at the bottom and the first post to be at teh top?

Try adding the bold bit in the plug-in (not sure if it works tho so test it on a test forum first)

if (in_array($foruminfo[forumid], array(97,52,53)))
{
$sqlsortfield = 'dateline';
$sqlsortorder = "asc";
}