Seite 1 von 1

Geburstagsmod

Verfasst: 29.09.2005 13:43
von Telek001
hallo ich bekomme nach dem manuellen einbau des mods folgende fehlermeldung

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/htdocs/domain.de/includes/usercp_register.php on line 1142

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/htdocs/domain.de/admin/admin_board.php on line 205

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/htdocs/domain.de/admin/admin_users.php on line 1123

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/htdocs/domain.de/includes/usercp_viewprofile.php on line 226

die vier dateien könnten hier runtergeladen werden zur fehler suche

www.himmes.net/gebmod.zip

vielen dank

Verfasst: 29.09.2005 14:58
von Markus67
Hi ...

suche in der usercp_register.php

Code: Alles auswählen

		'OCCUPATION' => $occupation,
		'INTERESTS' =>// Start add - Birthday MOD
		'S_BIRTHDAY' => $s_birthday,
		'BIRTHDAY_REQUIRED' => ($board_config['birthday_required']) ? '*' : '',
// End add - Birthday MOD $interests,
		'LOCATION' => $location,
ersetze mit:

Code: Alles auswählen

		'OCCUPATION' => $occupation,
		'INTERESTS' => $interests,
		// Start add - Birthday MOD
		'S_BIRTHDAY' => $s_birthday,
		'BIRTHDAY_REQUIRED' => ($board_config['birthday_required']) ? '*' : '',
		// End add - Birthday MOD
		'LOCATION' => $location,
suche:

Code: Alles auswählen

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

Code: Alles auswählen

		'L_NO' => $lang['No'],
		'L_INTERESTS' => $lang['Interests'],
		// Start add - Birthday MOD
		'L_BIRTHDAY' => $lang['Birthday'],
		// End add - Birthday MOD
		'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
suche in der admin_board.php

Code: Alles auswählen

	"PRUNE_YES" => $prune_yes,
	"PRUNE_NO" =>// Start add - Birthday MOD
	"BIRTHDAY_GREETING_YES" => $birthday_greeting_yes,
	"BIRTHDAY_GREETING_NO" => $birthday_greeting_no,
	"BIRTHDAY_REQUIRED_YES" => $birthday_required_yes,
	"BIRTHDAY_REQUIRED_NO" => $birthday_required_no, 
	"MAX_USER_AGE" => $new['max_user_age'],
	"MIN_USER_AGE" => $new['min_user_age'],
	"BIRTHDAY_LOOKFORWARD" => $new['birthday_check_day'],
// End add - Birthday MOD $prune_no, 
	"HTML_TAGS" => $html_tags, 
ersetze mit:

Code: Alles auswählen

	"PRUNE_YES" => $prune_yes,
	"PRUNE_NO" => $prune_no,
	// Start add - Birthday MOD
	"BIRTHDAY_GREETING_YES" => $birthday_greeting_yes,
	"BIRTHDAY_GREETING_NO" => $birthday_greeting_no,
	"BIRTHDAY_REQUIRED_YES" => $birthday_required_yes,
	"BIRTHDAY_REQUIRED_NO" => $birthday_required_no, 
	"MAX_USER_AGE" => $new['max_user_age'],
	"MIN_USER_AGE" => $new['min_user_age'],
	"BIRTHDAY_LOOKFORWARD" => $new['birthday_check_day'],
	// End add - Birthday MOD 
	"HTML_TAGS" => $html_tags, 
suche in der admin_users.php

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,
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,
suche:

Code: Alles auswählen

			'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_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'],
suche in der usercp_viewprofile.php

Code: Alles auswählen

	'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ',
	'INTERESTS' =>// Start add - Birthday MOD
	'BIRTHDAY' => $user_birthday,
// End add - Birthday MOD ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
	'AVATAR_IMG' => $avatar_img,
ersetze mit:

Code: Alles auswählen

	'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ',
	'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
	// Start add - Birthday MOD
	'BIRTHDAY' => $user_birthday,
	// End add - Birthday MOD
	'AVATAR_IMG' => $avatar_img,
suche:

Code: Alles auswählen

	'L_OCCUPATION' => $lang['Occupation'],
	'L_INTERESTS' =>// Start add - Birthday MOD
	'L_BIRTHDAY' => $lang['Birthday'],
// End add - Birthday MOD $lang['Interests'],
ersetze mit:

Code: Alles auswählen

	'L_OCCUPATION' => $lang['Occupation'],
	'L_INTERESTS' => $lang['Interests'],
	// Start add - Birthday MOD
	'L_BIRTHDAY' => $lang['Birthday'],
	// End add - Birthday MOD
Markus

Verfasst: 29.09.2005 15:22
von Telek001
erstmal vielen vielen dank

es hat geklappt ausser bei der admin-board.php

und die viewtopic.php hat auch noch einen fehler

hier die fehler

Code: Alles auswählen

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/htdocs/domain.de/viewtopic.php on line 1181

Code: Alles auswählen

Parse error: parse error, unexpected T_DOUBLE_ARROW, expecting ')' in /home/www/htdocs/domain.de/admin/admin_board.php on line 205
beide dateien wieder zum download hier http://www.himmes.net/gebmod1.zip


vielen vielen dank

Verfasst: 29.09.2005 22:27
von Markus67
Hi ...

suche in der admin_bodard.php

Code: Alles auswählen

	"L_ENABLE_GZIP" => $lang['Enable_gzip'],
	"L_ENABLE_PRUNE" =>// Start add - Birthday MOD
	"L_ENABLE_BIRTHDAY_GREETING" => $lang['Enable_birthday_greeting'],
	"L_BIRTHDAY_GREETING_EXPLAIN" => $lang['Birthday_greeting_expain'],
	"L_BIRTHDAY_REQUIRED" => $lang['Birthday_required'],
	"L_MAX_USER_AGE" => $lang['Max_user_age'],
	"L_MIN_USER_AGE" => $lang['Min_user_age'],
	"L_MIN_USER_AGE_EXPLAIN" => $lang['Min_user_age_explain'],
	"L_BIRTHDAY_LOOKFORWARD" => $lang['Birthday_lookforward'],
	"L_BIRTHDAY_LOOKFORWARD_EXPLAIN" => $lang['Birthday_lookforward_explain'],
// End add - Birthday MOD $lang['Enable_prune'],
	"L_ALLOW_HTML" => $lang['Allow_HTML'],
ersetze mit:

Code: Alles auswählen

	"L_ENABLE_GZIP" => $lang['Enable_gzip'],
	"L_ENABLE_PRUNE" => $lang['Enable_prune'],
	// Start add - Birthday MOD
	"L_ENABLE_BIRTHDAY_GREETING" => $lang['Enable_birthday_greeting'],
	"L_BIRTHDAY_GREETING_EXPLAIN" => $lang['Birthday_greeting_expain'],
	"L_BIRTHDAY_REQUIRED" => $lang['Birthday_required'],
	"L_MAX_USER_AGE" => $lang['Max_user_age'],
	"L_MIN_USER_AGE" => $lang['Min_user_age'],
	"L_MIN_USER_AGE_EXPLAIN" => $lang['Min_user_age_explain'],
	"L_BIRTHDAY_LOOKFORWARD" => $lang['Birthday_lookforward'],
	"L_BIRTHDAY_LOOKFORWARD_EXPLAIN" => $lang['Birthday_lookforward_explain'],
	// End add - Birthday MOD
	"L_ALLOW_HTML" => $lang['Allow_HTML'],
suche in der viewtopic.php

Code: Alles auswählen

		'ROW_CLASS' => $row_class,
		'POSTER_NAME' =>// Start add - Birthday MOD
		'POSTER_AGE' => $poster_age,
// End add - Birthday MOD $poster,
		'POSTER_RANK' => $poster_rank,
ersetze mit:

Code: Alles auswählen

		'ROW_CLASS' => $row_class,
		'POSTER_NAME' => $poster,
		// Start add - Birthday MOD
		'POSTER_AGE' => $poster_age,
		// End add - Birthday MOD
		'POSTER_RANK' => $poster_rank,
Markus

Verfasst: 29.09.2005 22:34
von Telek001
danke jetzt klappts

ausser das die änderung in der viewtopic.php sich so auswirkt das man nur einen beitrag sieht egal viele dadrin sind

schon seltsam

Verfasst: 29.09.2005 22:58
von Markus67
Hi ...

suche in der viewtopic.php

Code: Alles auswählen

//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
// Start add - Birthday MOD
$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
// End add - Birthday MODfor($i = 0; $i < $total_posts; $i++)
{
	$poster_id = $postrow[$i]['user_id'];
ersetze mit:

Code: Alles auswählen

//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
// Start add - Birthday MOD
$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
// End add - Birthday MOD

for($i = 0; $i < $total_posts; $i++)
{
	$poster_id = $postrow[$i]['user_id'];
Markus

Verfasst: 29.09.2005 23:06
von Telek001
du bist mein held

vielen vielen dank

Verfasst: 29.09.2005 23:22
von Markus67
Hi ...

beim nachstenmal ein bischen mehr aufpassen ...

[AFTER, ADD] bedeutet immer ... darunter in einer neuen Zeile einfügen ... dann klappts auch auf Anhieb. :wink:

Und noch ein bischen hilfreiche Lektüre ...
KB:modsfaq

Markus

Verfasst: 30.09.2005 00:19
von Telek001
ahhh das wusste ich nicht danke