The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
I just "compressed" conditions for showing who's original author and avoiding it in the first post of the thread:
Code:
<vb:if condition="($thread['postusername'] == $post['username']) AND ($post[postcount] != '1')"><span class="originalposter">Original poster</span></vb:if> EDIT: I also thought that it could be interesting to add another function, to link threads opened by this particular user, instead to link posts of this user as @thetechgenius made. If you want to point to threads of a user use this code: Code:
<vb:if condition="($thread['postusername'] == $post['username']) AND ($post[postcount] != '1')"><a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw post.userid}&starteronly=1&contenttype=vBForum_Thread" title="Other threads by this user" target="_blank"><span class="originalposter">Original poster</span></a></vb:if> Code:
.originalposter:hover{ color: gold; } Now you can choose if you want just plain original poster sign, or if it also leads to user's posts (credits go to thetechgenius), or it leads to threads created by user. And of course, all credits for this great idea go to BirdOPrey5. Thank you man. :up: EDIT2: And just in case you want to use user name in title of link, use this code there in appropriate place: Code:
{vb:raw post.username} Code:
<vb:if condition="($thread['postusername'] == $post['username']) AND ($post[postcount] != '1')"><a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw post.userid}&starteronly=1&contenttype=vBForum_Thread" title="Other threads by user {vb:raw post.username}" target="_blank"><span class="originalposter">Original poster</span></a></vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|