vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   syntax to find a member (https://vborg.vbsupport.ru/showthread.php?t=305964)

pattycake 12-16-2013 06:27 PM

syntax to find a member
 
I can use http://domainname.com/member.php?u=14196
to find a member by their user ID

what syntax would I use to find a user by their username?

mokujin 12-16-2013 06:30 PM

<a href="https://vborg.vbsupport.ru/member.php?username=pattycake" target="_blank">https://vborg.vbsupport.ru/membe...name=pattycake</a>

pattycake 12-16-2013 07:01 PM

thank you

--------------- Added [DATE]1387227859[/DATE] at [TIME]1387227859[/TIME] ---------------

That works great but how about if I am in the admin panel?
Link in admin is:
http://domainname.com/admincp/user.php?do=edit&u=146110

how about same link in the admin cp for username (and/or email address)

Lynne 12-17-2013 03:09 AM

You can't directly link to a user's profile in the admincp with a username or email.

kh99 12-17-2013 12:24 PM

That's true, but you can do this:
Code:

admincp/user.php?do=find&user[username]=pattycake

and it will redirect to the "edit user" page if there is only one user found. You could also add &submit=Exact%20Match to limit it to exact user names (probably what you'd want to do if you're trying to link to a specific user).

Also you should be able to replace user[username] with user[email] to search by email.

If you're writing a php script to do this, you'd obviously want to url encode the user name or email address.

pattycake 12-17-2013 12:48 PM

Quote:

Originally Posted by kh99 (Post 2469006)
That's true, but you can do this:
Code:

admincp/user.php?do=find&user[username]=pattycake

and it will redirect to the "edit user" page if there is only one user found. You could also add &submit=Exact%20Match to limit it to exact user names (probably what you'd want to do if you're trying to link to a specific user).

Also you should be able to replace user[username] with user[email] to search by email.

If you're writing a php script to do this, you'd obviously want to url encode the user name or email address.

PERFECT !! Thats exactly what I needed.

Lynne 12-17-2013 06:30 PM

Quote:

Originally Posted by kh99 (Post 2469006)
That's true, but you can do this:
Code:

admincp/user.php?do=find&user[username]=pattycake

and it will redirect to the "edit user" page if there is only one user found. You could also add &submit=Exact%20Match to limit it to exact user names (probably what you'd want to do if you're trying to link to a specific user).

Also you should be able to replace user[username] with user[email] to search by email.

If you're writing a php script to do this, you'd obviously want to url encode the user name or email address.

Wow, I didn't know that. :)


All times are GMT. The time now is 04:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01143 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete