PDA

View Full Version : Latest X amount of headlines based on last reply for VB 3.6?



BigJohnson
09-03-2006, 07:26 AM
This is a great script. Thank you.

I generate code to display 5 headlines and it does that. It appears to displays them based on the most recent creation date. How would I get it to display headlines with the most recent reply date no matter how old the thread creation date is? On my forums those threads get bumped to the top when they are replied to. I want them to be bumped to the top in my headline links too but they don't because of their original creation date.


On a lesser important issue to me, but still a problem, if I have a news source that uses multiple forum id's to get headlines from, it does not work. If I stick to just 1 forum id it works fine. I've tried "1,2,3" and "1, 2, 3" noting the space after the commas, and still get nothing.

Patrick
09-03-2006, 07:13 PM
You would have to open up the forum-news/classes/sources/Forum/vBulletin_3.php file and find "ORDER BY threadid" and modify it to order by some other database field (other than threadid). There is probably a last post time or something, you will have to look at vbulletin database in the thread table to see what fields you can base this on.

Second problem:

I am not sure which you are referring to for "forum id". Are you referring to individual installed forums or are you referring to forum categories? Make sure you read the text in the script carefully as the script can handle complicated setups INCLUDING multiple forum installs. You could be confusing news sources / multiple forums with category ids.

Pulling from multiple forum categories DOES work with the latest vBulletin (I know because I have such a setup on some of my sites).