[4.1.0-4.1.7] Add UserID AND Usergroup to Postbit

| comments

What Can It Be Used For?
vbulletin has happily added a identification interface within their forum software that gives each user their own unique ID Number. The thing is, vbulletin did not add a way to show who has what ID except for in the long URL of some pages.

This modification helps extract the ID from the URL and enter it into the Postbit of every forum thread. It is an easy way for members to see who is in what usergroup and for the forum staff to find members.


Installation
For 4.1.0-4.1.5 Users:
Log in to the adminCP on your site.

Go to Styles & Templates => Style Manager => Edit Templates => Postbit Templates => Postbit_Legacy

Find:

PHP Code:
<div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div>  
Under Add:
PHP Code:
<div class="post_field"><dt>UserID</dt> <dd>{vb:raw post.userid}</dd></div>  
That's it!

Make sure to do this with all of your styles if you have multiple. Some coding may be different because of the Style your forum is using.

The above is to get the end result to be just like the attachment picture. You may post the code anywhere in the postbit_legacy as long as you know what you are doing.

Comment if you have any questions, comments, or problems and I will try and respond as soon as possible.

Updates
4.1.7 Forum
Installation:
Log in to the adminCP on your site.

Go to Styles & Templates => Style Manager => Edit Templates => Postbit Templates => Postbit_Legacy

Find:

PHP Code:
<dl class="userinfo_extra">  
Under Add:
PHP Code:
<dt><b>Group</b></dt> <dd>{vb:raw post.displaygrouptitle}</dd>
<
dt><b>UserID</b></dt> <dd>{vb:raw post.userid}</dd>  
What Was Updated in 4.1.7?
  • The div tags needed to be taken off due to forum updates on postbit legacy
  • Usergroup is now in Postbit
  • Tested and working with Exaltic Skins (Concept9), CompleteVB Skins (ShinyBlue), MysticDigital Skins (Aftermath), and Emitition Studios Skins (Simply Green)





Share this article :
 

Copyright © 2013. AFSWA - All Rights Reserved