Birthday Hack

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.
Benutzeravatar
jani
Mitglied
Beiträge: 54
Registriert: 24.01.2005 16:48
Wohnort: Neu-Ulm
Kontaktdaten:

Beitrag von jani »

Habe aber jetzt leider folgende Fehlermeldungen

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /customers/becker-wenda.de/becker-wenda.de/httpd.www/deti-jani/phpBB2/viewtopic.php on line 1208

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /customers/becker-wenda.de/becker-wenda.de/httpd.www/deti-jani/phpBB2/includes/usercp_viewprofile.php on line 250


Parse error: parse error, unexpected T_ELSE in /customers/becker-wenda.de/becker-wenda.de/httpd.www/deti-jani/phpBB2/includes/page_header.php on line 322

Immer nur bei den 3 Datein, bei allen anderen scheint es geklappt zu haben. :cry:
Benutzeravatar
jani
Mitglied
Beiträge: 54
Registriert: 24.01.2005 16:48
Wohnort: Neu-Ulm
Kontaktdaten:

Beitrag von jani »

Mann ich glaub langsam echt ich bin zu blöd dafür, hab noch mehr fehler gefunden und es jetzt ersteinmal wieder die vorherige Version hochgefahren. Kann mir jemand tipps zum einbauen geben?
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ....

verlinke mal bitte die 3 Dateien als txt-Datei.
KB:Datei

Markus
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ...

suche in der viewtopic.php

Code: Alles auswählen

	$template->assign_block_vars('postrow', array(
		'ROW_COLOR' => '#' . $row_color,
		'ROW_CLASS' => $row_class,
		'POSTER_NAME' =>// Start add - Birthday MOD
		'POSTER_AGE' => $poster_age,
// End add - Birthday MOD $poster,
		'POSTER_RANK' => $poster_rank,
		'RANK_IMAGE' => $rank_image,
		'POSTER_JOINED' => $poster_joined,
		'POSTER_POSTS' => $poster_posts,
		'POSTER_FROM' => $poster_from,
		'POSTER_AVATAR' => $poster_avatar,
// <!-- BEGIN Another Online/Offline indicator -->
		'POSTER_ONLINE' => $user_onlinestatus,
// <!-- END Another Online/Offline indicator -->		'POST_DATE' => $post_date,
		'POST_SUBJECT' => $post_subject,
		'MESSAGE' => $message,
		'SIGNATURE' => $user_sig,
		'EDITED_MESSAGE' => $l_edited_by,
ersetze mit:

Code: Alles auswählen

	$template->assign_block_vars('postrow', array(
		'ROW_COLOR' => '#' . $row_color,
		'ROW_CLASS' => $row_class,
		'POSTER_NAME' => $poster,
// Start add - Birthday MOD
		'POSTER_AGE' => $poster_age,
// End add - Birthday MOD 
		'POSTER_RANK' => $poster_rank,
		'RANK_IMAGE' => $rank_image,
		'POSTER_JOINED' => $poster_joined,
		'POSTER_POSTS' => $poster_posts,
		'POSTER_FROM' => $poster_from,
		'POSTER_AVATAR' => $poster_avatar,
// <!-- BEGIN Another Online/Offline indicator -->
		'POSTER_ONLINE' => $user_onlinestatus,
// <!-- END Another Online/Offline indicator -->		
		'POST_DATE' => $post_date,
		'POST_SUBJECT' => $post_subject,
		'MESSAGE' => $message,
		'SIGNATURE' => $user_sig,
		'EDITED_MESSAGE' => $l_edited_by,
Markus
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ....

suche in der usercp_viewprofile

Code: Alles auswählen

	'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : '&nbsp;',
	'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : '&nbsp;',
	'INTERESTS' =>// Start add - Birthday MOD
	'BIRTHDAY' => $user_birthday,
// End add - Birthday MOD ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',// <!-- BEGIN Another Online/Offline indicator -->
	'USER_ONLINESTATUS' => $user_onlinestatus,
// <!-- END Another Online/Offline indicator -->
	'AVATAR_IMG' => $avatar_img,

	'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']), 
	'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']), 
	'L_AVATAR' => $lang['Avatar'], 
	'L_POSTER_RANK' => $lang['Poster_rank'], 
	'L_JOINED' => $lang['Joined'], 
	'L_TOTAL_POSTS' => $lang['Total_posts'], 
	'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']), 
	'L_CONTACT' => $lang['Contact'],
	'L_EMAIL_ADDRESS' => $lang['Email_address'],
	'L_EMAIL' => $lang['Email'],
	'L_PM' => $lang['Private_Message'],
	'L_ICQ_NUMBER' => $lang['ICQ'],
	'L_YAHOO' => $lang['YIM'],
	'L_AIM' => $lang['AIM'],
	'L_MESSENGER' => $lang['MSNM'],
	'L_WEBSITE' => $lang['Website'],
	'L_LOCATION' => $lang['Location'],
	'L_OCCUPATION' => $lang['Occupation'],
	'L_INTERESTS' =>// Start add - Birthday MOD
	'L_BIRTHDAY' => $lang['Birthday'],
// End add - Birthday MOD $lang['Interests'],

	'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),

	'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);

$template->pparse('body');
ersetze mit:

Code: Alles auswählen

	'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : '&nbsp;',
	'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : '&nbsp;',
	'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',// <!-- BEGIN Another Online/Offline indicator -->
// Start add - Birthday MOD
	'BIRTHDAY' => $user_birthday,
// End add - Birthday MOD 
	'USER_ONLINESTATUS' => $user_onlinestatus,
// <!-- END Another Online/Offline indicator -->
	'AVATAR_IMG' => $avatar_img,

	'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']), 
	'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']), 
	'L_AVATAR' => $lang['Avatar'], 
	'L_POSTER_RANK' => $lang['Poster_rank'], 
	'L_JOINED' => $lang['Joined'], 
	'L_TOTAL_POSTS' => $lang['Total_posts'], 
	'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']), 
	'L_CONTACT' => $lang['Contact'],
	'L_EMAIL_ADDRESS' => $lang['Email_address'],
	'L_EMAIL' => $lang['Email'],
	'L_PM' => $lang['Private_Message'],
	'L_ICQ_NUMBER' => $lang['ICQ'],
	'L_YAHOO' => $lang['YIM'],
	'L_AIM' => $lang['AIM'],
	'L_MESSENGER' => $lang['MSNM'],
	'L_WEBSITE' => $lang['Website'],
	'L_LOCATION' => $lang['Location'],
	'L_OCCUPATION' => $lang['Occupation'],
	'L_INTERESTS' => $lang['Interests'],
// Start add - Birthday MOD
	'L_BIRTHDAY' => $lang['Birthday'],
// End add - Birthday MOD 	

	'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),

	'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);

$template->pparse('body');
suche in der page_header.php

Code: Alles auswählen

// Obtain number of new private messages
// if user is logged in
//
if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) )// Start add - Birthday MOD
// see if user has or have had birthday, also see if greeting are enabled
	if ( $userdata['user_birthday']!=999999 && $board_config['birthday_greeting'] && create_date('Ymd', time(), $board_config['board_timezone'])  >= $userdata['user_next_birthday_greeting'].realdate ('md',$userdata['user_birthday'] ) )
	{
		$sql = "UPDATE " . USERS_TABLE . "
			SET user_next_birthday_greeting = " . (create_date('Y', time(), $board_config['board_timezone'])+1) . "
			WHERE user_id = " . $userdata['user_id'];
		if( !$status = $db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, "Could not update next_birthday_greeting for user.", "", __LINE__, __FILE__, $sql);
		}
		$template->assign_var("GREETING_POPUP",
			"<script language=\"Javascript\" type=\"text/javascript\"><!--
			window.open('".append_sid('birthday_popup.'.$phpEx)."', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
			//-->
			</script>");
	} //Sorry user shall not have a greeting this year
// End add - Birthday MOD
{
ersetze mit:

Code: Alles auswählen

// Obtain number of new private messages
// if user is logged in
//
if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) )
{
// Start add - Birthday MOD
// see if user has or have had birthday, also see if greeting are enabled
	if ( $userdata['user_birthday']!=999999 && $board_config['birthday_greeting'] && create_date('Ymd', time(), $board_config['board_timezone'])  >= $userdata['user_next_birthday_greeting'].realdate ('md',$userdata['user_birthday'] ) )
	{
		$sql = "UPDATE " . USERS_TABLE . "
			SET user_next_birthday_greeting = " . (create_date('Y', time(), $board_config['board_timezone'])+1) . "
			WHERE user_id = " . $userdata['user_id'];
		if( !$status = $db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, "Could not update next_birthday_greeting for user.", "", __LINE__, __FILE__, $sql);
		}
		$template->assign_var("GREETING_POPUP",
			"<script language=\"Javascript\" type=\"text/javascript\"><!--
			window.open('".append_sid('birthday_popup.'.$phpEx)."', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
			//-->
			</script>");
	} //Sorry user shall not have a greeting this year
// End add - Birthday MOD
Dann sollte das ganze funktionieren

Markus
Benutzeravatar
jani
Mitglied
Beiträge: 54
Registriert: 24.01.2005 16:48
Wohnort: Neu-Ulm
Kontaktdaten:

Beitrag von jani »

Danke du bist ein schatz die viewtopic.php geht schon mal, nun werd ich mich mal an die andern beiden noch machen und mal schauen ob dann noch irgendwo fehler sind.

Schon mal ein ganz großes DANKE
Benutzeravatar
jani
Mitglied
Beiträge: 54
Registriert: 24.01.2005 16:48
Wohnort: Neu-Ulm
Kontaktdaten:

Beitrag von jani »

hab noch den Fehler gefunden

admin/admin_users.php

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /customers/becker-wenda.de/becker-wenda.de/httpd.www/deti-jani/phpBB2/admin/admin_board.php on line 205

http://www.becker-wenda.de/fehler/admin_users.txt
Benutzeravatar
Markus67
Ehrenadmin
Beiträge: 28346
Registriert: 12.01.2004 16:02
Wohnort: Neuss
Kontaktdaten:

Beitrag von Markus67 »

Hi ...

suche:

Code: Alles auswählen

			'OCCUPATION' => $occupation,
			'INTERESTS' =>// Start add - Birthday MOD
			'NEXT_BIRTHDAY_GREETING' => $next_birthday_greeting,
			'S_BIRTHDAY' => $s_birthday,
// End add - Birthday MOD $interests,
			'LOCATION' => $location,
			'WEBSITE' => $website,
ersetze mit:

Code: Alles auswählen

			'OCCUPATION' => $occupation,
			'INTERESTS' => $interests,
// Start add - Birthday MOD
			'NEXT_BIRTHDAY_GREETING' => $next_birthday_greeting,
			'S_BIRTHDAY' => $s_birthday,
// End add - Birthday MOD
			'LOCATION' => $location,
			'WEBSITE' => $website,
suche:

Code: Alles auswählen

			'L_YES' => $lang['Yes'],
			'L_NO' => $lang['No'],
			'L_INTERESTS' =>// Start add - Birthday MOD
			'L_BIRTHDAY' => $lang['Birthday'],
			'L_NEXT_BIRTHDAY_GREETING' => $lang['Next_birthday_greeting'],
			'L_NEXT_BIRTHDAY_GREETING_EXPLAIN' => $lang['Next_birthday_greeting_expain'],
// End add - Birthday MOD $lang['Interests'],
			'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
ersetze mit:

Code: Alles auswählen

			'L_YES' => $lang['Yes'],
			'L_NO' => $lang['No'],
			'L_INTERESTS' => $lang['Interests'],
// Start add - Birthday MOD
			'L_BIRTHDAY' => $lang['Birthday'],
			'L_NEXT_BIRTHDAY_GREETING' => $lang['Next_birthday_greeting'],
			'L_NEXT_BIRTHDAY_GREETING_EXPLAIN' => $lang['Next_birthday_greeting_expain'],
// End add - Birthday MOD
			'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
Markus
Benutzeravatar
jani
Mitglied
Beiträge: 54
Registriert: 24.01.2005 16:48
Wohnort: Neu-Ulm
Kontaktdaten:

Beitrag von jani »

Oh man ich hoffe ich nerve nicht langsam und strapaziere deine Geduld, aber da läuft immer noch was schief mit admin_board

http://www.becker-wenda.de/fehler/admin_board.txt

Bin noch der absolute anfänger. :-?
Antworten

Zurück zu „phpBB 2.0: Mod Support“