Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 11-10-2012, 04:36 PM
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Posts: 1,158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellent, does this work with [DBTech] vBCredits II Deluxe
i have been waiting for this project to be released

if i wanted to sell credits will it add onto their current credit points ?
Reply With Quote
  #3  
Old 11-10-2012, 04:44 PM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheSupportForum View Post
excellent, does this work with [DBTech] vBCredits II Deluxe
i have been waiting for this project to be released

if i wanted to sell credits will it add onto their current credit points ?
The PRO version only and not only for vBCredits, but any current or furthure addon. In Admincp will be a list where the admin will adds 2 values:
  1. Table name
  2. Field name
You can have as many records you want. Each record means an update. So after a successfull payment my addon will updates ALL tables in that list.

Just as a help, the most popular addons (including vBCredits) will be preset on this list. So you don't have to do anything.

Chris
Reply With Quote
  #4  
Old 11-11-2012, 05:47 PM
Fatal Hazard's Avatar
Fatal Hazard Fatal Hazard is offline
 
Join Date: Oct 2012
Location: Southampton, UK
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I open myaccount/paypallog.txt it shows up as empty. Is this right?
Reply With Quote
  #5  
Old 11-11-2012, 06:01 PM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fatal Hazard View Post
When I open myaccount/paypallog.txt it shows up as empty. Is this right?
This file logs only errors. In successful transactions does not writes anything.

Chris
Reply With Quote
  #6  
Old 11-11-2012, 06:37 PM
ibrahimkoky ibrahimkoky is offline
 
Join Date: Apr 2012
Location: California
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged for later.
was looking for some like this.
Reply With Quote
  #7  
Old 11-13-2012, 09:45 AM
bold bold is offline
 
Join Date: Oct 2004
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll be looking forward to the pro version
Reply With Quote
  #8  
Old 11-19-2012, 03:41 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellent plugin.

Thank you ChrisTERiS
Reply With Quote
  #9  
Old 12-02-2012, 08:30 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 followed the installation instructions but the My Account drop down in the admin cp does not show and also there is no usergroup permissions that are visible. I haven't been given any errors so I don't know what I have done wrong.
Reply With Quote
  #10  
Old 12-03-2012, 05:38 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fatal Hazard View Post
I have followed the installation instructions but the My Account drop down in the admin cp does not show and also there is no usergroup permissions that are visible. I haven't been given any errors so I don't know what I have done wrong.
Most probably you uploaded the files in wrong directory. If this is not the issue try to refresh the page.

Chris
Reply With Quote
Reply


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 02:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07194 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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