PDA

View Full Version : Popular, Latest, Upcoming issues...



anthonyr
08-22-2011, 03:09 PM
Well it all started when I first thought of modifying the updown voting plugin to suit my needs. I wrote the script perfectly, but when I tested it, it literally did nothing. So my question here is: if the updown voting and voting plugins are disabled, how are the posts classified as latest, upcoming and popular? i.e: the updown voting plugin sends the post to the popular page if a certain number of +votes is attended.


2- I managed to find out that post_status variable is responsible of the posts location(latest, upcoming, popular) where popular is used as "top". what are the other alias for latest, upcoming...?

3- After submitting the post, which plugin is responsible(if updown voting is disabled) of sending the post to upcoming and then to popular?

Thank you very much in advance and please care to answer my questions ASAP.

anthonyr
09-05-2011, 11:42 PM
Please Guys, I really need to complete this project! try to reply!

PuckRobin
09-06-2011, 08:22 AM
Bookmarking plugin is responsible for those listings. You can refer to prepareListFilters function in bookmarking/libs/BookmarkingFunctions.php

anthonyr
09-08-2011, 10:29 PM
So from what you said I must understand that bookmarking plugin first sets all the posts to upcoming, latest and popular and then updown plugin does the rest (sends the upcoming post to popular if number of +votes reached)?
Or is it simply the bookmarking plugin that does everything?

PuckRobin
09-09-2011, 03:35 AM
Did you look at the function? It is quite clear there.

In case of latest, there is no effect of votes. In case of upcoming, votes given in a selected time interval is taken into account. Votes are given by the help of voting plugin(s), but the listings are done by the bookmarking plugin.