[RC3] Referral Plus v 1.3.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
fredmeepbob
Registered User
Posts: 25
Joined: Fri Feb 09, 2007 11:09 pm

Post by fredmeepbob » Fri Feb 09, 2007 11:33 pm

thanx im using this mod now..
http://wowguilds.org - professional and cheap world of warcraft hosting and custom site creation. :D

User avatar
angeljs
Registered User
Posts: 49
Joined: Wed Nov 10, 2004 5:34 pm
Location: North East UK
Contact:

Post by angeljs » Sat Feb 10, 2007 5:40 pm

Forgive me for sounding daft, but I've looked all over for the instructions to implement this with pcp and can't find them!
:?

fredmeepbob
Registered User
Posts: 25
Joined: Fri Feb 09, 2007 11:09 pm

Post by fredmeepbob » Sun Feb 11, 2007 8:20 pm

im having trouble ever since i installed it when someone trys to register, after they submit username, pass, etc they get this:
Invalid Session. Please resubmit the form.
is there some file i need to edit??? :?
http://wowguilds.org - professional and cheap world of warcraft hosting and custom site creation. :D

fredmeepbob
Registered User
Posts: 25
Joined: Fri Feb 09, 2007 11:09 pm

Post by fredmeepbob » Sun Feb 11, 2007 8:52 pm

can sum1 plzzz help me out on this
http://wowguilds.org - professional and cheap world of warcraft hosting and custom site creation. :D

GeekyGirl
Registered User
Posts: 29
Joined: Mon Jan 01, 2007 2:54 pm

Post by GeekyGirl » Fri Feb 16, 2007 6:27 am

I installed this on phpbb 2.0.22 with Cash Mod using Easy Mod. I am now getting the following errors when i try to view a profile:

Warning: main(./language/lang_/lang_extend_rp.php) [function.main]: failed to open stream: No such file or directory in /home/scrapuni/public_html/Forum/profile.php on line 35

Warning: main(./language/lang_/lang_extend_rp.php) [function.main]: failed to open stream: No such file or directory in /home/scrapuni/public_html/Forum/profile.php on line 35

Warning: main() [function.include]: Failed opening './language/lang_/lang_extend_rp.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/scrapuni/public_html/Forum/profile.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home/scrapuni/public_html/Forum/profile.php:35) in /home/scrapuni/public_html/Forum/includes/sessions.php on line 377

Warning: Cannot modify header information - headers already sent by (output started at /home/scrapuni/public_html/Forum/profile.php:35) in /home/scrapuni/public_html/Forum/includes/sessions.php on line 378

Warning: Cannot modify header information - headers already sent by (output started at /home/scrapuni/public_html/Forum/profile.php:35) in /home/scrapuni/public_html/Forum/includes/page_header.php on line 554

Warning: Cannot modify header information - headers already sent by (output started at /home/scrapuni/public_html/Forum/profile.php:35) in /home/scrapuni/public_html/Forum/includes/page_header.php on line 556

Warning: Cannot modify header information - headers already sent by (output started at /home/scrapuni/public_html/Forum/profile.php:35) in /home/scrapuni/public_html/Forum/includes/page_header.php on line 557

I see that others have gotten this same error but solved the problem on their own and didn't post the answer. Could someone help me out with this please?
Thanks,
GG

hanebu
Registered User
Posts: 61
Joined: Tue Feb 20, 2007 10:16 pm

Post by hanebu » Wed Feb 21, 2007 11:01 pm

Hi,

i got it it installed, with no problems (by hand), but i ask me:


Where is the Referral-link for the users, to advertise the forum?

The "invite-a-friend" is good, but its also good to make it with banners a.s.o, and a ref.-link.

Can i find this link for each user and display in users Referral-Center?


EDIT:
The link is so:

http://domain.com/forums/profile.php?mo ... refer_id=2

The user need his User-ID.

Where can a user see his user - ID?

EDIT: in the meberlist.


Cheers,
Tommy

errorinside
Registered User
Posts: 1
Joined: Mon Feb 26, 2007 8:50 pm

Post by errorinside » Mon Feb 26, 2007 8:58 pm

hi, i guess you have to be registered on my forum to see what im talking about but there seems to be a little design issue with this mod..

- on the rp_center.php page, the "referral center" and "invite a friend" links are fine, but when i click on "current referrals", first of all it shows me, the admin with 1 referral and i am currently the only member on my forum so i dont see why it counts that as a referral
- also, the table looks bad, it missed the style that the rest of the forum is utilizing

- now on the "current referrals list" link, the table is using some different color schemes i dont even know where it got that from..

Could someone help me figure out how to fix these tables up? I'm a little confused.

Thanks a bunch.

crystal7
Registered User
Posts: 1
Joined: Tue Feb 27, 2007 3:13 pm

Post by crystal7 » Tue Feb 27, 2007 3:20 pm

I am installed it at my forum, but i got error when view user profile
http://goldmoneyforum.com/profile.php?m ... rofile&u=2

Parse error: syntax error, unexpected '}' in /home/buletinl/public_html/goldmoneyforum/includes/template.php(127) : eval()'d code on line 49

please help me.

hanebu
Registered User
Posts: 61
Joined: Tue Feb 20, 2007 10:16 pm

Post by hanebu » Thu Mar 08, 2007 1:51 am

no support for this mod here....? 8O

rick5150
Registered User
Posts: 263
Joined: Wed Feb 02, 2005 6:19 pm

Re: [RC3] Referral Plus v 1.3.0

Post by rick5150 » Thu Mar 22, 2007 6:36 pm

Does anyone else have the problem where the Referral Plus mod uses the name from the e-mail address rather than the "Friend's Name" field.

For example, if I post the name "Rick" in the Friend's Name field, and "rick123theri@xxx.net" in the e-mail field, the e-mail generated will read "Hi rick123theri," rather than "Hi Rick"

I just needed to know where to look to fix this. Is sounds as if it would be easy for anyone who understands this code, but I do not. Any and all help is appreciated.

I think that this is the right file to be looking at, but I have no idea what to do with it.

Code: Select all

hp 
/*************************************************************************** 
 *                           user_rp_viewcenter.php 
 *                            ------------------- 
*  begin               : Monday, July 01, 2005 
 *  copyright           : (C) 2005 MentalMaze 
 *  email               : NA  
 *  Version            : 0.1.8 - 07/18/2005  
 * 
****************************************************************************/ 

/*************************************************************************** 
 * 
 *   This program is free software; you can redistribute it and/or modify 
 *   it under the terms of the GNU General Public License as published by 
 *   the Free Software Foundation; either version 2 of the License, or 
 *   (at your option) any later version. 
 * 
 ***************************************************************************/ 

/************************************************************************** 
*   This file will be used for displaying the Referrals Center 
**************************************************************************/ 

if ( !defined('IN_PHPBB') ) 
{ 
   die("Hacking attempt"); 
   exit; 
} 

if ( empty($HTTP_GET_VARS[POST_USERS_URL]) || $HTTP_GET_VARS[POST_USERS_URL] == ANONYMOUS ) 
{ 
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']); 
} 
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]); 
if (!$profiledata) 
{ 
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']); 
} 

if ( !empty($HTTP_GET_VARS['ruid']) ) 
{ 
    $ruid = intval($HTTP_GET_VARS['ruid']); 
} 
else if (!empty($HTTP_POST_VARS['ruid'])) 
{ 
    $ruid = intval($HTTP_POST_VARS['ruid']); 
} 
// set for switch 
$refer_post = ($lang['Rp_post_amount'] . $board_config['rp_posts_allowed'] . $lang['Rp_post_refer']); 
if ( ($profiledata['user_posts']) >= ($board_config['rp_posts_allowed']) ) 
{ 
   $template->assign_block_vars('switch_user_rp_refer', array()); 
} 
else 
{ 

   $template->assign_block_vars('switch_user_rp_norefer', array()); 
   } 

// Get reward total 
If ( ($board_config['rp_rewards_enable'] == '1') ) 
{ 
   $template->assign_block_vars('switch_user_rp_rewards', array()); 

   $reward = $board_config['rp_reward']; 
   $rp_user = $profiledata['user_id']; 
   $sql = "SELECT $reward AS reward_total 
      FROM " . USERS_TABLE . " 
      WHERE $rp_user = user_id"; 

   if ( !($result = $db->sql_query($sql)) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_reward_total'], '', __LINE__, __FILE__, $sql); 
   } 
    
   $reward_total = array(); 
   $refer_reward_total = $db->sql_fetchrow($result); 
   $refer_reward_total = $refer_reward_total['reward_total']; 
   $db->sql_freeresult($result); 
} 
else 
{ 

   $template->assign_block_vars('switch_user_rp_norewards', array()); 
   } 
// end Get reward total 

// Start Send Email 
   if ( isset($HTTP_POST_VARS['submit']) ) 
   { 
      $error = FALSE; 


      if ( !empty($HTTP_POST_VARS['referemail']) && (strpos($HTTP_POST_VARS['referemail'],"@")>0) ) 
      { 
         $referemail = trim(stripslashes($HTTP_POST_VARS['referemail'])); 
         //if (!$HTTP_POST_VARS['refername']) { $referfriend=substr($referemail,0,strpos($HTTP_POST_VARS['referemail'],"@")); }; 
         } 
         else 
         { 
         $error = TRUE; 
         $error_msg = $lang['Rp_valid_email']; 
         } 

         if ( !$error ) 
         { 
            include($phpbb_root_path . 'includes/emailer.'.$phpEx); 
            $emailer = new emailer($board_config['smtp_delivery']); 

// Set the Email Headers 
            $email_headers = 'From: '. $userdata['username'] .'<'. $userdata['user_email'] .'>' . "\n"; 
            $email_headers .= 'Return-Path: ' . $userdata['user_email'] . "\n"; 
            $email_headers .= 'X-AntiAbuse: Board servername - ' . $server_name . "\n"; 
            $email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n"; 
            $email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n"; 
            $email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\r\n"; 

// Set the Email Data 
            $emailer->use_template('rp_invite_email', $user_lang); 
            $emailer->email_address($referfriend .'<'. $referemail .'>'); 
            $emailer->set_subject(trim(stripslashes($board_config['sitename']))); 
            $emailer->extra_headers($email_headers); 

// Assign the vars for Email 
            $emailer->assign_vars(array( 
               'SITENAME' => $board_config['sitename'], 
               'BOARD_EMAIL' => $board_config['board_email'], 
               'FROM_USERNAME' => $userdata['username'], 
               'TO_REFERNAME' => $refername, 
               'USER_ID' => $userdata['user_id'], 
               'L_RP_REFER_BODY' => sprintf($lang['Rp_refer_body'], $referfriend, $board_config['sitename'], $board_config['rp_url'], $userdata['user_id']), 
               'L_RP_BOARD_BODY' => sprintf($lang['Rp_board_body'], $board_config['sitename'], $board_config['rp_url'], $board_config['rp_board']), 
               'L_RP_URL_REASON' => sprintf($lang['Rp_url_reason'], $userdata['username']), 
               'INVITE' => $invite, 
            )); 

// Send the Email 
            $emailer->send(); 
            $emailer->reset(); 

            $template->assign_vars(array( 
               'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("rp_center.$phpEx?mode=referralcp&u=") . $userdata['user_id'] . '">') 
            ); 

            $invite = $lang['Rp_refer_sent'] . '<br /><br />' . sprintf($lang['Click_return_refcenter'],  '<a href="' . append_sid("rp_center.$phpEx?mode=referralcp&u=") . $userdata['user_id'] . '">', '</a>'); 

            message_die(GENERAL_MESSAGE, $invite); 
         } 

      if ( $error ) 
      { 
      $template->set_filenames(array( 
         'reg_header' => 'error_body.tpl') 
      ); 
      $template->assign_vars(array( 
      'ERROR_MESSAGE' => $error_msg) 
      ); 
      $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); 
      } 

   } 

// End Send Email 

// Monthly user referrals 
$rp_time = $board_config['rp_time']; 
//if ( ($board_config['rp_enable']) && ($profiledata['user_posts']) >= ($board_config['rp_posts_allowed']) ) 
//{ 
   $ruid = $profiledata['user_id']; 
   $sql = "SELECT COUNT(rp_id) AS rp_totalm 
      FROM " . REFER_TOP_TABLE . " 
      WHERE ruid = $ruid"; 
   if ( !($result = $db->sql_query($sql)) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_error_data'], '', __LINE__, __FILE__, $sql); 
   } 
   $refer_top = array(); 
   $refer_top_total = $db->sql_fetchrow($result); 
   $refer_top_total = $refer_top_total['rp_totalm']; 
    
   $temp_url = append_sid("rp_viewm.$phpEx?ruid=" . urlencode($profiledata['user_id'])); 
   $temp_url = $refer_top_total ; 

// All time user referrals 
$rp_timem = $board_config['rp_timem']; 

   $rp_life_time_rc = $board_config['rp_life_time_rc']; 
   $ruid = $profiledata['user_id']; 
   $sql = "SELECT COUNT(rp_id) AS rp_total 
      FROM " . REFER_PLUS_TABLE . " 
      WHERE ruid = $ruid"; 
   if ( !($result = $db->sql_query($sql)) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_error_data'], '', __LINE__, __FILE__, $sql); 
   } 
   $refer_plus = array(); 
   $refer_plus_total = $db->sql_fetchrow($result); 
   $refer_plus_total = $refer_plus_total['rp_total']; 

   $temp_url = append_sid("rp_view.$phpEx?ruid=" . urlencode($profiledata['user_id'])); 
   $temp_url = $refer_plus_total; 

      $rp_top10_list = $board_config['rp_top10_list']; 
      $rp_top10_list_explain = $board_config['rp_top10_list_explain']; 
      $rp_top_list = append_sid("rp_top.$phpEx" ); 

// User all time referrals 
$sql = "SELECT rp_id, ruid, nuid, rp_time 
        FROM " . REFER_PLUS_TABLE . " 
   WHERE ruid = '" . $ruid . "'"; 
if( !$result = $db->sql_query($sql) ) 
{ 
      message_die(GENERAL_ERROR, $lang['Rp_error_query_total'], '', __LINE__, __FILE__, $sql); 
} 

if ( $row = $db->sql_fetchrow($result) ) 
{ 
   do 
   { 
               $nuid = $row['nuid']; 
               settype($nuid, 'integer'); 

               $new_userdata = get_userdata($nuid); 
               if(!$new_userdata) 
               { 
                      $rp_new_username = $lang['Rp_admin_not_exist']; 
               } 
               else 
               { 
                      $temp_url_1 = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $new_userdata['user_id'] . ''); 
                      $rp_new_username = $new_userdata['username']; 
               } 

               $rp_date = create_date($board_config['default_dateformat'], $row['rp_time'], $board_config['board_timezone']); 

               $row_color = ( !(2) ) ? $theme['td_color1'] : $theme['td_color2']; 
               $row_class = ( !(2) ) ? $theme['td_class1'] : $theme['td_class2']; 

            $template->assign_vars(array( 
               'L_RP_NEW_NAME' => $lang['Rp_admin_new_name'], 
               'L_RP_DATE' => $lang['Rp_admin_date']) 

            ); 

            $template->assign_block_vars('refer_plus', array( 
               'ROW_COLOR' => '#' . $row_color, 
               'ROW_CLASS' => $row_class, 
                
               'USER_URL' => $temp_url_1, 
                 'RP_NEW_USER' => $rp_new_username, 
               'RP_DATE' => $rp_date) 
            ); 

   } 
          while ($row = $db->sql_fetchrow($result)); 
} 
// User all time referrals 
// User current referrals 

$sql = "SELECT rp_id, ruid, nuid, rp_time 
        FROM " . REFER_TOP_TABLE . " 
   WHERE ruid = '" . $ruid . "'"; 
if( !$result = $db->sql_query($sql) ) 
{ 
      message_die(GENERAL_ERROR, $lang['Rp_error_query_total'], '', __LINE__, __FILE__, $sql); 
} 

if ( $row = $db->sql_fetchrow($result) ) 
{ 
   do 
   { 
               $nuid = $row['nuid']; 
               settype($nuid, 'integer'); 

               $new_userdata = get_userdata($nuid); 
               if(!$new_userdata) 
               { 
                      $rp_new_username = $lang['Rp_admin_not_exist']; 
               } 
               else 
               { 
                      $temp_url_2 = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $new_userdata['user_id'] . ''); 
                      $rp_new_username = $new_userdata['username']; 
               } 

               $rp_date = create_date($board_config['default_dateformat'], $row['rp_time'], $board_config['board_timezone']); 

               $row_color = ( !(2) ) ? $theme['td_color1'] : $theme['td_color2']; 
               $row_class = ( !(2) ) ? $theme['td_class1'] : $theme['td_class2']; 

               $template->assign_vars(array( 
                      'L_RP_NEW_NAME' => $lang['Rp_admin_new_name'], 
                 'L_RP_DATE' => $lang['Rp_admin_date']) 
               ); 

               $template->assign_block_vars('refer_top', array( 
               'ROW_COLOR' => '#' . $row_color, 
                    'ROW_CLASS' => $row_class, 

               'USER_URL' => $temp_url_2, 
                 'RP_NEW_USER' => $rp_new_username, 
               'RP_DATE' => $rp_date) 
               ); 

   } 
          while ($row = $db->sql_fetchrow($result)); 
} 
// end All time referrals 

// Current refer list 
   $sql = "SELECT * 
      FROM " . REFER_TOP_TABLE . " 
         WHERE ruid != '-1'"; 
   if( !$result = $db->sql_query($sql) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_error_data_top'], $lang['Error'], __LINE__, __FILE__, $sql); 
   } 

   $rp_time = $board_config['rp_time']; 
   $rp_top = $board_config['rp_top']; 
   $sql = "SELECT ruid, username, count(ruid) as total 
      FROM " . REFER_TOP_TABLE . ", " . USERS_TABLE . " 
         WHERE user_id=ruid 
            AND ruid != '-1' 
            GROUP BY ruid 
            ORDER BY total 
            DESC LIMIT $rp_top"; 

   if ( !($result = $db->sql_query($sql)) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_error_user'], '', __LINE__, __FILE__, $sql); 
   } 
    
   $referral_rows = array(); 
   $referral_rows = $db->sql_fetchrowset($result); 
   $referral_count = count($referral_rows); 

   // Is List enabled? 
   if ( ($board_config['rp_rtop_enable']) ) 
   { 
      for($i = 0; $i < $referral_count; $i++) 
      { 

       // GET REFERRAL USER DATA 
         $ruid = $referral_rows[$i]['ruid']; 
         $total_posts = $referral_rows[$i]['total']; 
         settype($ruid, "integer"); 
         $referral_userdata = get_userdata($ruid); 

         // build profile url 
         $temp_url_3 = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $referral_userdata['user_id'].""); 
         $top_referral = $referral_userdata['username'] ; 

         // Icky way to decide row color, but works for now!  ;) 
         $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; 
         $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; 

         $template->assign_block_vars("refer_plus_ct", array( 
            "ROW_COLOR" => "#" . $row_color, 
            "ROW_CLASS" => $row_class, 
         'USER_URL' => $temp_url_3, 
            "TOP_RP_USER" => $top_referral, 
            "RP_TOTALS" => $total_posts 
         )); 
      } 
   } 
   else 
   { 
      $template->assign_block_vars("disabled", array( 
         "L_RP_T_DISABLEDA" => $lang['Rp_t_disableda'] 
      )); 
   } 
// end Current refer list 
// All time refer list 
   $sql = "SELECT * 
      FROM " . REFER_PLUS_TABLE . " 
         WHERE ruid != '-1'"; 
   if( !$result = $db->sql_query($sql) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_error_data'], $lang['Error'], __LINE__, __FILE__, $sql); 
   } 

    $rp_time = $board_config['rp_time']; 
   $rp_top = $board_config['rp_top']; 
   $sql = "SELECT ruid, username, count(ruid) as total 
      FROM " . REFER_PLUS_TABLE . ", " . USERS_TABLE . " 
         WHERE user_id=ruid 
            AND ruid != '-1' 
            GROUP BY ruid 
            ORDER BY total 
            DESC LIMIT $rp_top"; 

   if ( !($result = $db->sql_query($sql)) ) 
   { 
      message_die(GENERAL_ERROR, $lang['Rp_error_user'], '', __LINE__, __FILE__, $sql); 
   } 
    
   $referral_rows = array(); 
   $referral_rows = $db->sql_fetchrowset($result); 
   $referral_count = count($referral_rows); 

   $template->assign_vars(array( 
       "RP_TIME" => $rp_time, 
      "L_RP_TOP" => $lang['Rp_top'], 
      "L_RP_MEM" => $lang['Rp_mem'], 
      "L_RP_REFER" => $lang['Rp_name'], 
      "L_RP_TOTAL" => $lang['Rp_total'], 
      "L_RP_T_EXPLAIN" => $lang['Rp_t_explain'], 
        )); 

   // Is Referral top list Enabled? 
   if ( ($board_config['rp_top_list_enabled']) ) 
   { 
      for($i = 0; $i < $referral_count; $i++) 
      { 
         // GET Referral user data 
         $ruid = $referral_rows[$i]['ruid']; 
         $total_posts = $referral_rows[$i]['total']; 
         settype($ruid, "integer"); 
         $referral_userdata = get_userdata($ruid); 

         $temp_url_4 = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $referral_userdata['user_id'].""); 
         $top_referral = $referral_userdata['username']; 

        // Icky way to decide row color, but works for now!  ;) 
        $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; 
        $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; 

        $template->assign_block_vars("refer_plus_at", array( 
      "ROW_COLOR" => "#" . $row_color, 
        "ROW_CLASS" => $row_class, 
      'USER_URL' => $temp_url_4, 
        "TOP_RP_USER" => $top_referral, 
        "RP_TOTALS" => $total_posts 
        )); 
      } 
   } 
   else 
   { 
      $template->assign_block_vars("disabled_2", array( 
         "L_RP_T_DISABLEDA" => $lang['Rp_t_disableda'] 
     )); 
   } 
// end all time refer list 

// Generate page 
$page_title = $board_config['rp_referc_header']; 
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
// template 
$template->set_filenames(array( 
   'body' => 'rp_center_body.tpl') 
); 
$template->assign_vars(array( 
   'USERNAME' => $profiledata['username'], 
   'REFER_POST_NO' => $refer_post, 
   'REFER_PLUS' => $refer_plus, 
   'REFER_TOP' => $refer_top, 
   'RP_TIME' => $rp_time, 
   'RP_TIMEM' => $rp_timem, 
   'RP_TOP10_LIST' => $rp_top10_list, 
   'REFER_TOP' => $refer_top, 
   'RP_TOP10_LIST_EXPLAIN' => $rp_top10_list_explain, 
   'RP_REWARD' => $refer_reward_total, 

   'L_RP_OPTION_DETAIL' => $lang['Rp_option_detail'], 
   'L_RP_CENTER_CP' => $lang['Rp_center_cp'], 
   'L_RP_CENTER_OP' => $lang['Rp_center_op'], 
   'L_RP_CENTER' => $lang['Rp_center'], 
   'L_RP_CENTER_FOR' => $lang['Rp_center_for'], 
   'L_RP_NO_POST' => $lang['Rp_no_post'], 
   'L_RP_TOP10' => $lang['Rp_top10'], 
   'L_RP_T_EXPLAIN' => $lang['Rp_t_explain'], 
   'L_RP_AT_EXPLAIN' => $lang['Rp_at_explain'], 
   'L_RP_ALL_TOPL' => $lang['Rp_all_topl'], 
   'L_RP_USER_FOR' => $lang['Rp_user_for'], 
   'L_RP_REFER_TITLE' => $lang['Rp_refer_title'], 
   'L_RP_USER' => $lang['Rp_user'], 
   'L_RP_USER_EMAIL' => $lang['Rp_user_email'], 
   'L_RP_REFER_USER' => $lang['Rp_refer_user'], 
   'L_RP_REFER_EMAIL' => $lang['Rp_refer_email'], 
   'L_RP_REFER_MSG' => $lang['Rp_refer_msg'], 
   'L_RP_REFER_BODY' => sprintf($lang['Rp_refer_body'], $referfriend, $board_config['sitename'], $board_config['rp_url'], $userdata['user_id']), 
   'L_RP_BOARD_BODY' => sprintf($lang['Rp_board_body'], $board_config['sitename'], $board_config['rp_url'], $board_config['rp_board']), 
   'L_RP_URL_REASON' => sprintf($lang['Rp_url_reason'], $userdata['username']), 
       
   'RP_REWARDS' => $board_config['rp_rewards'], 
   'RP_REWARDS_EXPLAIN' => $board_config['rp_rewards_explain'], 
   'REFER_TOP_TOTAL' => $refer_top_total['rp_totalm'], 
   'REFER_PLUS_TOTAL' => $refer_plus_total['rp_total'], 
   'RP_REFERC_HEADER' => $board_config['rp_referc_header'], 
   'RP_INVITE_HEADER' => $board_config['rp_invite_header'], 
   'RP_INVITE_FRIEND' => $board_config['rp_invite_friend'], 
   'RP_TOP_NOW_LIST' => $board_config['rp_top_now_list'], 
   'RP_NOW_TIME' => $board_config['rp_now_time'], 
   'RP_LIFE_TIME_RC' => $board_config['rp_life_time_rc'], 
   "SITENAME" => $board_config['sitename'], 
   "RP_NAME" => $userdata['username'], 
   "RP_MAIL" => $userdata['user_email'], 
// Save for possible future use 
//      "INVITE" => $invite['L_RP_REFER_BODY'], 
//   "TO_REFERNAME" => $refername, 
   "USER_ID" => $userdata['user_id'], 
   'S_SUBMIT_ACTION' => append_sid('rp_center.'.$phpEx), 
   'S_PROFILE_ACTION' => append_sid("profile.$phpEx")) 
); 

make_jumpbox('viewforum.'.$phpEx); 
$template->pparse('body'); 

include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 

?>  
FORGET IT. I FOUND THE ANSWER HERE.

User avatar
zuker
Registered User
Posts: 214
Joined: Tue Jun 27, 2006 2:30 pm
Location: BA
Contact:

Re: [RC3] Referral Plus v 1.3.0

Post by zuker » Thu Mar 29, 2007 11:41 am

i've got a problem

doesn't work

http://www.eddb.com.ar/foro/rp_center.p ... rralcp&u=2

it says me "User does not exist."

and the user exists, take a look

http://www.eddb.com.ar/foro/profile.php ... rofile&u=2

with any other user id, works

http://www.eddb.com.ar/foro/rp_center.p ... rralcp&u=3

any idea?

BruceyBonus
Registered User
Posts: 22
Joined: Wed Apr 04, 2007 6:03 pm
Contact:

Re: [RC3] Referral Plus v 1.3.0

Post by BruceyBonus » Wed Apr 04, 2007 6:05 pm

I keep getting this on the "Invite Friends" page as the link:

Code: Select all

http://www.freebiesuk.infoforumprofile.php?mode=register&refer_id=2
When it should read

Code: Select all

http://www.freebiesuk.info/forum/profile.php?mode=register&refer_id=2
Does anyone know a little fix I can do to get it working?
I've looked through the source files but just can't find anything to edit that would work :(

Thank you very much

P.S. Great mod - keep up the hard work!
Image

BruceyBonus
Registered User
Posts: 22
Joined: Wed Apr 04, 2007 6:03 pm
Contact:

Re: [RC3] Referral Plus v 1.3.0

Post by BruceyBonus » Sat Apr 07, 2007 5:23 pm

Has anyone got a fix to the problem posted above?
Image

thesiege84
Registered User
Posts: 46
Joined: Sun Nov 20, 2005 2:44 am

Re: [RC3] Referral Plus v 1.3.0

Post by thesiege84 » Sun Apr 08, 2007 9:38 pm

Great MOD, AWESOME. You guys are the best. makes me wonder how long it took you to develop this.... and ALL for free?

Just one improvement though.
Is there anyway to add more than 1 friend at a time?

Maybe 10 people at a time?

Much appreciated.

BruceyBonus
Registered User
Posts: 22
Joined: Wed Apr 04, 2007 6:03 pm
Contact:

Re: [RC3] Referral Plus v 1.3.0

Post by BruceyBonus » Tue Apr 10, 2007 7:20 am

BruceyBonus wrote: I keep getting this on the "Invite Friends" page as the link:

Code: Select all

http://www.freebiesuk.infoforumprofile.php?mode=register&refer_id=2
When it should read

Code: Select all

http://www.freebiesuk.info/forum/profile.php?mode=register&refer_id=2
Does anyone know a little fix I can do to get it working?
I've looked through the source files but just can't find anything to edit that would work :(

Thank you very much

P.S. Great mod - keep up the hard work!
I've fixed this problem. In the language file, there search for http://%s%s (or something like that), you need to put a / in between each %s in that file.
Image

Post Reply

Return to “[2.0.x] MODs in Development”