Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2012, 05:25 PM
My Hattiesburg My Hattiesburg is offline
 
Join Date: Jun 2012
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Show user ID# on profile

Any way to show the user's ID# on their profile page? Viewable only by admins, of course.
Reply With Quote
  #2  
Old 09-11-2012, 06:16 PM
Eosian Eosian is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Благодарность от:
My Hattiesburg
  #3  
Old 09-12-2012, 04:07 PM
My Hattiesburg My Hattiesburg is offline
 
Join Date: Jun 2012
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dang, that's one of those things that "if it had been a snake it would have bit me".
Reply With Quote
  #4  
Old 09-14-2012, 02:34 PM
CoffeeLovesYou CoffeeLovesYou is offline
 
Join Date: Feb 2010
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
					</if>
Below that, add;
Code:
<li class="thead">$prepared[username]'s UserID: $prepared[userid]</li>
So it should now say;

Code:
<if condition="$show['edit_profile']">
						<li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
					</if>
<li class="thead">$prepared[username]'s UserID: $prepared[userid]</li>
If you want it to just say UserID: # instead of My Hattiesburg's UserID: #, use this code.

Code:
<li class="thead">UserID: $prepared[userid]</li>
Enjoy.

(note: that's for VB3.8, not sure about the latest version, if you're using vB4, but it might still work)
Reply With Quote
Благодарность от:
My Hattiesburg
  #5  
Old 09-17-2012, 05:46 AM
qpurser qpurser is offline
 
Join Date: Jul 2011
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 03-09-2013, 03:47 PM
Gholsie Gholsie is offline
 
Join Date: Nov 2001
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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}
In my case, I am adding "Member #CZCC-" to the description before the number shows. So, my users will ultimately see this:

Member #CZCC-235234

Hope this helps someone else. Thanks for the other tips!
Reply With Quote
Благодарность от:
My Hattiesburg
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03624 seconds
  • Memory Usage 2,222KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (3)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete