vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - [Chris] My Account (Sell Credits) (https://vborg.vbsupport.ru/showthread.php?t=290468)

Christos Teriakis 11-09-2012 11:00 PM

[Chris] My Account (Sell Credits)
 
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

TheSupportForum 11-10-2012 04:36 PM

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 ?

Christos Teriakis 11-10-2012 04:44 PM

Quote:

Originally Posted by TheSupportForum (Post 2380016)
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

Fatal Hazard 11-11-2012 05:47 PM

When I open myaccount/paypallog.txt it shows up as empty. Is this right?

Christos Teriakis 11-11-2012 06:01 PM

Quote:

Originally Posted by Fatal Hazard (Post 2380320)
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

ibrahimkoky 11-11-2012 06:37 PM

tagged for later. :)
was looking for some like this.

bold 11-13-2012 09:45 AM

I'll be looking forward to the pro version

v123shine 11-19-2012 03:41 AM

excellent plugin.

Thank you ChrisTERiS

Fatal Hazard 12-02-2012 08:30 PM

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.

Christos Teriakis 12-03-2012 05:38 AM

Quote:

Originally Posted by Fatal Hazard (Post 2387795)
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

Fatal Hazard 12-16-2012 07:01 PM

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.

Christos Teriakis 08-11-2013 05:15 PM

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


All times are GMT. The time now is 05:36 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.01253 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete