View Full Version : Different postbit display for first post in thread.
imported_Yoda
05-24-2004, 01:50 PM
I would like to use the standard postbit for the first post in a thread, and then the legacy postbit for all posts to follow.
Is this possible? If so, can anyone help?
I think this would be great for picture posting forums.... or for anyone else that would like to make the first post stand out more than the replies.
Edit: I apologise... I posted this in the wrong spot.
Tony G
06-02-2004, 11:12 AM
Moving to design and coding help. Hmm, don't know if this one is possible. Might require hacking.
Ryan Ashbrook
06-02-2004, 03:17 PM
Yep, you can do it using conditionals.
In the postbit template at the very top put this:
<if condition="$post['postcount'] == 1">
Then at the very end put this:
<else />
Then after that grab all of the code from the postbit_legacy template and through in at the end of the postbit template then after it all put this:
</if>
There ya go. :-)
Just did it myself on my forums, example: http://forums.theglassprison.net/showthread.php?t=79&styleid=36
Natch
06-03-2004, 04:50 AM
Looks great Ryan - good thinking :) [I hope you are OK with others being inspired by your wisdom ;)]
Ryan Ashbrook
06-03-2004, 08:05 PM
Looks great Ryan - good thinking :) [I hope you are OK with others being inspired by your wisdom ;)]
Of course. :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.