Verfasst: 19.10.2003 20:11
Schick mir die url per pm.
ich schweige auch wie nen Grab und kann dir dann gerne helfen
ich schweige auch wie nen Grab und kann dir dann gerne helfen

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
------[erzeuge]------
def_costumfuction.php
------[füge Code hinzu]------
<?php
/***************************************************************************
* def_customfuncs_std.php (custom code for PCP)
* ---------------------
* For Profile-Center-Mod von Pirre ***************************************************************************/
/***************************************************************************
*
* 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;
}
//-----------------------------------
//
// user_map output function
//
//-----------------------------------
function pcp_output_map($field_name, $view_userdata, $map_name='')
{
global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;
global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;
$txt = '';
$img = '';
$res = '';
if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) )
{
$link = $view_userdata[$field_name];
$title = $lang[Location];
$temp_url = append_sid("./map.$phpEx?highlight=" . $view_userdata['user_id']);
$txt = '<a href="' . $temp_url . '" title="' . $view_userdata[$field_name] . '">' . $view_userdata[$field_name]. '</a>';
// result
$res = pcp_output_format($field_name, $txt, $img, $map_name);
}
return $res;
}
?>
-----[ öffne ]------
profilcp/def_userfields.php
-----[finde]---------
'user_from' => array(
'lang_key' => 'Location',
'class' => 'real',
'type' => 'VARCHAR',
-----[ersetzte mit]--------
'user_from' => array(
'lang_key' => 'Location',
'class' => 'real',
'type' => 'VARCHAR',
'dsp_func' => 'pcp_output_map',
------save all files--------