MODs: Nein
Dein Wissensstand: Einsteiger
Link zu Deinem Forum: [url]http://[/url]
PHP Version:
MySQL Version:
Was hast Du gemacht, bevor das Problem aufgetreten ist?
Was hast Du bereits versucht um das Problem zu lösen?
Fehlerbeschreibung und Nachricht
So, ihr wisst ja dass ich so ein kleiner "hypercell Fetishist" bin .. *lol*
naja, mir ist da noch ein kleiner Fehler aufgefallen.
Also und zwar geht es um die ganz rechte ell im Index ("Letzter Beitrag").
Bisher hatte ich es so gelöst:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_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>';
#
#-----[ ADD, AFTER ]------------------------------------------
#
$last_postlink = '' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '';
#
#-----[ FIND ]------------------------------------------
#
'LAST_POST' => $last_post,
#
#-----[ ADD, AFTER ]------------------------------------------
#
'LAST_POSTLINK' => $last_postlink,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" width="160" align="center" valign="middle" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
#
#-----[ REPLACE WITH ]------------------------------
#
<td class="row1" width="160" align="center" valign="middle" nowrap="nowrap" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.forumrow.LAST_POSTLINK}'"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
Das funktioniert auch nach wie vor hervorragend, bis auf eins:
Ich hab den Simple SubForum Mod drinnen, und wenn nun der letzte Beitrag in einem Unterforum gemacht wurde und man auf die Cell im Index klickt, landet man nicht beim letzten Thema im Unterforum (also das eigentlich neuste) sondern bem neusten Thema, welches im "normalen" Forum, das über dem Unterforum, gemacht wurde.
Wie kann man das beheben?
Alle benötigten dateien wie immer im Anhang.
Dankeschön!!
