Advertisement:

Author Topic: classified Website Referral Program Scheme  (Read 2567 times)

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
classified Website Referral Program Scheme
« on: January 02, 2012, 08:15:06 pm »
Idea to improve site traffic

below idea will encourage the user to share our website to others to increase the site traffic

On every successful registration using the below link, user will get a Referral Point or money.

http://example.com/user/register?ref=11152

   or

including text box on registration form named as referel id

showing top earners on homepage sidebar

Avoid fake registration to get points or money(
Record registrator ip and distinct the ip address and then finalize the point)




ingo

  • Full Member
  • ***
  • Posts: 216
Re: classified Website Referral Program Scheme
« Reply #1 on: January 02, 2012, 10:33:34 pm »
great idea,

I prefer Point assessment,
is it kind of plugin that we need to realize this assessment?




RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: classified Website Referral Program Scheme
« Reply #2 on: January 10, 2012, 07:38:17 pm »
I am going to make this feature as plugin.

But i have a confusion how to get the ref param and store into database.

If anyone have idea how to get param and store into db.

Plz Share your opinion.

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: classified Website Referral Program Scheme
« Reply #3 on: January 16, 2012, 09:03:43 pm »
I think that it's a good idea!!! Nice way to encourage users to bring more users to your site.

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: classified Website Referral Program Scheme
« Reply #4 on: January 19, 2012, 12:21:42 pm »
during registration how can i add the extra hidden field to store the value to db

i.e ip and ref-id

developers welcome
« Last Edit: January 19, 2012, 12:24:21 pm by RajaSekar »

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: classified Website Referral Program Scheme
« Reply #5 on: January 19, 2012, 12:37:21 pm »
Hi, @RajaSekar, 
Code: [Select]
osc_run_hook('user_register_form') ;  is located at user-register.php
Regards

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: classified Website Referral Program Scheme
« Reply #6 on: January 19, 2012, 06:37:06 pm »

@garciademarina

thanks for your quick help

i have created the form using user_register_form hook

Code: [Select]
<?php
$ref  
'';
if(
Params::getParam('ref') != ''){
$ref Params::getParam('ref');
}
?>

<input type="hidden" name="ip" value="<?php echo $_SERVER['REMOTE_ADDR'?>" />
<input type="hidden" name="ref" value="<?php echo $ref ?>" />

But i don't no how to save into db if the registration is sucess

plz help me to make this as plugin

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: classified Website Referral Program Scheme
« Reply #7 on: January 19, 2012, 06:46:43 pm »
Hi,
@RajaSekar,
with hook user_register_form you can add inputs to the form,
with hook before_user_register you can fetch their value, before user creation.
And finaly with osc_run_hook('user_register_completed', $userId) ; you can save it or whatever you want :)

Regards

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: classified Website Referral Program Scheme
« Reply #8 on: January 19, 2012, 07:08:54 pm »

thanks i will try

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: classified Website Referral Program Scheme
« Reply #9 on: January 19, 2012, 08:32:05 pm »

@garciademarina

It works

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: classified Website Referral Program Scheme
« Reply #10 on: January 19, 2012, 08:36:09 pm »
Great to hear, I'm glad I helped
Regards

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்
Re: classified Website Referral Program Scheme
« Reply #11 on: January 21, 2012, 07:39:47 pm »

If anyone interested to make this as plugin

Incomplete plugin has been attached here
« Last Edit: January 25, 2012, 10:04:56 pm by RajaSekar »

RajaSekar

  • Hero Member
  • *****
  • Posts: 791
  • ராஜசேகர்