Ich bin bei der Installation des Map Mod auf durch den PCP- Mod bedingte Probleme gestoßen. Und zwar kannte ich mit Hilfe des Easy Mods folgende Dateien nicht automatisch verändern/anpassen:
overall_header.tpl - welche ich aber im Moment nicht zu verändern brauche, da ich mit dem "Java Script Header Menü" -Mod arbeiten wollte
admin_users.php - konnte ich durch eine geringfügige Änderung des Installationsskiptes auch automatisieren
viewtopic_body - Und hier hänge ich jetzt fest

im Installationsskipt steht :
Code: Alles auswählen
#
#-----[ FINDE ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
Code: Alles auswählen
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><a name="{postrow.U_POST_ID}"></a>{postrow.AUTHOR_PANEL}</td>
Ich bin dann durch intensive Suche hier und in den beiden Autorenforen auf folgenden Code gestoßen:
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--------