George Spellwin said:
Tahe a look at the hometicker.php page. How could we just grab 10 popular posts once a day and use them until the next day? And thanks for your help.
you have a table of posts (or perhaps a table for each board - but I think that isn't the case from what it looks like).
there is a column that tracks how many posts there are on that thread.
there is a column that tracks the date the post was started, and another that tracks the date of the most recently post.
the rest really doesn't matter (unless there is already a column that shows a thread to be hot or not).
so then do a query on the database on that table (or if there are multiple tables you could either do a join or run the query on each). your query should get all the posts that have been posted on within a certain date or later (yesterday or more recent - something like that - the larger the the timespan, the more posts will be returned). and also where the number of posts is over some threshold (the higher this number goes, the fewer posts you will get).
then feed that recordset out to your page.
you could either iterate through it and dump them all out in a row, the data that you want to display (looks like thread title, poster, and make the title a link that will return that thread).
or you could have it slipt into the various boards (more work) and iterate through for each board, or more ideally iterate through once and then pull them out on an if statement or some conditional.
something like that. then inclue that page and it will build that table in the include:
<table>
<tr>
<td>
--included file-- <-- this will form a table within there. ^ the outer table will have more stuff that will shape the rest of the page, and might even be in a table itself.
</td>
</tr>
</table>
also note that all of these tables make page loads slow in themselves b/c the tags add a lot of data just to show positioning data.