PDA

View Full Version : Archive -first post only


Dave-ahfb
06-04-2005, 09:09 PM
Is there a way to make the archive only show the first post from the thread?

It seems this would be much better for search engines as the more posts you add (generally), the thread will get a little more off topic from the thread title. This is also good to encourage the user to enter the main forums so they may view the rest.

...or they could leave by google :)

Dave

Dave-ahfb
06-06-2005, 02:20 PM
Am I to assume this is not possible?

Dave

Logikos
06-06-2005, 08:15 PM
Sure this is very possiable, there should be a query inside archive/index.php that grabs the post info, should be something like

$posts = $DB_site->query("
SELECT post.postid, ect....
FROM " . TABLE_PREFIX . "post AS post


Just need to add a "LIMIT 1". Note: I havn't looked at the code cause im at work, but when i come home i will.