sitemap  |  contact

Sakic.Net Forum
06 October 2008, 16:26 *
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: Add user to database?  (Read 10962 times)
ravage
Newbie
*
Posts: 3


View Profile
« on: 19 June 2007, 11:37 »

Hello Emir,

First of all, thanks for Vodes.
I use Vodes on my site and it's working like a charm Smiley
And although I am a php newbie, most of the vodes code was clear to me.


However, I am struggling with 1 thing.
When a new user does a signup, I want to add him automatically to vodes_credits (with 10 credits) , but cant figure out how to do this.
I looked through the vodes.php millions of times and think that it must be there somewhere between line 248 and 277.
(All I get is empty database fields with that piece of code, it's working perfect with paypal though))

I know the purpose of Vodes is to implement it yourself, but I hope you can give me a hint?

Thanks,
Ravage
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,231


View Profile WWW
« Reply #1 on: 19 June 2007, 19:37 »

Well if you want to add credits to users on signup you would have to trigger it from the core registration component.

So just add the code to add credits somewhere in registration.php
Logged

ravage
Newbie
*
Posts: 3


View Profile
« Reply #2 on: 19 June 2007, 20:48 »

Hello Emir,

Thanks for your reply.

I am trying just that.
But maybe I was not clear with my previous message.

A new user does a signup on my site.. ( I use Community builder for that).
After that signup, the user isnt added to the vodes_credits table by default.
I can add that user manually in the backend, but want to add new users automatically in the _vodes_credits table.

I know that vodes can do it with a paypal payment, so I looked at this part
in vodes.php and concluded that it must be this part?

Code:
} else {
                            $query = "INSERT INTO #__vode_credits VALUES (
                                '',
                                '$row2->id',
                                '$credit'
                                )";
                            $database->setQuery($query);
                            $database->query();
                        }

But when I add (and more from the paypal part) this to the registration core, only an empty field is added.
So now I hope you can give me a hint about what I am doing wrong.

(btw , when I just add the code to add credits, No user is made in vodes_credits)

Thanks,
Ravage
Logged
Saka
Administrator
Hero Member
*****
Posts: 1,231


View Profile WWW
« Reply #3 on: 19 June 2007, 21:12 »

Then you are doing something wrong. That's the hint and the way it should work.
I can't give you exact code and debug it for you, no time for that. It something that's done on custom bases for a fee, sorry.
Logged

ravage
Newbie
*
Posts: 3


View Profile
« Reply #4 on: 19 June 2007, 22:34 »

Hello Emir,

Well thanks anyway, I will try harder.

Logged
Pages: [1]
  Print  
 
Jump to: