sitemap  |  contact

Sakic.Net Forum
08 August 2008, 02:47 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Save money on product bundles: http://www.sakic.net/support/order/
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Install was ok now what any manual?  (Read 4360 times)
lexz
Newbie
*
Posts: 1


View Profile
« on: 09 December 2006, 22:19 »

Hello,

I installed Vodes and I managed to test the purchase of credits using the paypal sandbox.
I now would like to know how to configure that the download of an item costs some amount of credits.
I can't find any manual for Vodes.
Hope anyone can help. Thanks in advance.

Regards,

Lexz
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,163


View Profile WWW
« Reply #1 on: 11 December 2006, 20:22 »

With Vodes you can allow users to purchase the credits (vodes) on your site.

The component handles the payments adding the user credits automatically to the database using the PayPal IPN system. It also has administration of the credits and configuration in the backend.

The PayPal Sandbox test mode, automail, error log and change of language are supported.

So, the Vodes component is made ONLY for automatic purchase of credits using PayPal and auto-adding of credits to a user account. It is not made for spending the credits!

The credits are, however, stored in the database and can be used very easily by other components, modules or custom programmed scripts. Therefore the spending part is left for the user to implement in any way he / she needs it.

It could be to vote for articles and polls, donate, finance the development of information goods, access various areas and other purposes of your choice.

Here is the code to use in your components / modules / mambots / custom scripts for spending the credits.

To decrement user's account:

Code:
$database->setQuery( "
UPDATE #__vode_credits
SET credit=credit-1
WHERE userid='$my->id'
" );
$database->query();


To read user's balance:

Code:
$database->setQuery( "
SELECT * FROM #__vode_credits
WHERE userid='$my->id'
" );
$row = null;
$database->loadObject($row);
$balance = $row->credit;
« Last Edit: 11 December 2006, 20:25 by Saka » Logged

adamwil
Newbie
*
Posts: 1


View Profile
« Reply #2 on: 18 June 2008, 01:33 »

How Do I Does This I Am Useing The Add Content Page feature built into the base of joomla 1.5.0
Logged
Pages: [1]
  Print  
 
Jump to: