View Full Version : Original Poster Mod
TheInsaneManiac
08-04-2012, 01:43 AM
Is there a modification to show the op throughout the thread?
BirdOPrey5
08-04-2012, 09:03 AM
I don't know about a mod but it's a fairly simple template edit.
<vb:if condition="$thread['postusername'] == $post['username']"> ORIGINAL POSTER</vb:if>
Replace ORIGINAL POSTER with whatever you want, text, an image, whatever.
Put that code anywhere in your postbit or postbit_legacy template.
TheInsaneManiac
08-04-2012, 07:28 PM
Thank you. That's awesome and works perfectly!
puertoblack2003
12-18-2012, 07:52 AM
I don't know about a mod but it's a fairly simple template edit.
<vb:if condition="$thread['postusername'] == $post['username']"> ORIGINAL POSTER</vb:if>
Replace ORIGINAL POSTER with whatever you want, text, an image, whatever.
Put that code anywhere in your postbit or postbit_legacy template.
thanks for this i was wondering if that was a mod.But a simple tweak:up:. I tweaked it a bit more for my forum and sharing is caring :D
for those that would like this simple tweak thanks to BirdOPrey
in postbit_legacy look for this line
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}
<!-- original poster mod by BirdOPrey5 https://vborg.vbsupport.ru/showthread.php?t=286290 -->
<span class="originalposter"><vb:if condition="$thread['postusername'] == $post['username']"> [OP]</vb:if></span>
<!-- original poster mod by BirdOPrey5 https://vborg.vbsupport.ru/showthread.php?t=286290 -->
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>
just copy what's in red and paste it after {vb:raw post.onlinestatus} then save.
in additional css put this at the bottom. change color to your liking..
/* BirdOPrey5-original poster tweak */
.originalposter {
color: #c02525;
font-size: 14px;
font-weight: 700;
}
see attached image enjoy!!!
142952
DannyITR
02-14-2013, 02:11 PM
Is there any way to remove this for the first post? It would look a lot nicer.
--------------- Added 1360856033 at 1360856033 ---------------
Figured it out (added bold text)
<vb:if condition="($post[postcount] != '1')">
<span class="originalposter"><vb:if condition="$thread['postusername'] == $post['username']">[OP]</vb:if></span>
</vb:if>
thetechgenius
08-23-2014, 06:37 PM
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:
<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:
/* 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 */
Check the attached image for a screenshot.
Alan_SP
12-12-2014, 11:16 PM
I just "compressed" conditions for showing who's original author and avoiding it in the first post of the thread:
<vb:if condition="($thread['postusername'] == $post['username']) AND ($post[postcount] != '1')"><span class="originalposter">Original poster</span></vb:if>
This is just to avoid having two vb:ifs, previous work from DannyITR works just fine.
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:
<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_Thr ead" title="Other threads by this user" target="_blank"><span class="originalposter">Original poster</span></a></vb:if>
And if you want to control link, i.e. how it looks when mouse hovers on it, use this in additional.css:
.originalposter:hover{
color: gold;
}
Of course, you can choose your desired CSS controls.
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:
{vb:raw post.username}
For example:
<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_Thr ead" title="Other threads by user {vb:raw post.username}" target="_blank"><span class="originalposter">Original poster</span></a></vb:if>
ozzy47
12-12-2014, 11:18 PM
I wrote a mod like this when I was with DBTech, [DBTech] Original Poster In Postbit v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=299130)
Alan_SP
12-13-2014, 01:13 AM
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. :(
thetechgenius
11-18-2017, 12:11 AM
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:
<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>
As you can see, it will link to "#post1" in the thread.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.