The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
This is a tricky one... but how do i...?
If anyone could help me I would appreciate it massively.
This has been keeping me awake for 3 nights. (I'm a complete beginner out of my depth with php and vB) First thing is that I need is to create a new variable called $token and I will manually fill the database with 1000+ 5 digit codes for this variable. I will also be adding more as the tokens are used up. I would then like to be ablle to place a bit of code anywhere on the site that will then show 1 of these token codes at random. (ie/ If I want a random token code to display at the FORUM HOME I would place the code there) Second thing is that I already have a php page running which feeds off a form. I would like the user to be able to input this 'token code' into the form and for the code to be removed from the database (so that it will never be displayed again in the places where I'm showing random 'token codes' because it has been used. If the code they enter into the form doesn't exist in the database then I would need them to get a message saying that the token isn't valid and stop the posting of the other variables on the form. Third thing is that the token codes are quite valuable and so they need to be pretty secure. For example If the code that I'm placing in parts of the site can be spoofed and used after I removed the code then this would be a problem. I'm not sure if that is too confusing. The main bits that I can't do are display a variable at random from the database with a bit of code, and also have this 'token code' be removed from the database after it has been passed through a php page. Please help if you can, good KARMA to all who can... :squareeyed: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|