My Account (Sell Credits)
by ChrisTERiS
an AddOn which does a lots, or ...nothing !!
by ChrisTERiS
an AddOn which does a lots, or ...nothing !!
1.- What it does?
Unlike other point system here the mod does NOT adds points or awards to users according to their activity in forums, but instead, it helps webmasters to SELL CREDITS to users (PayPal IPN is supporting). Then what the users will do with these credits is up to you. You can sell access to your site or anything else. Please note that this is a BACKEND ONLY system which takes cares only for promoting and selling credit packages.
2.- Installation
- Open file myaccount/paypallog.txt and edit line 9 adding the full path to this file.
- Upload all files from upload folder to the folder where your vBulletin 4.2 is installed
- CMOD 666 the file myaccount/paypallog.txt
- Login to your admincp and import the file product-myaccount.xml
- Set Usergroup permissions
- Set General Options according to your needs
- If you want modify PM templates but don't touch anything between {}
3.- Requiremenets
- Installed and fully operating vBulletin
- vBulletin version 4.2 (minimum)
- Does NOT works with vBulletin 5 Connect
4.- Copyright Link
In all pages there is my copyright link back to my site. Removing it, or making it invisible is strictly prohibited.
5.- PRO version
I'm working on the PRO version as I'll use it on my site. In addition it will has:
- Discount Coupons
- Offline Payments
- Admin can manually adds credits to user
- PDF Invoices
- Sales Reports
- "My Balance" in the user side with history of credits/debits
6.- AddOn Modules
I wrote this AddOn mostly for my own use. That's why I'll release AddOns using the Credit System:
- Market: For Selling Downloadable products and/or Services
- Community: For selling forum posts, blog posts etc
- HelpDesk: For selling support tickets
- Questions: This is my Yahoo Answers addon which will heavily modified not only to support posts with credits but also to support user account crediting if the winner is a user.
7.- For Developers
In case that you want to use "My Account":
- The variable that holds the available credits is: $vbulletin->userinfo["myaccount_balance"];
- If you want to update the balance use the field myaccount_balance at user table
- If you want to update the history file then you must insert a record at the table: myaccount_user_balance, using the fields below:
Code:
`id` int(11) NOT NULL auto_increment
`userid` int(11) default '0'
`username` varchar(255) DEFAULT ''
`remarks` varchar(255) DEFAULT ''
`credits` decimal(10,0) default '0'
`price` decimal(10,2) default '0.00'
`invoiceid` int(10) default '0' // Let it empty
`postdate` int(10) default '0'
`gateway` int(11) default '0' // Let it empty
`creditdebit` tinyint(1) default '1' // 1=Credit, 2=Debit
Enjoy it
Christos Teriakis
[DOWN] MyAccountLite_1_0.zip
pass: buidoi.net[/DOWN]