PDA

View Full Version : Selectable sort order for new posts


raywjohnson
05-05-2014, 12:35 AM
In VB3, I setup a quick drop list of links to allow members to sort the new post listing. This built-in functionallity seems to have been removed from VB4.

Example VB3: (this works)
search.php?do=getnew Default
search.php?do=getnew&sortby=title Title
search.php?do=getnew&sortby=replycount Number of Replies
search.php?do=getnew&sortby=views Number of Views
search.php?do=getnew&sortby=threadstart Thread Start Date
search.php?do=getnew&sortby=lastpost Last Posting Date
search.php?do=getnew&sortby=postusername User Name
search.php?do=getnew&sortby=forum Forum


Example VB4: (only views and replycount seem to work)
search.php?do=getnew&contenttype=vBForum_Post Default
search.php?do=getnew&contenttype=vBForum_Post&sortby=title Thread Title
search.php?do=getnew&contenttype=vBForum_Post&sortby=lastpost Last Post Time
search.php?do=getnew&contenttype=vBForum_Post&sortby=dateline Thread Start Time
search.php?do=getnew&contenttype=vBForum_Post&sortby=replycount Number of Replies
search.php?do=getnew&contenttype=vBForum_Post&sortby=views Number of Views
search.php?do=getnew&contenttype=vBForum_Post&sortby=postusername Thread Starter
search.php?do=getnew&contenttype=vBForum_Post&sortby=voteavg Thread Rating
search.php?do=getnew&contenttype=vBForum_Post&sortby=forum Forum

I have hunted the code for clues on how to create a plugin to effect this. VB4 is a huge jump in complexity.

Anyone have an idea on how to implement sorting for new posts?