Seite 1 von 1

ref-mod problem

Verfasst: 17.08.2003 17:31
von MiBo21
Geht sich um diesen mod

Code: Alles auswählen

## MOD Title: Referral MOD
## MOD Author: AbelaJohnB <abela@phpbb> (John B. Abela) http://www.johnabela.com/
## MOD Description: This MOD will allow your members to have a link that will allow them to refer
##                  new members to your forum. It includes a list of how many people they have
##                  referred within their profile, as well as a detailed list within the ACP, showing
##                  their username, the name of the member they referred and the date/time.
## MOD Version: 1.1.1
##
## Installation Level: Intermediate
## Installation Time: ~15 minutes
finde folgenden eintrag in der usercp_register.php nicht !!!

Code: Alles auswählen

$unhtml_specialchars_replace = array('>', '<', '"', '&');
Ich nutze php2.0.05 und finde es einfach nicht !

Müsste da folgenden Code anhängen:

Code: Alles auswählen

//
// START - REFERRAL MOD - AbelaJohnB
if ( !empty($HTTP_GET_VARS['ruid']) )
{
    $ruid = $HTTP_GET_VARS['ruid'];
}
elseif ( !empty($_POST['ruid']) )
{
    $ruid = $_POST['ruid'];
}
else
{
    $ruid = $board_config['referral_id'];
}
// END - REFERRAL MOD - AbelaJohnB
//
Wenn der nicht dort ist bekommt man bei der Registrierung den Fehler

Code: Alles auswählen

INVALID-SESSION

Re: ref-mod problem

Verfasst: 17.08.2003 17:33
von Henne
MiBo21 hat geschrieben:finde folgenden eintrag in der usercp_register.php nicht !!!

Code: Alles auswählen

$unhtml_specialchars_replace = array('>', '<', '"', '&');
Also da der in der 2.0.6 noch da ist, würde ich mal sagen, dass der in der 2.0.5 auch zu finden sein muss.
Steht ziemlich weit oben. Ist eine der ersten Codezeilen...

Verfasst: 17.08.2003 17:38
von MiBo21
kleiner auszug meiner version:

Code: Alles auswählen

<?php
/***************************************************************************
 *                            usercp_register.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: usercp_register.php,v 1.20.2.35 2003/01/10 21:28:08 psotfx Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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.
 *
 *
 ***************************************************************************/

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



// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//
function show_coppa()
{
	global $userdata, $template, $lang, $phpbb_root_path, $phpEx, $ruid;

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

	$template->assign_vars(array(
		'REGISTRATION' => $lang['Registration'],
		'AGREEMENT' => $lang['Reg_agreement'],
		"AGREE_OK" => $lang['Agree_OK'],
		'DO_NOT_AGREE' => $lang['Agree_not'],

		"U_AGREE_OK" => "profile.$phpEx?mode=register&agreed=true&sid=" . $userdata['session_id'])
	);

	$template->pparse('body');

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

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

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

	show_coppa();

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

$coppa = ( empty($HTTP_POST_VARS['coppa']) && empty($HTTP_GET_VARS['coppa']) ) ? 0 : TRUE;

//
// Check and initialize some variables if needed
//
if (
	isset($HTTP_POST_VARS['submit']) ||
	isset($HTTP_POST_VARS['avatargallery']) ||
	isset($HTTP_POST_VARS['submitavatar']) ||
	isset($HTTP_POST_VARS['cancelavatar']) ||
	$mode == 'register' )
{
	// session id check
	if ($sid == '' || $sid != $userdata['session_id'])
	{
		message_die(GENERAL_ERROR, 'Invalid_session');
	}

	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($HTTP_POST_VARS['user_id']);
		$current_email = trim(htmlspecialchars($HTTP_POST_VARS['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');
.
.
.

da is leider nix ! Hab auch schon nach sämtlichen Bruchteilen aus der Zeile gesucht ! Die jibbet bei mir net ! :(

Verfasst: 17.08.2003 17:40
von Henne
Na dann schau mal in die Originaldatei:

Code: Alles auswählen

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

$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');

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

Verfasst: 17.08.2003 17:44
von MiBo21
hab´s einfach mal eingebunden wie es in der originaldatei steht !

Bekomme trotzdem die fehlermeldung.

Code: Alles auswählen

INVALID SESSION !
(auch ohne Reflink :( )

Verfasst: 17.08.2003 17:47
von Henne
Ich würd nen Update auf 2.0.6 vorschlagen, da das Problem dort imho behoben wurde...

Verfasst: 17.08.2003 17:48
von MiBo21
dann gehen aber wieder einige mod-installationen verloren, ne ??

Verfasst: 17.08.2003 17:49
von Henne
Wenn du das Update per Hand machst nicht.

http://www.opentools.de/docs/205_to_206.html

Verfasst: 17.08.2003 17:50
von MiBo21
n bisschen viel, was ?! :)

werd ich dann demnächst mal machen ! Und du meinst dann ist das problem behoben ??

Verfasst: 17.08.2003 17:56
von Henne
1. Ist das imho zu verkraften (hab glaube ich 30 Minuten für gebraucht)
2. Denke ich (!), dass es dann gelöst sein könnte.
3. Nen Update ist immer zu empfehlen (Verstehe nicht, dass noch so viele Leute mit alten Foren fahren).