RevCMS Referral system

Results 1 to 5 of 5
  1. #1
    Valued Member Noman is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    137Posts

    config RevCMS Referral system

    Hi Ragezone,

    If anyone could work out a PHP code or something that'll work on registration for RevCMS, for example they register and they can fill out a box if they've be referred by a player, so they place the Username in and then that Player get's a certain amount of credits for referring.

    If anyone could come up with a script or something, that'll be great.

    Thanks.


  2. #2
    Im Back! PythoneX12 is offline
    MemberRank
    Sep 2010 Join Date
    634Posts

    Re: RevCMS Referral system

    Add my skype: hotrichman21

    Ill code one up for ya

  3. #3
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: RevCMS Referral system

    Sigh. Why not try yourself and tell us the problems you run into?

  4. #4
    Valued Member Noman is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    137Posts

    Re: RevCMS Referral system

    Quote Originally Posted by tdid View Post
    Sigh. Why not try yourself and tell us the problems you run into?
    I'm not good at it that's why.

  5. #5
    I don't even know azaidi is offline
    MemberRank
    Apr 2010 Join Date
    the NetherlandsLocation
    2,065Posts

    Re: RevCMS Referral system

    First add an extra copy pasted box from the other fields like the username etc and change name="username" to name="ref".

    Create a PHP script that checks if the box ($_POST['ref']) isn't empty, the username exists and the username isn't from the same IP.
    If it isn't, give it credits (query = "UPDATE users SET credits = credits + 50 WHERE username = '".$namevar."' LIMIT 1").

    If you know some coding basics, you know what to do with my advice.



Advertisement