The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Original Poster Mod
Is there a modification to show the op throughout the thread?
|
#2
|
||||
|
||||
I don't know about a mod but it's a fairly simple template edit.
Code:
<vb:if condition="$thread['postusername'] == $post['username']"> ORIGINAL POSTER</vb:if> Put that code anywhere in your postbit or postbit_legacy template. |
Благодарность от: | ||
TheInsaneManiac |
#3
|
|||
|
|||
Thank you. That's awesome and works perfectly!
|
Благодарность от: | ||
BirdOPrey5 |
#4
|
||||
|
||||
Quote:
for those that would like this simple tweak thanks to BirdOPrey in postbit_legacy look for this line Quote:
in additional css put this at the bottom. change color to your liking.. Quote:
see attached image enjoy!!! Attachment 142952 |
Благодарность от: | ||
BirdOPrey5 |
#5
|
|||
|
|||
Is there any way to remove this for the first post? It would look a lot nicer.
--------------- Added [DATE]1360856033[/DATE] at [TIME]1360856033[/TIME] --------------- Figured it out (added bold text) Code:
<vb:if condition="($post[postcount] != '1')"> <span class="originalposter"><vb:if condition="$thread['postusername'] == $post['username']">[OP]</vb:if></span> </vb:if> |
#6
|
||||
|
||||
I made the "[OP]" a link, that links to all the User's Posts. Also, when you hover over the [OP] it says "Original Poster", see the Title Tag.
This is my code: Code:
<vb:if condition="$thread['postusername'] == $post['username']"><span class="ttg_org_poster"><a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw post.userid}&contenttype=vBForum_Post&showposts=1" title="Original Poster"> [OP]</a></span></vb:if> CSS: Code:
/* TTG Original Poster - Postbit Legacy */ .ttg_org_poster { color: #d14a10; /* Change this color to match your style */ font-size: 9px; font-weight: bold; font-style: italic; } /* TTG Original Poster - Postbit Legacy */ |
#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> |
#8
|
||||
|
||||
I wrote a mod like this when I was with DBTech, [DBTech] Original Poster In Postbit v1 (vB4)
|
#9
|
||||
|
||||
Sorry I didn't saw your mod under DBTech.
Anyway, I played a bit with template edit, as you can see. And of course, you know why I can't like your post at the moment. |
#10
|
||||
|
||||
I know this is an old thread, but I would like to add to it.
The above code just shows "[OP]" next to the original poster's username in a thread. The code below will make the "[OP]" a clickable link that will link to the Original Post in that thread. Here is my code: Code:
<span class="originalposter"><vb:if condition="$thread['postusername'] == $post['username']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post1"> [OP]</a></vb:if></span> |
Благодарность от: | ||
blind-eddie |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|