Log in

View Full Version : First post of a user in a thread


Fresky
07-20-2009, 05:42 PM
Hi friends.

I need to identify the first post of a user in a thread, using a "if condition" sentence.

I know that "<if condition="$post[postcount]==1">" identifies the first post in a thread, but what I need is to identify the first post for every user in a thread.

Maybe there is a variable that I can use in the "if condition" sentence, but I have been looking for a list of variables with no success.

Could anyone help me?

Thank you.

Lynne
07-20-2009, 06:06 PM
There is no variable for that since vb doesn't care about a users first post. I think you'd have to write a plugin to do a query to grab the first post in a thread for the user and then see if that postid is the same as the one you got from the query. Sounds icky. Maybe someone else can think of a cleaner way to do it.

Fresky
07-20-2009, 07:38 PM
There is no variable for that since vb doesn't care about a users first post. I think you'd have to write a plugin to do a query to grab the first post in a thread for the user and then see if that postid is the same as the one you got from the query. Sounds icky. Maybe someone else can think of a cleaner way to do it.

First of all, thank you very much for your comments.

The thing is that I would like to have the user's signature only in their first post in a thread. I thought It would be a good idea to modify the postbit_legacy template in order to do this, by adding a "if condition" sentence....

....maybe, is there another way to do it?