ich hab den map mod eingebaut, doch jetzt gibt es, glaub ich, in der vietopic massig probleme, normalerweise wird immer angezeigt "haustir anzeigen" oder "items" das "€" (cash mod) ist auch nicht mehr da, ürgendwas stimmt also nicht.
hier ist die viewtopic, viewtopic_body, und usercp_vietopic:
http://www.milania.de/phpBB2/Datei%20Be ... rofile.txt
http://www.milania.de/phpBB2/Datei%20Be ... wtopic.txt
http://www.milania.de/phpBB2/Datei%20Be ... c_body.txt
villeicht ist da ja ürgendwo ein fehler, ich hab mal nichts entdeckt, ich kann auch nicht gut php
hier noch die änderungen vom map mod, ich hab sie aber schon alle entfernt, ging aber auch nicht:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username
#
#-----[ IN-LINE FIND ]------------------------------------------
#
pt.bbcode_uid
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, m.longitude, m.latitude
#
#-----[ FIND ]------------------------------------------
#
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
#
#-----[ IN-LINE FIND ]------------------------------------------
#
USERS_TABLE . " u
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
LEFT JOIN " . MAP_MOD_USER_TABLE . " m ON u.user_id=m.user_id
#
#-----[ FIND ]------------------------------------------
#
'U_POST_ID' => $postrow[$i]['post_id'])
);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//begin map MOD
if (($poster_from != '') && ((float)$postrow[$i]['longitude'] != 0)) {
$template->assign_block_vars('postrow.switch_map', array(
'U_MAP' => append_sid("map.$phpEx?highlight=".$postrow[$i]['user_id'])
));
}
else {
$template->assign_block_vars('postrow.switch_no_map', array());
}
//end map MOD
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<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>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<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 />
<!-- BEGIN switch_map -->
<a href="{postrow.switch_map.U_MAP}" class="gensmall">{postrow.POSTER_FROM}</a>
<!-- END switch_map -->
<!-- BEGIN switch_no_map -->
{postrow.POSTER_FROM}
<!-- END switch_no_map -->
</span><br /></td>
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin Map Mod
$sql = 'SELECT *
FROM ' . MAP_MOD_USER_TABLE . '
WHERE user_id='.$profiledata['user_id'];
if(!$map_result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't obtain map information.", "", __LINE__, __FILE__, $sql);
}
$map_row = $db->sql_fetchrow($map_result);
if ((intval($map_row['user_id'])<>0) && ((float)$map_row['longitude']<>0.0) && ((float)$map_row['latitude']<>0.0))
{
$map_highlight_id=$profiledata['user_id'];
$template->assign_block_vars('switch_user_map', array());
}
else
{
$map_highlight_id=0;
$template->assign_block_vars('switch_user_no_map', array());
}
$db->sql_freeresult($map_result);
// End Map Mod
#
#-----[ FIND ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin Map Mod
'U_USER_MAP' => append_sid("map.$phpEx?highlight=".$map_highlight_id),
'L_USER_MAP' => $lang['map_show_user'],
// End Map Mod