View Full Version : Checking Usernames?
DaPro
12-22-2009, 12:39 PM
Is it possible to have an outside (non-vb4) script check the SQL database to see if a username exists and then based off a Yes/No scenario, change the usergroup of that said username to something else?
--------------- Added 1261570377 at 1261570377 ---------------
No one has any idea how to do this :(?
James Birkett
12-23-2009, 01:39 PM
I'm confused as to what you're asking..
You want an external script to check if a username exists, then you want to change the usergroup of that username to something else?
So if the username "John" exists, you'd want to change John's usergroup to something else?
DaPro
12-23-2009, 01:45 PM
Basically, I want the ability to have a script that exists in my billing system for clients who registered on the forums. I created a usergroup that gives them access to special forums. I want them to activate this usegroup through an external script within the billing system so I don't have to manually verify them.
BBR-APBT
12-23-2009, 02:05 PM
Well they would be logged in when they finish the form for paying or what ever you would just have a SQL statement something like
UPDATE "user" SET usergroup='10' WHERE userid = '" . $userid . "');
You will have to edit this with your code and variables.
DaPro
12-23-2009, 04:33 PM
That part I think I have down, but its the part of searching through the user row and creating a function that finds a user.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.