![]() |
I could use a little help. I'm playing around with member.php to change a the profile page. I'd like to list the last 10-20 posts made by a member instead of just the last one. I'm only changing the 'get last post' section. The following code works and you just need to stick $TheLastPosts into the getinfo template to display the list. Here's the problem. If you made several posts in one thread, you'll have several links to differnet parts of the same thread. once a thread is listed, I don't want it to be listed again. I've been trying to find a simple way to weed out the dups, but nothing is working out perfect. Help me out guys. :) thanks
PHP Code:
|
Use GROUP BY:
Code:
SELECT thread.threadid,thread.title,thread.forumid,postid,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' GROUP BY thread.threadid ORDER BY post.dateline DESC LIMIT 20 |
wow, that was quick
thanks so much. that did the trick. |
All times are GMT. The time now is 10:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|