The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show user ID# on profile
Any way to show the user's ID# on their profile page? Viewable only by admins, of course.
|
#2
|
|||
|
|||
The User ID is publicly visible in multiple places in your forum. In particular it's already visible in the URL of the member profile and any place you hover over a username.
Example: https://vborg.vbsupport.ru/member.php?u=480258 There's your userid, right there in the URL of your profile. If you click on your username in your post you can also see your userid in every one of the drop down options, because it's a parameter of nearly anything that involves you. Your user ID is neither secret, nor hard to obtain. What exactly are you trying to accomplish that you don't already have? |
Благодарность от: | ||
My Hattiesburg |
#3
|
|||
|
|||
Dang, that's one of those things that "if it had been a snake it would have bit me".
|
#4
|
|||
|
|||
If you really want to do this (regardless of what Eosian said)
Go into your MEMBERINFO template Find $vbphrase[edit_user_profile] You should see Code:
<if condition="$show['edit_profile']"> <li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li> </if> Code:
<li class="thead">$prepared[username]'s UserID: $prepared[userid]</li> Code:
<if condition="$show['edit_profile']"> <li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li> </if> <li class="thead">$prepared[username]'s UserID: $prepared[userid]</li> Code:
<li class="thead">UserID: $prepared[userid]</li> (note: that's for VB3.8, not sure about the latest version, if you're using vB4, but it might still work) |
Благодарность от: | ||
My Hattiesburg |
#5
|
|||
|
|||
As the userID is not a real secret I added this info to my postbit_legacy template and used this expression. Code is for vB4:
Code:
<div class="bppostbit">UserID: {vb:raw post.userid}</div> |
#6
|
|||
|
|||
hey guys, I just visited this thread and made some adjustments to make this work for vb4.2.0 pl 3 today. Here's how to add member numbers to your member profile.
Edit MEMBERINFO template. Find "edit_user_profile" Below that, find "userinfo" Add this to the list: Code:
<br>Member #CZCC-{vb:raw prepared.userid} Member #CZCC-235234 Hope this helps someone else. Thanks for the other tips! |
Благодарность от: | ||
My Hattiesburg |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|