Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
[Chris] My Account (Sell Credits) Details »»
[Chris] My Account (Sell Credits)
Version: 1.0.0, by Christos Teriakis Christos Teriakis is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 4.2.0 Rating:
Released: 11-09-2012 Last Update: Never Installs: 10
DB Changes Uses Plugins Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.

My Account (Sell Credits)
by ChrisTERiS



Please note that from
11 Aug 2013
you can get support only in my site
http://www.teriakis.com



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
  1. Open file myaccount/paypallog.txt and edit line 9 adding the full path to this file.
  2. Upload all files from upload folder to the folder where your vBulletin 4.2 is installed
  3. CMOD 666 the file myaccount/paypallog.txt
  4. Login to your admincp and import the file product-myaccount.xml
  5. Set Usergroup permissions
  6. Set General Options according to your needs
  7. If you want modify PM templates but don't touch anything between {}
3.- Requiremenets
  1. Installed and fully operating vBulletin
  2. vBulletin version 4.2 (minimum)
  3. 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:
  1. Discount Coupons
  2. Offline Payments
  3. Admin can manually adds credits to user
  4. PDF Invoices
  5. Sales Reports
  6. "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:
  1. Market: For Selling Downloadable products and/or Services
  2. Community: For selling forum posts, blog posts etc
  3. HelpDesk: For selling support tickets
  4. 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":
  1. The variable that holds the available credits is: $vbulletin->userinfo["myaccount_balance"];
  2. If you want to update the balance use the field myaccount_balance at user table
  3. 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Draffi, Fatal Hazard

Comments
  #12  
Old 12-16-2012, 07:01 PM
Fatal Hazard's Avatar
Fatal Hazard Fatal Hazard is offline
 
Join Date: Oct 2012
Location: Southampton, UK
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed it perfectly but how do I set what my members can buy with the credits as at the moment all they can do it buy the credits and do nothing else.
Reply With Quote
  #13  
Old 08-11-2013, 05:15 PM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please note that from 11 Aug 2013 you can get support only in my site
http://www.teriakis.com
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07748 seconds
  • Memory Usage 2,218KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (2)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete