ich habe mir die News-Extended installiert und finde die Ansicht richtig gut.
Das Problem ist, das ich gleichzeitig auch die Topnews installiert habe und darauf auch nicht verzichten will.
Die Extended News werden aber nur angezeigt, wenn ich auf News klicke und nicht automatisch unter den TopNews.
Nun gilt es die beiden so zu verknüpfen, das unter den TopNews die Extended News angezeigt werden!
Hier die Codes:
TopNews
<div> <strong>{datum}</strong> <hr style="height: 0px; border: dotted #000000 0px; border-top-width: 1px; " /> </div> <div style="float:left; width:20%; text-align:center; ">{kate}</div> <div style="float:left; width:80%; padding-top:25px; "> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" class="cbg1"> <tr> <td><strong><a href="index.php?news-{id}">{title}</a></strong></td> </tr> <tr> <td class="smalfont">{_lang_from} {username}</td> </tr> </table> </div><br style="clear:both; " /> <div> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="2">{text}</td> </tr> <tr> <td width="50%"><a href="index.php?news-{id}">{kom} {_lang_comments} </a></td> <td width="50%"> <div align="right">» <a href="index.php?news-{id}">{_lang_readwholenews} </a> «</div> </td> </tr> </table> </div> <br /> <br /> {EXPLODE} <br /> <br /><center>{SITELINK}</center> {EXPLODE} <!-- News Kommentare und Mehr lesen --> <table class="border" width="100%" cellpadding="5" cellspacing="1" border="0"> <tr class="Chead"> <th height="25"><b>{NAME}</b></th> </tr> <tr> <td height="25" class="Cdark">{_lang_message}</td> </tr> <tr> <td class="Cnorm"> <div style="float:left; ">{KATE}</div> <div style="float:left; padding-left:10px; ">{TEXT}</div><br style="clear:both; " /> <p></p> <a href="index.php?news"><b>«</b> {_lang_back}</a> </td> </tr> <tr> <td height="25" class="Cmite">{_lang_commentsfor} {NAME}</td> </tr> <tr> <td class="Cnorm"> {EXPLODE} <form action="index.php?news-{NID}" method="POST"> <fieldset> <legend>{_lang_writecomment}</legend> <input type="text" name="name" value="{uname}" /> <input type="submit" value="{_lang_enter}"><br /> <textarea cols="50" rows="2" name="txt"></textarea><br /> </fieldset> </form> <br /> {EXPLODE} <span class="Cmite"># <b>{ZAHL}</b> von {NAME}</span> <br />{TEXT}<br /><br /> {EXPLODE} <br /> <a href="index.php?news"><b>«</b> {_lang_back}</a> </td> </tr> </table> {EXPLODE} <table width="100%" border="0" cellspacing="0" cellpadding="5" class="rand"> <tr class="mite"> <td width="65%"><b>{NAME}</b></td> <td width="15%">{FUER}</td> <td width="20%" align="right">{DATE}</td> </tr><tr class="norm"> <td valign="top" colspan="2">{TEXT}{MEHR}</td> <td valign="top" rowspan="2" align="center">{KATE}</td> </tr><tr class="norm"> <td valign="bottom" height="20" colspan="2" align="center"> <b>{_lang_from} {UNAME}</b> [ {KOM} <a href="index.php?news-1&nid={ID}">{_lang_comments}</a> ] </td> </tr> </table> {EXPLODE} <div> {topnews} <br /> </div>
Die Extended News:
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="newsbg"><tr><td> <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td class="smalfont">{datum} - <strong><a href="index.php?newsextended-{id}">{title}</a></strong></td> </tr> <tr> <td><hr style="height: 0px; border: dotted #000000 0px; border-top-width: 1px; " /></td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" class="cbg1"> <tr> <td align="center">{kate}</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td>{text}</td> </tr> <tr> <td><hr style="height: 0px; border: dotted #000000 0px; border-top-width: 1px; " /></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td align="left" width="60%" class="smalfont">Geschrieben von <strong>{username}</strong>{edit}</td> <td align="right" width="40%"> <a href="index.php?user-details-{uid}" alt="Benutzerinfo: {username}" title="Benutzerinfo: {username}"><img src="include/images/icons/news/informant.gif" alt="Benutzerinfo: {username}" border="0"> <a href="index.php?newsextended-{id}" alt="Kommentare ({kom})" title="Kommentare ({kom})"><img src="include/images/icons/news/comments.gif" alt="Kommentare ({kom})" border="0"></a> <a href="index.php?newsextended-send-{id}" alt="Diese News einen Freund senden" title="Diese News einen Freund senden"><img src="include/images/icons/news/send.gif" alt="Diese News einen Freund senden" border="0"></a> <a href="index.php?newsextended-print-{id}" alt="Druckoptimierte Version" title="Druckoptimierte Version"><img src="include/images/icons/news/print.gif" alt="Druckoptimierte Version" border="0"></a> {klicks} {readwholenews} </td> </tr> </table> </td></tr></table> <br /> <br /> {EXPLODE} <br /> <br /><center>{SITELINK}</center> {EXPLODE} <script language="JavaScript" type="text/javascript"> function delkom (NID, ID) { var Check = confirm("Kommentar wirklich löschen?") if (Check == true) window.open("index.php?newsextended-"+NID+"-d"+ID,"_self"); }</script> <!-- News Kommentare und Mehr lesen --> <table width="100%" cellpadding="5" cellspacing="1" border="0"> <tr class="Chead"> <th height="25"><b>{NAME}</b></th> </tr> <tr> <td height="25">{_lang_message}</td> </tr> <tr> <td align="center">{KATE}</td> </tr> <tr> <td > <div style="float:left; padding-left:10px; ">{TEXT}</div><br style="clear:both; " /> <p></p> <a href="javascript:history.back(1)"><b>«</b>{_lang_back}</a> </td> </tr> <tr> <td height="25">{_lang_commentsfor} {NAME}</td> </tr> <tr> <td> {EXPLODE} <form action="index.php?newsextended-{NID}" method="POST"> <fieldset> <legend>{_lang_writecomment}</legend> <input type="text" name="name" value="{uname}" /> {ANTISPAM} <input type="submit" value="{_lang_enter}"><br /> <textarea style="width: 98%" cols="50" rows="2" name="txt"></textarea><br /> </fieldset> </form> <br /> {EXPLODE} <span class="Cmite"># <b>{ZAHL}</b> von {NAME}</span> <br />{TEXT}<br /><br /> {EXPLODE} <br /> <a href="javascript:history.back(1)"><b>«</b> {_lang_back}</a> </td> </tr> </table> {EXPLODE} <table width="100%" border="0" cellspacing="0" cellpadding="5" class="rand"> <tr class="mite"> <td width="65%"><b>{NAME}</b></td> <td width="15%">{FUER}</td> <td width="20%" align="right">{DATE}</td> </tr><tr class="norm"> <td valign="top" colspan="2">{TEXT}{MEHR}</td> <td valign="top" rowspan="2" align="center">{KATE}</td> </tr><tr class="norm"> <td valign="bottom" height="20" colspan="2" align="center"> <b>{_lang_by} {UNAME}</b> [ {KOM} <a href="index.php?newsextended-1&nid={ID}">{_lang_comments}</a> ] </td> </tr> </table>
Ich hoffe das geht, vielen Dank in voraus!
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link