The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Member number in profile
Is there any way to add a the member number of the user to their profile. Say a member signs up and is 301 can you add that somewhere in his profile?
|
#2
|
||||
|
||||
You would need to do it manually, like in a template edit. Depending on which template you add it to, it's probably either {vb:raw userinfo.userid} or {vb:raw prepared.userid}
|
#3
|
||||
|
||||
I tried this and it don't work. Any ideas.
<vb:if condition="$post['membernumber']"><dt>{vb:rawphrase member_number}</dt> <dd>{vb:raw post.userid}</dd></vb:if> |
#4
|
||||
|
||||
In profile you need to use prepared.userid, not post.userid (which is for postbit).
|
#5
|
||||
|
||||
So like this? I tried it and it don't work.
<vb:if condition="$post['membernumber']"><dt>{vb:rawphrase member_number}</dt> <dd>{vb:raw prepared.userid}</dd></vb:if> |
#6
|
||||
|
||||
As Cellarius said, $post is not a valid variable there. What is $post[membernumber] supposed to be? Don't you mean something more like $prepared['userid']?
|
#7
|
||||
|
||||
I think I'm a tard, lol. So how would I write that to get it to worK?
|
#8
|
||||
|
||||
Maybe something like:
<vb:if condition="$prepared['userid']"><dt>{vb:rawphrase member_number}</dt> <dd>{vb:raw prepared.userid}</dd></vb:if> Have you even tried it without the condition to see if that part is correct? |
#9
|
||||
|
||||
I just tried it and it didn't work. Pulling my hair out, lol.
|
#10
|
||||
|
||||
Try...
Code:
<vb:if condition="$prepared['userid']"><dt>{vb:rawphrase member_number}</dt> <dd>{vb:raw userinfo.userid}</dd></vb:if> Edit: Yeap and to confirm, it's what Lynne mentioned above in post #2. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|