UBB.Dev
Posted By: salim Searching by User ID? - 03/04/2003 3:42 AM
Is there a way I can search by user ID and get the user loggin name?
Posted By: JoshPet Re: Searching by User ID? - 03/04/2003 3:46 AM
SELECT U_LoginName
FROM w3t_Users
WHERE U_Number = xxx
Posted By: salim Re: Searching by User ID? - 03/04/2003 3:53 AM
aha and where should I put that command and where the results appear
Posted By: JoshPet Re: Searching by User ID? - 03/04/2003 3:58 AM
Under the admin menu.. into SQL Queries.
Posted By: salim Re: Searching by User ID? - 03/04/2003 4:10 AM
I knew that, but I just realized that I get the results there as well Thanks buddy
Posted By: RandyJG Re: Searching by User ID? - 03/04/2003 4:56 AM
You can also plug the number in for the profile page:

example: http://yourdomain/ubbthreads/showprofile.php?Cat=&User=###

This won't require being Admin to check...and you can click on another user to load a profile and edit the URL quite easily.
Posted By: salim Re: Searching by User ID? - 03/04/2003 5:15 AM
Hmmm now why didnt I thought of that LOL. You guys are just too much for me . Thanks
Posted By: JoshPet Re: Searching by User ID? - 03/04/2003 5:17 AM
That won't show you "login name" if you need that. The public profile will only show you display name.
Posted By: salim Re: Searching by User ID? - 03/04/2003 5:22 AM
Actually, between you and I. I was going through the messages in PHPMYADMIN, but you see the tables only shows User ID sender and receiver. You can imagin how difficult for me to know who is who, so now I know, even if its display name
Posted By: RandyJG Re: Searching by User ID? - 03/04/2003 5:56 AM
Oh that's true Joshpet...

In that case...just edit any user you can find and switch the ID for the id you want. By the time you've done that you could have typed out the SQL though...
Posted By: dimopoulos Re: Searching by User ID? - 03/16/2003 2:35 AM
Salim,

If you want to see who posted what the query you need to run in phpmyadmin:

SELECT P.B_Board, ........ , U.U_Username
FROM w3t_Posts P, w3t_Users U
WHERE P.B_Posterid = U.U_Number

This will show you the username instead of the user number
Posted By: Dave_L_dup1 Re: Searching by User ID? - 03/16/2003 2:59 AM
I'm wondering whether it would be ethical for me to post my super-duper query for peeking at PMs.
Posted By: JoshPet Re: Searching by User ID? - 03/16/2003 3:16 AM
he he

I sometimes peek at the PMs on my board too. Sometimes ya gotta keep tabs on what's going on.
Posted By: omegatron Re: Searching by User ID? - 03/16/2003 4:51 PM
Don't feel alone Josh I do the same
Posted By: dimopoulos Re: Searching by User ID? - 03/16/2003 9:13 PM
For me there is no need (yet) cause like I said before we are only 80 users. But for other boards quite big in number of users and in a quite competitive environment some admins can be "excused" for peeking at the PM's to see if their users are advertising other boards.
© UBB.Developers