shak_attack
Tue 7th Dec '04, 3:06pm
I am creating a downloads site which works off vBulletin user information.
On the front page of my site, visitors see a download link. When they click it they are prompted to enter their vBulletin forum username + password. Once they enter it I need some sort of script to use the username + password given and check that username's usergroup. If its in say the "donators" group they are transferred to downloads.php. If the user is in another group they are transferred to sorry.php. If the username + password is incorrect, they are transferred to retry.php
See what I mean? I need a script which can retrieve a user's usergroup from the SQL database of the forum, then it takes the information and uses an IF parameter to decide what to do with it.
If you dont understand then just ask me, I don't really know how to explain it better.
Also, im a newbie at PHP, I only know very basic things and next to nothing about SQL, so go easy :)
On the front page of my site, visitors see a download link. When they click it they are prompted to enter their vBulletin forum username + password. Once they enter it I need some sort of script to use the username + password given and check that username's usergroup. If its in say the "donators" group they are transferred to downloads.php. If the user is in another group they are transferred to sorry.php. If the username + password is incorrect, they are transferred to retry.php
See what I mean? I need a script which can retrieve a user's usergroup from the SQL database of the forum, then it takes the information and uses an IF parameter to decide what to do with it.
If you dont understand then just ask me, I don't really know how to explain it better.
Also, im a newbie at PHP, I only know very basic things and next to nothing about SQL, so go easy :)