Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sakae

Pages: [1]
1
Coding / Re: How to get credits for Referrals (Using Referrals Mod)
« on: June 22, 2009, 10:30:56 am »
I dont find it...

Here is my code of register.php

Quote
   // Referrals Mod
   // If they emptied it, don't do referral information
   if(!empty($_POST['referredby']))
   {
      // We may need this
      global $context, $sourcedir;
      require_once($sourcedir . '/Referrals.php');

      // If there was a referrer, is it the same one
      if(!empty($context['referrals']) && strtolower($_POST['referredby']) == strtolower($context['referrals']['referred_by_name']))
      {
         $referrer = (int) $context['referrals']['referred_by_id'];
         $regOptions['extra_register_vars']['referred_by'] = $referrer;
         $regOptions['extra_register_vars']['referred_on'] = (int) $context['referrals']['referred_timestamp'];
         $referral = 1;
      }
      else
      {
         // No they changed it, so we've got to find this user
         $referrer = checkReferrerExists($_POST['referredby'], 'name');
                  
         // Referrer by that name not found, so fatal error and force them to check (its better than ignoring it)
         if(empty($referrer))
            fatal_lang_error('referrals_referrer_not_found', false);

If you use SMF 2.0 RC1, it's on Sources/Load.php

2
Items / Re: ARCADE - SMF2 (Beta 4, RC1, +)
« on: June 22, 2009, 03:39:26 am »
Looking forward this too!

3
Items / Re: New Item: Add membergroup
« on: June 21, 2009, 06:55:46 am »
Does this item works on new SA Shop for SMF 2.0 (since I know it's based on this MOD)?

Pages: [1]