Verfasst: Sa 17.Jul, 2004 17:31
habd ir noch was oben rein geschrieben
phpBB-Support, PC Hilfe und vieles mehr...
https://www.oxpus.de:443/
Nene das ist schon richtig soAlso bei der Sache bin ich mir nicht sicher:
sicher das man hier mir , $lpid ersetzen muss und nicht mit , &$lpid ?Code: Alles auswählen
# #-----[ FIND ]------------------------------------------ # function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_id, &$user_id) # #-----[ IN-LINE FIND ]------------------------------------------ # &$user_id # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # , $lpid
den teil find ich da net....templates/subSilver/index_box.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="{catrow.forumrow.INC_CLASS}" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
Code: Alles auswählen
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" width="100%" nowrap="nowrap"> {catrow.tablehead.L_FORUM} </th>
</tr>
<!-- END tablehead -->
<!-- BEGIN cathead -->
<tr>
<!-- BEGIN inc -->
<td width="46" class="{catrow.cathead.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0" /></td>
<!-- END inc -->
<td class="{catrow.cathead.CLASS_CAT}" width="100%" colspan="2"><span class="cattitle"><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span></td>
</tr>
<!-- END cathead -->
<!-- BEGIN forumrow -->
<tr>
<!-- BEGIN inc -->
<td width="46" class="{catrow.forumrow.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0" /></td>
<!-- END inc -->
<td class="row1" width="100%" height="50" colspan="{catrow.forumrow.INC_SPAN}" valign="middle" align="center" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'">
<!-- BEGIN forum_icon -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" height="47">
<tr>
<td width="46" align="center"><a href="{catrow.forumrow.U_VIEWFORUM}"><img src="{catrow.forumrow.ICON_IMG}" border="0" /></a></td>
<td>
<!-- END forum_icon -->
<span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="deund" {catrow.forumrow.LAST_POST_DATA}>{catrow.forumrow.FORUM_NAME}</a><br /></span>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<!-- BEGIN forum_icon -->
</td>
</tr>
</table>
<!-- END forum_icon -->
</td></tr>
<!-- END forumrow -->
<!-- BEGIN catfoot -->
<tr>
<!-- BEGIN inc -->
<td width="46" class="{catrow.catfoot.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0" /></td>
<!-- END inc -->
<td colspan="{catrow.catfoot.INC_SPAN}" height="1" class="spaceRow"><img src="{SPACER}" alt="" width="1" height="1" /></td>
</tr>
<!-- END catfoot -->
<!-- BEGIN tablefoot -->
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br class="gensmall" />
<!-- END tablefoot -->
<!-- END catrow -->Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$visit_time= (empty($topic_read[topic_id][$topic_id]))? 0 : $topic_read[topic_id][$topic_id];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$last_post_new = ($last_post_time > $visit_time && $last_post_time > $except_time) ? '1' : '0';
#
#-----[ FIND ]------------------------------------------
#
if(($last_post_time < $visit_time && $visit_time < $post_edit_time) || ($last_post_id == $postrow[$i]['post_id']))
#
#-----[ REPLACE WITH ]------------------------------------------
#
if((!$last_post_new && $visit_time < $post_edit_time) || ($last_post_id == $postrow[$i]['post_id']))Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------
#
$f = (isset($HTTP_POST_VARS['f'])) ? $HTTP_POST_VARS['f'] : $HTTP_GET_VARS['f'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$save_time = time() - ($upi2db_config['auto_read_after_days'] * 86400);
$except_time = ($userdata['user_regdate'] > $save_time) ? $userdata['user_regdate'] : $save_time;
#
#-----[ FIND ]------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_announcements++;
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
//<!-- BEGIN Unread Post Information to Database Mod -->
$result_an = $db->sql_query($sql);
if(check_is_upi2db_on())
{
if($upi2db_config['edit_topic_first'])
{
while( $row = $db->sql_fetchrow($result) )
{
$save_topic_id = $row['topic_id'];
$post_edit_time = $read_time[edit][$save_topic_id];
$is_always_read = $topic_read[alway_read][$row['topic_id']];
if(($topic_read[topic_id][$save_topic_id] < $post_edit_time) && ($post_edit_time > $except_time) && $is_always_read != 1)
{
$edited_topic_id_annouc[$row['topic_id']] = $row['topic_id'];
$topic_rowset[] = $row;
$total_announcements++;
}
}
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$edited_t_id_a = $edited_topic_id_annouc[$row['topic_id']];
$is_always_read = $topic_read[alway_read][$row['topic_id']];
if($edited_t_id_a != $row['topic_id'] && $is_always_read != 1)
{
$topic_rowset[] = $row;
$total_topics++;
}
}
}
else
{
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_announcements++;
}
}
}
else
{
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_announcements++;
}
}
//<!-- END Unread Post Information to Database Mod -->
#
#-----[ DELETE ]------------------------------------------
#
//<!-- BEGIN Unread Post Information to Database Mod -->
if(!empty($upi2db_config['edit_topic_first']) && check_is_upi2db_on())
{
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
$total_topics_sticky = 0;
while( $row = $db->sql_fetchrow($result) )
{
if($row['topic_type'] == POST_STICKY )
{
$topic_rowset[] = $row;
$total_topics_sticky++;
}
}
$total_topics_edit = 0;
while( $row = $db->sql_fetchrow($result) )
{
$save_topic_id = $row['topic_id'];
$post_edit_time = $read_time[edit][$save_topic_id];
$save_time = time() - ($upi2db_config['auto_read_after_days'] * 86400);
$except_time = ($userdata['user_regdate'] > $save_time) ? $userdata['user_regdate'] : $save_time;
if(($topic_read[topic_id][$save_topic_id] < $post_edit_time) && ($post_edit_time > $except_time) && ($topic_read[alway_read][$row['topic_id']] != 1))
{
$edited_topic_id[$row['topic_id']] = $row['topic_id'];
$topic_rowset[] = $row;
$total_topics_edit++;
}
}
}
//<!-- END Unread Post Information to Database Mod -->
#
#-----[ FIND ]------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_topics++;
}
#
#-----[ REPLACE, WITH ]------------------------------------------
#
//<!-- BEGIN Unread Post Information to Database Mod -->
if(check_is_upi2db_on())
{
if($upi2db_config['edit_topic_first'])
{
// Sticky Editet
while( $row = $db->sql_fetchrow($result) )
{
$save_topic_id = $row['topic_id'];
$post_edit_time = $read_time[edit][$save_topic_id];
if(($topic_read[topic_id][$save_topic_id] < $post_edit_time) && ($post_edit_time > $except_time) && $topic_read[alway_read][$row['topic_id']] != 1 && $row['topic_type'] == POST_STICKY)
{
$edited_topic_id_sticky[$row['topic_id']] = $row['topic_id'];
$topic_rowset[] = $row;
$total_topics++;
}
}
// Sticky Normal
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$edited_t_id_s = $edited_topic_id_sticky[$row['topic_id']];
if($row['topic_type'] == POST_STICKY && $edited_t_id_s != $row['topic_id'] && $topic_read[alway_read][$row['topic_id']] != 1)
{
$topic_rowset[] = $row;
$total_topics++;
}
}
// Normal Editet
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$save_topic_id = $row['topic_id'];
$post_edit_time = $read_time[edit][$save_topic_id];
if(($topic_read[topic_id][$save_topic_id] < $post_edit_time) && ($post_edit_time > $except_time) && $topic_read[alway_read][$row['topic_id']] != 1 && $row['topic_type'] != POST_STICKY)
{
$edited_topic_id[$row['topic_id']] = $row['topic_id'];
$topic_rowset[] = $row;
$total_topics++;
}
}
// Normal NORMAL
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$edited_t_id_n = $edited_topic_id[$row['topic_id']];
$edited_t_id_s = $edited_topic_id_sticky[$row['topic_id']];
if($edited_t_id_n != $row['topic_id'] && $edited_t_id_n != $row['topic_id'] && $topic_read[alway_read][$row['topic_id']] != 1 && $row['topic_type'] != POST_STICKY)
{
$topic_rowset[] = $row;
$total_topics++;
}
}
}
else
{
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_topics++;
}
}
while( $row = $db->sql_fetchrow($result_an) )
{
if($topic_read[alway_read][$row['topic_id']] == 1)
{
$topic_rowset[] = $row;
$total_topics++;
}
}
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
if($topic_read[alway_read][$row['topic_id']] == 1)
{
$topic_rowset[] = $row;
$total_topics++;
}
}
}
else
{
while( $row = $db->sql_fetchrow($result) )
{
$topic_rowset[] = $row;
$total_topics++;
}
}
//<!-- END Unread Post Information to Database Mod -->
#
#-----[ DELETE ]------------------------------------------
#
//<!-- BEGIN Unread Post Information to Database Mod -->
if(check_is_upi2db_on())
{
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
if($topic_read[alway_read][$row['topic_id']] == 1)
{
$topic_rowset[] = $row;
$total_topics++;
}
}
}
//<!-- END Unread Post Information to Database Mod -->
#
#-----[ DELETE ]------------------------------------------
#
//<!-- BEGIN Unread Post Information to Database Mod -->
if(!empty($upi2db_config['edit_topic_first']) && check_is_upi2db_on())
{
$total_topics += $total_topics_edit;
$total_topics += $total_topics_sticky;
}
//<!-- END Unread Post Information to Database Mod -->Jadas auch ändern wenn man den Split Mod eingebaut hat?