View Full Version : What line to add to postbit_legacy to show member reg #
gibgib
03-18-2004, 06:02 PM
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.
Sebastian
03-18-2004, 08:15 PM
userid i assume? in your postbit template put #$post[userid] where you want it displayed.
userid i assume? in your postbit template put #$post[userid] where you want it displayed.
Looks like a typo there, $post[userid] is the correct var. Stick it anywhere within the postbit or postbit_legacy template.
gibgib
03-19-2004, 05:22 AM
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.
imported_Vigile
03-19-2004, 09:14 AM
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.
btekcan
03-19-2004, 07:47 PM
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....
gibgib
03-20-2004, 10:22 AM
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 :
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</if></div>
ADD this:
<if condition="$post['userid']"><div>$vbphrase[user_id]: $post[userid]</if>
Next click on phrase manager & add new phase.
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/showthread.php?p=99982#post99982
Cheers :cool:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.