The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Showing user number in profile and postbit
I need a simple way to give members of my forum a membership number. The best, easiest way I can think of is to use the number the Vbulletin assigns the user.
Is there a simple way to display the users number in the postbit (under the join date maybe?) and in their profile page? |
#2
|
||||
|
||||
Using the default style on my dev site, I added the following (in red) to the postbit_legacy template:
Code:
<dl class="userinfo_extra"> <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if> <dt>User ID Number</dt> <dd>{vb:raw post.userid}</dd> <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if> <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if> <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd> {vb:raw template_hook.postbit_userinfo_right_after_posts} </dl> Because that block of code is already within a vb conditional depending on the existence of the userid, there was no need to wrap the additional code with the same conditional. |
2 благодарности(ей) от: | ||
Black Snow, mattltm |
#4
|
||||
|
||||
Quote:
Code:
<span id="userinfo"> <span class="member_username">{vb:raw prepared.musername}</span> <span class="member_status">{vb:raw prepared.onlinestatus}</span> <vb:if condition="$prepared['userid']"> <br /> <span style="font-weight: normal">User ID Number: {vb:raw prepared.userid}</span> </vb:if> <vb:if condition="$prepared['usertitle']"> <br /> <span class="usertitle">{vb:raw prepared.usertitle}</span> </vb:if> |
#5
|
||||
|
||||
Perfect!
You are a superstar |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|