The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
profile picture ONLY on first post.
I want to set up my news forum so that an avatar/profile picture ONLY appears on the first post - any post after this will be a user reply. Anyone know how to do this? Thanks.
|
#2
|
|||
|
|||
Modify your postbit template(s). From Xenon's idea:
Code:
<if condition="$post['postid'] == $threadinfo['firstpostid']"> first post special handling code <else /> other posts/normal code </if> |
#3
|
|||
|
|||
Thanks. I tried putting it at the top of postbit but it thinks even the first post is an additional post. See code I used below:
<if condition="$post['postid'] == $threadinfo['firstpostid']"> This is the first post with avatar and other stuff <else /> this is where the replies will go. </if> |
#4
|
|||
|
|||
Hmmm... I expect that "$threadinfo['firstpostid']" is not available to the template.
You could verify by simply including (outputting) the value in a test postbit page to see if it is set. |
#5
|
|||
|
|||
Could I just not use if postcount==1 then .... else?
|
#6
|
|||
|
|||
No. Those numbers are not guaranteed to reflect the actual position of a post in a thread.
It should easy to modify showthread.php to set something like "$show[firstpostinfo]", but I think it would be worthwhile to do the test I mentioned earlier. |
#7
|
|||
|
|||
I put $threadinfo[firstpostid] in my postbit (I can do it on the one I am using as its a test db) and nothing was displayed....how do I get it into the thread? I thought firstpostid would be global??
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|