![]() |
First post of a user in a thread
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. |
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.
|
Quote:
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? |
All times are GMT. The time now is 10:07 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:
|