Advertisement:

Author Topic: Display all posts made by a specific user in a specific thread  (Read 284 times)

Offline Bloodsurfer

  • Semi-Newbie
  • *
  • Posts: 45
Display all posts made by a specific user in a specific thread
« on: February 10, 2019, 09:07:55 AM »
Hello.

I am looking for a way to display all posts made by a specific user in a specific thread.

There may be an already existing modification or some other easy way to get there, which I have not discovered yet.

I can achieve this by running simple SQL statements on the server of course, but then I get the messages only as unformatted text. I would like too see them in a normally formatted fashion like viewing a normal thread with BB code, avatar, time stamps etc.

What would be the easiest way to get there?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,791
  • Gender: Male
    • Kindred-999 on GitHub
Re: Display all posts made by a specific user in a specific thread
« Reply #1 on: February 10, 2019, 09:17:47 AM »
well, there is no modifications existing, that I know about...


However, using SSI, you should be able to
a) make the query correctly (making direct database queries is a no-no -- in 99.99% of the cases where people do it, it is insecure)
b) have the output formatted in the standard SMF post-view.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Bloodsurfer

  • Semi-Newbie
  • *
  • Posts: 45
Re: Display all posts made by a specific user in a specific thread
« Reply #2 on: February 10, 2019, 10:41:46 AM »
Thanks for your suggestion. Which SSI function(s) could I use for this?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,492
    • StoryBB/StoryBB on GitHub
Re: Display all posts made by a specific user in a specific thread
« Reply #3 on: February 10, 2019, 11:33:50 AM »
https://custom.simplemachines.org/mods/index.php?mod=4174 Maybe?

Not sure exactly what you’re trying to achieve otherwise, more details might help here.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Bloodsurfer

  • Semi-Newbie
  • *
  • Posts: 45
Re: Display all posts made by a specific user in a specific thread
« Reply #4 on: February 10, 2019, 01:42:13 PM »
https://custom.simplemachines.org/mods/index.php?mod=4174 Maybe?

Not sure exactly what you’re trying to achieve otherwise, more details might help here.

That is *exactly* what I was looking for. Perfect, thank you!