1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on Credits Per Referral

Discussion in 'Resource and Add-on Requests' started by Marco Mertins, Jul 14, 2013.

  1. Marco Mertins

    Marco Mertins New Member

  2. Akinak

    Akinak Well-Known Member

    This is not difficult, you need to create a action in credits add-on via ACP, and add 3 line in
    class Ragtek_Invite_ControllerPublic_Register

    was:
    Code:
     if ($referrerId) {
      $this->getModelFromCache('Ragtek_Invite_Model_Invite')->setReferrer($user['user_id'], $referrerId);
      }
    A becomes:

    Code:
                    if ($referrerId) {
                        $this->getModelFromCache('Ragtek_Invite_Model_Invite')->setReferrer($user['user_id'], $referrerId);
    
                        $credits = $this->getModelFromCache('*******_Credits_Model_Credit');
                        $action = 'type here name of action, which You create in ACP';
                        $credits->updateUserCredit($action, $referrerId);
                    }
     
  3. Marco Mertins

    Marco Mertins New Member

    Thank you!
    But where can I create new actions? At "list actions" there is only "Import Action" / "Export Action", but no "create new action".
     
  4. Akinak

    Akinak Well-Known Member

    In Cretins/Add action
    admin.php?credits/add-action
     
  5. Marco Mertins

    Marco Mertins New Member

    OK, thanks!
     
  6. Chris Grigg

    Chris Grigg Member

    What about only giving credits for referrals that have made an X amount of posts?
     
  7. Wesker

    Wesker Active Member

    I believe this is supposed to be added to his Credits Premium Mod he was supposed to launch last week
     

Share This Page