ref-mod problem

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
MiBo21
Mitglied
Beiträge: 168
Registriert: 06.07.2003 23:18
Kontaktdaten:

ref-mod problem

Beitrag 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
Benutzeravatar
Henne
Ehemaliges Teammitglied
Beiträge: 4520
Registriert: 04.01.2002 01:00
Wohnort: Lage (Lippe)
Kontaktdaten:

Re: ref-mod problem

Beitrag 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...
MiBo21
Mitglied
Beiträge: 168
Registriert: 06.07.2003 23:18
Kontaktdaten:

Beitrag 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 ! :(
Benutzeravatar
Henne
Ehemaliges Teammitglied
Beiträge: 4520
Registriert: 04.01.2002 01:00
Wohnort: Lage (Lippe)
Kontaktdaten:

Beitrag 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 
MiBo21
Mitglied
Beiträge: 168
Registriert: 06.07.2003 23:18
Kontaktdaten:

Beitrag 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 :( )
Benutzeravatar
Henne
Ehemaliges Teammitglied
Beiträge: 4520
Registriert: 04.01.2002 01:00
Wohnort: Lage (Lippe)
Kontaktdaten:

Beitrag von Henne »

Ich würd nen Update auf 2.0.6 vorschlagen, da das Problem dort imho behoben wurde...
MiBo21
Mitglied
Beiträge: 168
Registriert: 06.07.2003 23:18
Kontaktdaten:

Beitrag von MiBo21 »

dann gehen aber wieder einige mod-installationen verloren, ne ??
Benutzeravatar
Henne
Ehemaliges Teammitglied
Beiträge: 4520
Registriert: 04.01.2002 01:00
Wohnort: Lage (Lippe)
Kontaktdaten:

Beitrag von Henne »

Wenn du das Update per Hand machst nicht.

http://www.opentools.de/docs/205_to_206.html
MiBo21
Mitglied
Beiträge: 168
Registriert: 06.07.2003 23:18
Kontaktdaten:

Beitrag von MiBo21 »

n bisschen viel, was ?! :)

werd ich dann demnächst mal machen ! Und du meinst dann ist das problem behoben ??
Benutzeravatar
Henne
Ehemaliges Teammitglied
Beiträge: 4520
Registriert: 04.01.2002 01:00
Wohnort: Lage (Lippe)
Kontaktdaten:

Beitrag 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).
Antworten

Zurück zu „phpBB 2.0: Mod Support“