The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What line to add to postbit_legacy to show member reg #
We upgraded from UBB a while back which had the sequential member number & in looking at this site, it looks possible to get it back using vBulletin with a bit of mod.
Can someone post a get member/ reg number for the post bit of 3.0 RC4? I'll have a go myself later. Thanks. |
#2
|
||||
|
||||
userid i assume? in your postbit template put #$post[userid] where you want it displayed.
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
I found $post[userid] already in postbit template.
Perhaps I am not explaining it right. For example, I am member number 20278 on this forum, I would like the member number to appear underneath the user ranks but above the date joined. |
#5
|
|||
|
|||
That is the correct variable. $post[userid] is seen quite a few times in the postbits because it is part of urls generated in the postbit and also part of 'if conditionals'
nowhere is there just $post[userid] by itself. It works, trust them. |
#6
|
|||
|
|||
Add
Member No.:</b> $post[userid] under this code <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if> Like that <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if> Member No.:</b> $post[userid] That's it.... |
#7
|
|||
|
|||
You guys were very right, thankyou!
For anyone else searching threads like I did before posting, to show the member registration number when a forum member posts add the following to the postbit_legacy template (for vertical view) before this : Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</if></div> ADD this: Code:
<if condition="$post['userid']"><div>$vbphrase[user_id]: $post[userid]</if> Varname: user_id Text: I wrote "Member #" but it can be what ever you wish. That is it. See it working here: http://www.aussiefrogs.com/forum/sho...9982#post99982 Cheers |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|