Map Mod

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
Benutzeravatar
Gert
Mitglied
Beiträge: 954
Registriert: 17.11.2002 13:44
Wohnort: Bettlach
Kontaktdaten:

Map Mod

Beitrag von Gert »

Hi Leuts......

hab mal den Map Mod in mein testforum eingebaut.
Wenn ich nun in mein Profil will kommt folgende Fehlermeldung:
Parse error: parse error, expecting `')'' in D:\WWWFTPROOT2\Bari\phpBB2\includes\usercp_register.php on line 94

Code: Alles auswählen

LAIN' => $lang['Link_remote_Avatar_explain'],
		'L_DELETE_AVATAR' => $lang['Delete_Image'],
		'L_CURRENT_IMAGE' => $lang['Current_Image'],

		'L_SIGNATURE' => $lang['Signature'],
		'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
		'L_NOTIFY_ON_REPLY' => $lang['Always_notify'],
		'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'],
		'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'],
		'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'],
		'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'],
		'L_PREFERENCES' => $lang['Preferences'],
		'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'],
		'L_ITEMS_REQUIRED' => $lang['Items_required'],
		'L_REGISTRATION_INFO' => $lang['Registration_info'],
		'L_PROFILE_INFO' => $lang['Profile_info'],
		'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],
		'L_EMAIL_ADDRESS' => $lang['Email_address'],
// Begin Map Mod
'LONGITUDE' => $longitude,
'LATITUDE' => $latitude,
'L_LONGITUDE' => $lang['map_longitude'],
'L_LATITUDE' => $lang['map_latitude'],
'L_LONGITUDE_HELP' => $lang['map_longitudehelp'],
'L_LATITUDE_HELP' => $lang['map_latitudehelp'],
'L_MAP_INFO' => $lang['map_section_title'],
'L_MAP_DESCRIPTION' => $lang['map_section_description'],
'L_DEGREES' => $lang['map_degrees'],
'L_MINUTES' => $lang['map_minutes'],
'L_FIND_PLACE' => $lang['map_find_place'],
'U_FIND_PLACE' => append_sid("map_search.$phpEx"),
// End Map Mod[quote]
Wobei "//End Map Mod
" die Linie 94 sein soll!?



Gruss Gert
Greetz Gert

Mein Board:http://www.gege65.ch/FSSForum/ ----- Meine private HP: http://www.gege65.ch
Benutzeravatar
netzmeister
Ehemaliges Teammitglied
Beiträge: 1146
Registriert: 02.05.2003 20:59
Wohnort: Freiburg
Kontaktdaten:

Beitrag von netzmeister »

Hallo,
änder mal das

Code: Alles auswählen

'U_FIND_PLACE' => append_sid("map_search.$phpEx"),
in das

Code: Alles auswählen

'U_FIND_PLACE' => append_sid('map_search.$phpEx'),
ansonsten mal 10 Zeilen darüber und darunter mitposten..

Gruß netzmeister
Gruß netzmeister
Die "Suche" ist euer Freund
Benutzeravatar
Gert
Mitglied
Beiträge: 954
Registriert: 17.11.2002 13:44
Wohnort: Bettlach
Kontaktdaten:

Beitrag von Gert »

Hi Netzmeister.....

war nix mit deinem Tipp :(

Code: Alles auswählen

'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
		'L_NOTIFY_ON_REPLY' => $lang['Always_notify'],
		'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'],
		'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'],
		'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'],
		'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'],
		'L_PREFERENCES' => $lang['Preferences'],
		'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'],
		'L_ITEMS_REQUIRED' => $lang['Items_required'],
		'L_REGISTRATION_INFO' => $lang['Registration_info'],
		'L_PROFILE_INFO' => $lang['Profile_info'],
		'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],
		'L_EMAIL_ADDRESS' => $lang['Email_address'],
// Begin Map Mod
'LONGITUDE' => $longitude,
'LATITUDE' => $latitude,
'L_LONGITUDE' => $lang['map_longitude'],
'L_LATITUDE' => $lang['map_latitude'],
'L_LONGITUDE_HELP' => $lang['map_longitudehelp'],
'L_LATITUDE_HELP' => $lang['map_latitudehelp'],
'L_MAP_INFO' => $lang['map_section_title'],
'L_MAP_DESCRIPTION' => $lang['map_section_description'],
'L_DEGREES' => $lang['map_degrees'],
'L_MINUTES' => $lang['map_minutes'],
'L_FIND_PLACE' => $lang['map_find_place'],
'U_FIND_PLACE' => append_sid('map_search.$phpEx'),
// End Map Mod		

'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],
		'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'],
		'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'],
		'S_HIDDEN_FIELDS' => $s_hidden_fields,
		'S_FORM_ENCTYPE' => $form_enctype,
		'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
	);

	//
	// This is another cheat using the block_var capability
	// of the templates to 'fake' an IF...ELSE...ENDIF solution
	// it works well :)
Gruss Gert
Greetz Gert

Mein Board:http://www.gege65.ch/FSSForum/ ----- Meine private HP: http://www.gege65.ch
Benutzeravatar
netzmeister
Ehemaliges Teammitglied
Beiträge: 1146
Registriert: 02.05.2003 20:59
Wohnort: Freiburg
Kontaktdaten:

Beitrag von netzmeister »

Hallo,
ein paar Zeilen weiter oben hätte ich gerne noch gesehen...

Gruß netzmeister
Gruß netzmeister
Die "Suche" ist euer Freund
Benutzeravatar
Gert
Mitglied
Beiträge: 954
Registriert: 17.11.2002 13:44
Wohnort: Bettlach
Kontaktdaten:

Beitrag von Gert »

Hi Netzmeister.....

Code: Alles auswählen

'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'],
		'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'],
		'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'],
		'L_HIDE_USER' => $lang['Hide_user'],
		'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],

		'L_AVATAR_PANEL' => $lang['Avatar_panel'],
		'L_AVATAR_EXPLAIN' => sprintf($lang['Avatar_explain'], $board_config['avatar_max_width'], $board_config['avatar_max_height'], (round($board_config['avatar_filesize'] / 1024))),
		'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'],
		'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'],
		'L_UPLOAD_AVATAR_URL_EXPLAIN' => $lang['Upload_Avatar_URL_explain'],
		'L_AVATAR_GALLERY' => $lang['Select_from_gallery'],
		'L_SHOW_GALLERY' => $lang['View_avatar_gallery'],
		'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'],
		'L_LINK_REMOTE_AVATAR_EXPLAIN' => $lang['Link_remote_Avatar_explain'],
		'L_DELETE_AVATAR' => $lang['Delete_Image'],
		'L_CURRENT_IMAGE' => $lang['Current_Image'],

		'L_SIGNATURE' => $lang['Signature'],
		'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
		'L_NOTIFY_ON_REPLY' => $lang['Always_notify'],
		'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'],
		'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'],
		'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'],
		'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'],
		'L_PREFERENCES' => $lang['Preferences'],
		'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'],
		'L_ITEMS_REQUIRED' => $lang['Items_required'],
		'L_REGISTRATION_INFO' => $lang['Registration_info'],
		'L_PROFILE_INFO' => $lang['Profile_info'],
		'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],
		'L_EMAIL_ADDRESS' => $lang['Email_address'],
// Begin Map Mod
'LONGITUDE' => $longitude,
'LATITUDE' => $latitude,
'L_LONGITUDE' => $lang['map_longitude'],
'L_LATITUDE' => $lang['map_latitude'],
'L_LONGITUDE_HELP' => $lang['map_longitudehelp'],
'L_LATITUDE_HELP' => $lang['map_latitudehelp'],
'L_MAP_INFO' => $lang['map_section_title'],
'L_MAP_DESCRIPTION' => $lang['map_section_description'],
'L_DEGREES' => $lang['map_degrees'],
'L_MINUTES' => $lang['map_minutes'],
'L_FIND_PLACE' => $lang['map_find_place'],
'U_FIND_PLACE' => append_sid('map_search.$phpEx'),
// End Map Mod		

'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],
		'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'],
		'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'],
		'S_HIDDEN_FIELDS' => $s_hidden_fields,
		'S_FORM_ENCTYPE' => $form_enctype,
		'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
	);

	//
	// This is another cheat using the block_var capability
	// of the templates to 'fake' an IF...ELSE...ENDIF solution
	// it works well :)
	//
	if ( $mode != 'register' )
	{
		if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
		{
			$template->assign_block_vars('switch_avatar_block', array() );

	
Gruss gert
Greetz Gert

Mein Board:http://www.gege65.ch/FSSForum/ ----- Meine private HP: http://www.gege65.ch
Benutzeravatar
Gert
Mitglied
Beiträge: 954
Registriert: 17.11.2002 13:44
Wohnort: Bettlach
Kontaktdaten:

Beitrag von Gert »

Greetz Gert

Mein Board:http://www.gege65.ch/FSSForum/ ----- Meine private HP: http://www.gege65.ch
Benutzeravatar
Nico Haase
Mitglied
Beiträge: 1100
Registriert: 10.08.2003 15:19
Wohnort: Neu-Anspach / Darmstadt
Kontaktdaten:

Beitrag von Nico Haase »

zeile 94 ist ganz woanners, da heißt es:

Code: Alles auswählen

$strip_var_list = array('username' => 'username',

// Begin Map Mod
$strip_vars_mapmod = array('longitude' => 'longitude', 'latitude' => 'latitude');
$strip_var_list = array_merge ($strip_var_list, $strip_vars_mapmod);
// End Map Mod

 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
du beginnst mitten in einem array ein neues array. verschieb das mal, damit es so aussieht:

Code: Alles auswählen

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

// Begin Map Mod
$strip_vars_mapmod = array('longitude' => 'longitude', 'latitude' => 'latitude');
$strip_var_list = array_merge ($strip_var_list, $strip_vars_mapmod);
// End Map Mod
Buchtips.net bietet mehr als 2500 Buchrezensionen
Benutzeravatar
Gert
Mitglied
Beiträge: 954
Registriert: 17.11.2002 13:44
Wohnort: Bettlach
Kontaktdaten:

Beitrag von Gert »

Hi nico.....

jo des wars.....danke!

Iss aber in der Install.doc so angegeben das mans da reinhauen soll wo ichs drin hatte :-?

Gruss gert
Greetz Gert

Mein Board:http://www.gege65.ch/FSSForum/ ----- Meine private HP: http://www.gege65.ch
Antworten

Zurück zu „phpBB 2.0: Mod Support“