Shouldnt be to difficult.
If you have tinyportal installed, we could make a quick go at it and see how it works out.
If not, no matter
In saying this thou, currently I dont have enough time to write it for you,
but I'm more then happy to help you write it.
Couple of questions:
How would your users obtain said voucher?
And how about, when they input a valid voucher how about just give them an item. Then the item could be anything.
Also would make the mysql table small(id, voucher, itemid)
Thaks For Your Reply Feeble,
Unfortunately I Do Not Have TinyPortal Installed On My SMF Forum As I Have A Joomla Installation Acting As The Main Portal Frontend... But If It Can Be Written So That Users With TinyPortal Installed Can, Say Have A Block Code So That They Can Just Type In The Code And The Voucher Will Be Redeemed I Will Be More Than Happy To. Now To Answer Your Questions:
1) The User Would Not Buy The Voucher,,,,,,, In The SMF Backend There Could Be A Page That Allows The Admin (Or Anyone With Permissions) To Create A "Voucher" And Specify The Amount Of Credits That That Voucher (Very Much Like A Cheque) Is Worth / The Item That WIll Be Given To The User When The Voucher Is Redeemed.
So For Example,
i) The Forum Admin Could Create A "Voucher" Worth 1000 Credits (Or Whatever The Forum Currency Is)
ii) The User Who Needed The Voucher (Or Has Earned It In An Event Or Competition) Could Receive A Personal Message (Does Not Have To Be Automated) With The Voucher Code (Like A Random String Of Numbers Or Letters, e.g f65hglkdf)
iii) Once The User Has Received The Personal Message Or Whateva.... They Could Enter The Shop And Click On A Link (For Example, Voucher Redemption)
iiii) The User Then Enters The Voucher Code And Whatever The Admin Has Specified That Voucher Being Worth (i,e Credit Value Or Item Value) Would Be Added To The User's Items Or Bank (Must Be Specifiable)
2) I Like The Idea Of The Voucher Redeeming An Item But For My Usage I Would Like It To Be Either A Credit Value Or An Item Value As This Would Allow It To Be Very Diverse Even Though It Will Make The MySQL Table Bigger. This Would Most Possible Be (id, voucher_code, credit_value, bank_hand, itemid)