PDA

View Full Version : Show Thread Enhancements - Thread Starter Image in Postbit for OP


addamroy
02-18-2013, 11:00 PM
This modification is simple. It will display a 'Thread Starter' graphic on all posts made by the original poster ("The OP") in each thread.

Only 1 image upload and 1 template edit required to make this work.

Step 1 - Upload the OP.png image to your forum's /images folder.

Step 2 - In your postbit_legacy template...

FIND

{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">


ABOVE that code ADD

<!-- SHOW OP IMAGE FOR POSTS -->

<vb:if condition="$thread[postusername]==$post[username]">
<div align="left" style="float:left;padding:7px;margin-bottom:5px;background-color:#252525;border:1px solid #000000;">
<img src="images/OP.png" alt="{vb:raw post.username} started this thread." />
</div>
</vb:if>

<!-- SHOW OP IMAGE FOR POSTS -->


That's it :)

Check out my other Template Modifications for 4.x!

[Postbit-Legacy Hack] Attractive User Info Boxes for Posts (https://vborg.vbsupport.ru/showthread.php?t=309239)

Link Private Forums to thread instead of error message (https://vborg.vbsupport.ru/showthread.php?p=2393460)

Sidebar Anywhere Enhancement - Custom Blocks Per Forum or Page (https://vborg.vbsupport.ru/showthread.php?t=296104)

Change Thread Title Color for Specific Forums on Homepage (https://vborg.vbsupport.ru/showthread.php?t=293431)

Change Background Color for Specific Forums on Homepage (https://vborg.vbsupport.ru/showthread.php?t=293417)

Change Title Color of Specific Forums on Homepage (https://vborg.vbsupport.ru/showthread.php?t=293418)

CUSTOM BUTTONS that look like your forum! (https://vborg.vbsupport.ru/showthread.php?t=284005)

Custom User Rank Box in Posts (https://vborg.vbsupport.ru/showthread.php?t=294430)

Alan_SP
02-19-2013, 08:57 AM
It's a nice idea, but this isn't mod, thiis is template modification.

deadlySniper
02-22-2013, 04:39 AM
It's a nice idea, but this isn't mod, thiis is template modification.

Agreed. But good idea

Justinphx
02-22-2013, 07:36 AM
Nice. Great idea.

Dorgham
03-04-2013, 10:31 PM
Thanks
I liked this idea very :)

Spangle
03-06-2013, 08:47 AM
This is a good idea, but the background and border make it look really ugly, so I would suggest removing the bit in red

<!-- SHOW OP IMAGE FOR POSTS -->

<vb:if condition="$thread[postusername]==$post[username]">
<div align="left" style="float:left;padding:7px;margin-bottom:5px;background-color:#252525;border:1px solid #000000;">
<img src="images/OP.png" alt="{vb:raw post.username} started this thread." />
</div>
</vb:if>

<!-- SHOW OP IMAGE FOR POSTS -->

Also for 4.2 Patch 3 the find is wrong, if you place it below this code :

<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl>
</vb:if>

It will appear above the contact icons

datoneer
05-12-2013, 01:48 AM
Thanks for this looks cool