Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Aug 2012, 02:43
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Original Poster Mod

Is there a modification to show the op throughout the thread?
Reply With Quote
  #2  
Old 04 Aug 2012, 10:03
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I don't know about a mod but it's a fairly simple template edit.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace ORIGINAL POSTER with whatever you want, text, an image, whatever.

Put that code anywhere in your postbit or postbit_legacy template.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #3  
Old 04 Aug 2012, 20:28
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Thank you. That's awesome and works perfectly!
Reply With Quote
  #4  
Old 18 Dec 2012, 07:52
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Originally Posted by BirdOPrey5 View Post
I don't know about a mod but it's a fairly simple template edit.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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. I tweaked it a bit more for my forum and sharing is caring

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 http://www.vbulletin.org/forum/showthread.php?t=286290 -->
<span class="originalposter"><vb:if condition="$thread['postusername'] == $post['username']"> [OP]</vb:if></span>
<!-- original poster mod by BirdOPrey5 http://www.vbulletin.org/forum/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!!!

Untitled.png
__________________
Android Custom Creations
Reply With Quote
  #5  
Old 14 Feb 2013, 14:11
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Is there any way to remove this for the first post? It would look a lot nicer.

--------------- Added 14 Feb 2013 at 14:33 ---------------

Figured it out (added bold text)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
www.montrealracing.com

Last edited by DannyITR; 14 Feb 2013 at 14:34.
Reply With Quote
  #6  
Old 23 Aug 2014, 19:37
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


CSS:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Check the attached image for a screenshot.
Attached Images
File Type: png op.png (93.9 KB, 25 views)

Last edited by thetechgenius; 23 Aug 2014 at 22:09.
Reply With Quote
  #7  
Old 13 Dec 2014, 00:16
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
I just "compressed" conditions for showing who's original author and avoiding it in the first post of the thread:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And if you want to control link, i.e. how it looks when mouse hovers on it, use this in additional.css:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

EDIT2:

And just in case you want to use user name in title of link, use this code there in appropriate place:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Alan_SP; 13 Dec 2014 at 01:50.
Reply With Quote
  #8  
Old 13 Dec 2014, 00:18
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
I wrote a mod like this when I was with DBTech, [DBTech] Original Poster In Postbit v1 (vB4)
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #9  
Old 13 Dec 2014, 02:13
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
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.
Reply With Quote
  #10  
Old 18 Nov 2017, 01:11
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

As you can see, it will link to "#post1" in the thread.
__________________
TheTechGenius.Net Official IRC Network (ONLINE)
Host: irc.thetechgenius.net
Port: 6667
TTG IRC Web Client - http://thetechgenius.net/irc.html
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:34.

Layout Options | Width: Wide Color: