Betrifft: Simple Subforums Fix
Ein Problem ist noch übriggeblieben: Und zwar werden in den
Subforen jene URLs in der Spalte "Letzter Beitrag", die mit dem
icon_latest_reply.gif verknüpft sind, noch nicht mit Keyword in der URL umgeschrieben, sondern auf die Art viewtopic,p,2189.html#2189
Für die "normale" Viewforum.php erledigt das ja das Add-on Nr. 2 aus dem Download-Paket:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//-- mod : avoid double content urls -------------------------------------------
//-- add
$total_pages_topic = ($replies + 1) / $board_config['posts_per_page'] <= 1 ? '' : '&start=' . floor($replies / $board_config['posts_per_page']) * intval($board_config['posts_per_page']);
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id" . $total_pages_topic) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
//-- fin mod : avoid double content urls ---------------------------------------
Die betreffende Codestelle in der viewforum.php, die nach Einbau der Simple Subforums für den Link zum letzten Beitrag in einem Subforum sorgt, lautet:
Code: Alles auswählen
$last_post_time = create_date($board_config['default_dateformat'], $subforum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = $last_post_time . '<br />';
$last_post .= ( $subforum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($subforum_data[$j]['post_username'] != '' ) ? $subforum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $subforum_data[$j]['user_id']) . '">' . $subforum_data[$j]['username'] . '</a> ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $subforum_data[$j]['forum_last_post_id']) . '#' . $subforum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
Ich habe zwar versucht, dass Add-on für die eben genannte Codestelle umzuschreiben, aber es hat - wen wundert´s - nicht funktioniert.
LG, IPB_Flüchtling