1.
Ich finde die meisten codes in der page_header.php nicht, da ich dieseschon oft geändert habe durch die anderen Mod´s
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
#
#-----[ REPLACE WITH ]----------------------------------------
#
// Start replacement - Topic in Who is online MOD
$user_forum_sql = ( !empty($topic_id) ) ? "AND s.session_topic = " . intval($topic_id) :(( !empty($forum_id) ) ? "AND s.session_page = ".intval($forum_id) : '');
// End replacement - Topic in Who is online MOD
#
#-----[ FIND ]------------------------------------------------
#
$online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist;
#
#-----[ REPLACE WITH ]----------------------------------------
#
// Start replacement - Topic in Who is online MOD
$online_userlist = $lang['Registered_users'].' ' . $online_userlist;
// End replacement - Topic in Who is online MOD
#
#-----[ FIND ]------------------------------------------------
#
if ( $total_online_users == 0 )
{
$l_t_user_s = $lang['Online_users_zero_total'];
}
else if ( $total_online_users == 1 )
{
$l_t_user_s = $lang['Online_user_total'];
}
else
{
$l_t_user_s = $lang['Online_users_total'];
}
#
#-----[ REPLACE WITH ]----------------------------------------
#
// Start replacement - Topic in Who is online MOD
if ( $total_online_users == 0 )
{
$l_t_user_s = ( ( isset($topic_id) ) ? $lang['Browsing_topic'] : ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Online_users_zero_total'] ) );
}
else
{
$l_t_user_s = ( ( isset($topic_id) ) ? $lang['Browsing_topic'] : ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Online_users_total'] ) );
}
// End replacement - Topic in Who is online MODUnd als zweites Problem habe ich das in den tpl Dateien auch nicht so dort drinne stehen und ich ned genau weiß wo ichs eintragen soll:
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
{LOGGED_IN_USER_LIST}</b></span></td>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{LOGGED_IN_USER_LIST}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
{TOTAL_USERS_ONLINE}<br/>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<tr>
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Start add - Topic in Who is online MOD -->
<span class="gensmall"><b><br/>{TOTAL_USERS_ONLINE}<br/>{LOGGED_IN_USER_LIST}</b></span></td>
<!-- End add - Topic in Who is online MOD -->
#
#-----[ FIND ]------------------------------------------------
#
<span class="gensmall"><b>{PAGINATION}</b><br />
</span></td>
</tr>
#
#-----[ REPLACE WITH ]----------------------------------------
#
<!-- Start replacement - Topic in Who is online MOD -->
<td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
</tr>
<!-- End replacement - Topic in Who is online MOD -->
Ich habe die Dateien mal gepackt angehängt und hoffe es kann jemand helfen