[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.
MentalMaze
Registered User
Posts: 531
Joined: Sun Nov 23, 2003 8:22 am
Location: Seattle
Contact:

Post by MentalMaze »

babydoll2u wrote: Warning: sprintf(): Too few arguments in /home/exquisi/public_html/boards/rp_invite.php on line 89


Well that error is due to edit of the email. The part you removed is one of the arguments for the line in the email.
ridinhighspeeds wrote: wow suprised I didn't even notice this mod. I currently have the bringpeople Mod installed. If I uninstall the Mod, does this referall plus Mod work with the same Sql data as the bringpeople Mod? I have many members who have already referred people and I don't want that to get lost.


You can just rename the table in bring people to phpbb_refer_plus. Then rename the fields ruid and nuid in the newly renamed table phpbb_refer_plus, "ruid" to "refer_id" and "nuid" to "refer_new"

Then you should be fine. If you do all of this before the install do NOT run the SQL to install the refer_plus table.
When I whisper of deep dark space or
Ponder upon that of the rhyme of time
I find there is no change in the words of rhyme
Whereas there is in both space and time

User avatar
VileParty
Registered User
Posts: 49
Joined: Fri Nov 25, 2005 5:45 pm
Location: Iowa, USA
Contact:

Re: [RC3] Referral Plus v 1.3.0

Post by VileParty »

This is an awesome mod. Exactly what I was looking for thank you! Even better is that it's still actively being supported.
MentalMaze wrote: Referred Post Count: Not award credits for referrals until new member has made x number of posts.


This add-on would make this complete imo.
~~ via dictata ipsum in somnium ~~ | ~~ Recipe For LeetSauce ~~
Image

MentalMaze
Registered User
Posts: 531
Joined: Sun Nov 23, 2003 8:22 am
Location: Seattle
Contact:

Re: [RC3] Referral Plus v 1.3.0

Post by MentalMaze »

VileParty wrote: This is an awesome mod. Exactly what I was looking for thank you! Even better is that it's still actively being supported.
MentalMaze wrote: Referred Post Count: Not award credits for referrals until new member has made x number of posts.


This add-on would make this complete imo.


8)

I have been a bit busy lately not to mention a short stay in the hospital, but soon I should be able to get back to the requests and see what else may be added.

I hope it works out for you.
When I whisper of deep dark space or
Ponder upon that of the rhyme of time
I find there is no change in the words of rhyme
Whereas there is in both space and time

socomcasper
Registered User
Posts: 34
Joined: Fri Aug 05, 2005 3:56 pm
Contact:

Post by socomcasper »

Excellent MOD. Thanks for all of your hard work. I got it on phpBB v2.0.18 and CH 2.1.4 flawlessly. Thanks again.

cpu
Registered User
Posts: 12
Joined: Fri Apr 08, 2005 9:49 am

i willing to pay to instll this mod

Post by cpu »

i have phpbb plus 1.53 beta version that have ch mod already
i want some one install this mod for me on this version
i am willing some $$ to tank
please help i am in urgent need :?
i fogot link here is phpbb plus you can dn 1.53 beta7 http://www.phpbb2.de/index.php

cpu
Registered User
Posts: 12
Joined: Fri Apr 08, 2005 9:49 am

Post by cpu »

i install this mod on plus 1.53 :o but got 2 damn errors :?
one is :(when i click on referal center)
Fatal error: Cannot instantiate non-existent class: navigation in e:\easyphp1-7\www\rew\rp_center.php on line 42
i install on local
another is
Parse error: parse error in e:\easyphp1-7\www\rew\includes\usercp_register.php on line 117
(when i click on profile)
please help me :?
i istall it on fisubsilversh template (plus 1.52 and 1.53 defualt template)
I insert some trouble some piece of usercp-register.php (after mod installatio)

Code: Select all

// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//

// BEGIN Disable Registration MOD
if( $board_config['registration_status'] && !$userdata['session_logged_in'] )
{
  if( $board_config['registration_closed'] == '' )
  {
    message_die(GENERAL_MESSAGE, 'registration_status', 'Information');
  }
  else
  {
    message_die(GENERAL_MESSAGE, $board_config['registration_closed'], 'Information'); 
  }  
}
// END Disable Registration MOD

function show_coppa()
{


//
//-- mod : Referral Plus -------------------------------------------------------
// modify add:  , $refer_id;


	global $userdata, $template, $lang, $phpbb_root_path, $phpEx;, $refer_id


	$template->set_filenames(array(
		'body' => 'agreement.tpl')
	);

	$template->assign_vars(array(
		'REGISTRATION' => $lang['Registration'],
		'AGREEMENT' => $lang['Reg_agreement'],
		"AGREE_OVER_13" => $lang['Agree_over_13'],
		"AGREE_UNDER_13" => $lang['Agree_under_13'],
		'DO_NOT_AGREE' => $lang['Agree_not'],
#
		//
		// Referral Plus
		// modify add: &refer_id=$refer_id
# 

		"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),&refer_id=$refer_id

		"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))&refer_id=$refer_id
	//
		// Referral Plus
		//
	);

	$template->pparse('body');

}
//
// ---------------------------------------

$error = FALSE;
$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register'];

if ( $mode == 'register' && !isset($_POST['agreed']) && !isset($_GET['agreed']) )
{
	include($phpbb_root_path . 'includes/page_header.'.$phpEx);

	show_coppa();

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

$coppa = ( empty($_POST['coppa']) && empty($_GET['coppa']) ) ? 0 : TRUE;

//
// Check and initialize some variables if needed
//

if (
	isset($_POST['submit']) ||
	isset($_POST['avatargallery']) ||
	isset($_POST['submitavatar']) ||
	isset($_POST['cancelavatar']) ||
	$mode == 'register' )
{
	include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
	include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
	include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

	if ( $mode == 'editprofile' )
	{
		$user_id = intval($_POST['user_id']);
		$current_email = trim(htmlspecialchars($_POST['current_email']));
	}

	$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');

	// Strip all tags from data ... may p**s some people off, bah, strip_tags is
	// doing the job but can still break HTML output ... have no choice, have
	// to use htmlspecialchars ... be prepared to be moaned at.
	while( list($var, $param) = @each($strip_var_list) )
	{
		if ( !empty($_POST[$param]) )
		{
			$$var = trim(htmlspecialchars($_POST[$param]));
		}
	}

	$trim_var_list = array('cur_password' => 'cur_password', 'new_password' => 'new_password', 'password_confirm' => 'password_confirm', 'signature' => 'signature');

	while( list($var, $param) = @each($trim_var_list) )
	{
		if ( !empty($_POST[$param]) )
		{
			$$var = trim($_POST[$param]);
		}
	}

	$signature = str_replace('<br />', "\n", $signature);
	// Start add - Gender MOD
	$gender = ( isset($_POST['gender']) ) ? intval ($_POST['gender']) : 0;
	// End add - Gender MOD
	// Start add - Birthday MOD
	if (isset($_POST['birthday']) )
	{
		$birthday = intval ($_POST['birthday']);
		if ($birthday!=999999)
		{
			$b_day = realdate('j',$birthday); 
			$b_md = realdate('n',$birthday); 
			$b_year = realdate('Y',$birthday);
		}
	} else
	{
		$b_day = ( isset($_POST['b_day']) ) ? intval ($_POST['b_day']) : 0;
		$b_md = ( isset($_POST['b_md']) ) ? intval ($_POST['b_md']) : 0;
		$b_year = ( isset($_POST['b_year']) ) ? intval ($_POST['b_year']) : 0;
		if ($b_day && $b_md && $b_year)
		{
			$birthday = mkrealdate($b_day,$b_md,$b_year);
		} else
		{
			$birthday = 999999;
		}
	}
// End add - Birthday MOD
	// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
	// empty strings if they fail.
	validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $user_absence_text);

	$viewemail = ( isset($_POST['viewemail']) ) ? ( ($_POST['viewemail']) ? TRUE : 0 ) : 0;
	$user_absence_mode = abs( intval($_POST['user_absence_mode']) );
	$user_absence = ( isset($_POST['user_absence']) ) ? ( ($_POST['user_absence']) ? TRUE : 0 ) : 0;
	$user_absence_text = htmlspecialchars($_POST['user_absence_text']);
	$allowviewonline = ( isset($_POST['hideonline']) ) ? ( ($_POST['hideonline']) ? 0 : TRUE ) : TRUE;
	$notifyreply = ( isset($_POST['notifyreply']) ) ? ( ($_POST['notifyreply']) ? TRUE : 0 ) : 0;
	$notifypm = ( isset($_POST['notifypm']) ) ? ( ($_POST['notifypm']) ? TRUE : 0 ) : TRUE;
	$popup_pm = ( isset($_POST['popup_pm']) ) ? ( ($_POST['popup_pm']) ? TRUE : 0 ) : TRUE;
	$setbm = ( isset($_POST['setbm']) ) ? ( ($_POST['setbm']) ? TRUE : 0 ) : 0;
	
	if ( $mode == 'register' )
	{
		$attachsig = ( isset($_POST['attachsig']) ) ? ( ($_POST['attachsig']) ? TRUE : 0 ) : $board_config['allow_sig'];

		$allowhtml = ( isset($_POST['allowhtml']) ) ? ( ($_POST['allowhtml']) ? TRUE : 0 ) : $board_config['allow_html'];
		$allowbbcode = ( isset($_POST['allowbbcode']) ) ? ( ($_POST['allowbbcode']) ? TRUE : 0 ) : $board_config['allow_bbcode'];
		$allowsmilies = ( isset($_POST['allowsmilies']) ) ? ( ($_POST['allowsmilies']) ? TRUE : 0 ) : $board_config['allow_smilies'];
	}
	else
	{
		$attachsig = ( isset($_POST['attachsig']) ) ? ( ($_POST['attachsig']) ? TRUE : 0 ) : 0;

		$allowhtml = ( isset($_POST['allowhtml']) ) ? ( ($_POST['allowhtml']) ? TRUE : 0 ) : $userdata['user_allowhtml'];
		$allowbbcode = ( isset($_POST['allowbbcode']) ) ? ( ($_POST['allowbbcode']) ? TRUE : 0 ) : $userdata['user_allowbbcode'];
		$allowsmilies = ( isset($_POST['allowsmilies']) ) ? ( ($_POST['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile'];
	}
Last edited by cpu on Fri Dec 16, 2005 11:53 am, edited 1 time in total.

User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit »

cpu wrote: i install this mod on plus 1.53 :o but got 2 damn errors :?
one is :(when i click on referal center)
Fatal error: Cannot instantiate non-existent class: navigation in e:\easyphp1-7\www\rew\rp_center.php on line 42
i install on local
another is
Parse error: parse error in e:\easyphp1-7\www\rew\includes\usercp_register.php on line 117
(when i click on profile)
please help me :?
i istall it on fisubsilversh template (plus 1.52 and 1.53 defualt template)


We don't support phpBB Plus here, as it's a preMODded version of phpBB. :wink: The MOD author may choose to, but...
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."

cpu
Registered User
Posts: 12
Joined: Fri Apr 08, 2005 9:49 am

Post by cpu »

MennoniteHobbit wrote:
cpu wrote:i install this mod on plus 1.53 :o but got 2 damn errors :?
one is :(when i click on referal center)
Fatal error: Cannot instantiate non-existent class: navigation in e:\easyphp1-7\www\rew\rp_center.php on line 42
i install on local
another is
Parse error: parse error in e:\easyphp1-7\www\rew\includes\usercp_register.php on line 117
(when i click on profile)
please help me :?
i istall it on fisubsilversh template (plus 1.52 and 1.53 defualt template)


We don't support phpBB Plus here, as it's a preMODded version of phpBB. :wink: The MOD author may choose to, but...

please please :?
this only a premoded phpbb
i want to know how can intall this mod referal plus to my form
please take it easy

cpu
Registered User
Posts: 12
Joined: Fri Apr 08, 2005 9:49 am

Post by cpu »

i solved my first error by replacing the rp-center.php file
but i have one left when i click i profile i get pars error massage
please help to solve this
update: i solved my total problem about parse errors,mental maz i think you should have a look at your file for ch compatible one
:roll:

ridinhighspeeds
Registered User
Posts: 105
Joined: Tue Jan 25, 2005 1:53 am
Location: MA
Contact:

Post by ridinhighspeeds »

I just installed the referral plus mod and it says that I need the points or cash mod in order to setup contests. I've been looking around for the points system mod and I can't seem to find it. All it is I come up with is the cash mod.

Basically I would like to give away gift cards, prizes to my users who refer the most people in whatever timeframe I choose. Is their just a points system that will work with the referral plus mod, or do I have to use the cash mod?

User avatar
Jackanape
Registered User
Posts: 1076
Joined: Wed Oct 13, 2004 6:01 am
Location: Capitol of the Great State of New York
Name: Jack Drury
Contact:

Post by Jackanape »

Cash mod will allow you to set up points, and it is still a widely supported and updated mod. I also tried finding other solutions, but in the end, decided on cash mod. I'm glad I did, it gives you a lot of control over the system. I recommend it.
~Extending the rule of meticulous exactitude to exaspirating punctillio...still.~
Treat your phpBB like a member of the family--Update and MOD her by hand, with HTML-Kit
: : Wanna Talk Poker? : : Image : :

User avatar
shirleycaat
Registered User
Posts: 186
Joined: Mon Apr 07, 2003 1:11 am

Post by shirleycaat »

sorry, double post
Last edited by shirleycaat on Thu Jan 05, 2006 5:44 pm, edited 1 time in total.

User avatar
shirleycaat
Registered User
Posts: 186
Joined: Mon Apr 07, 2003 1:11 am

Post by shirleycaat »

Installation seems successful with a CH 2.04 forum. No errors.

But I'm trying hard to understand how to reward referral points.

In "Rewards Settings", I set "Referral Rewards Type" to "user_gold";"Referral Rewards Amount" to "300"

In "Cash Currencies", I Created a new Currency as "user_gold" with Default value for currency = 0

When an existing user referred a new user and registered, the existing user's pionts should increase by 300, but it didnt.

What's wrong?

Can somebody help me please? Thanks!

User avatar
DeViAnThans3
Registered User
Posts: 877
Joined: Sat Oct 08, 2005 10:39 pm
Location: Belgium

Post by DeViAnThans3 »

very nice mod! :D
I only provide support via the appropriate topics! Please no PM or mails! :)
My MODs :: [BETA] Facebook Connect

MentalMaze
Registered User
Posts: 531
Joined: Sun Nov 23, 2003 8:22 am
Location: Seattle
Contact:

Post by MentalMaze »

shirleycaat wrote: Installation seems successful with a CH 2.04 forum. No errors.

But I'm trying hard to understand how to reward referral points.

In "Rewards Settings", I set "Referral Rewards Type" to "user_gold";"Referral Rewards Amount" to "300"

In "Cash Currencies", I Created a new Currency as "user_gold" with Default value for currency = 0

When an existing user referred a new user and registered, the existing user's pionts should increase by 300, but it didnt.

What's wrong?

Can somebody help me please? Thanks!


Be sure rewards are enabled. If they are be sure that the edits in the includes/usercp_register.php are correct. Also cookies are now used to track referrals, so be sure to delete the cookie for the forum before testing or it will show it as not being a referral. This is most likely the case if all else is working.
DeViAnThans3 wrote: very nice mod! :)


Thanks. I hope it all works out nice for you. :)
When I whisper of deep dark space or
Ponder upon that of the rhyme of time
I find there is no change in the words of rhyme
Whereas there is in both space and time

Post Reply

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