We already have the latest discussion on the homepage, is there anyway to add underneath that the top ten threads with the most users/guests reading them?
True. It would have to look through thousand and thousands of topics, and it would have to do that everytime someone refreshes the homepage, or that box, so it would put an incredible amount of pressure on the server.tj_cool said:I mean, the latest topics thing is easy: every time someone posts it can be added in the latest discussions. But if you're going to base on Viewers, it'd have to search each topic to see how many viewers there are and then sort them (which probably takes a while)
That basically comes down to the same thing as what tk_saturn suggested, so it won't work.Sterl500 said:Just so you all know, I know nothing of the way GBATemp is coded, etc. But just a thought: Try just keeping track of the posts being posted in a certain time frame. Most likely a time frame of it being in the mythical Hottest topics section. Which could be one post to put it there, but the more posts it gets the longer it stays there. Go with out posts, it gets put lower and lower on the list until *poof*.
Does it have to keep track of who posted it? Couldn't it be in some sort of counter (or counter equivalent), which is updated after something gets posted? Then gets checked at time intervals to see if the topic needs to be bumped on the list?Overlord Nadrian said:That basically comes down to the same thing as what tk_saturn suggested, so it won't work.Sterl500 said:Just so you all know, I know nothing of the way GBATemp is coded, etc. But just a thought: Try just keeping track of the posts being posted in a certain time frame. Most likely a time frame of it being in the mythical Hottest topics section. Which could be one post to put it there, but the more posts it gets the longer it stays there. Go with out posts, it gets put lower and lower on the list until *poof*.