Seite 2 von 2

Verfasst: 23.04.2006 19:28
von fanrpg

Code: Alles auswählen

<!-- Hot Pick MOD: -->
<table width="98%" cellspacing="0" cellpadding="3" border="0" align="left" class="forumline">
<th>Hot Topics</th>
<tr><td>{L_HOT}</td></tr>
<!-- BEGIN HOTPICKS --> 
<tr><td><a href="{HOTPICKS.LINKS}"><span class="mainmenu">{HOTPICKS.NAME}</span></a><span class="mainmenu"> - {HOTPICKS.VIEWS} </span> Views</td></tr>
<!-- END HOTPICKS --> 
</table>
<!-- Hot Pick MOD-->
Da fehlt immer noch ein <tr> und </tr> :-?
Desweiteren:

Code: Alles auswählen

$sql = "SELECT topic_id, topic_views, topic_title
          FROM " . TOPICS_TABLE . "
          ORDER BY topic_views DESC
          LIMIT 5;";
ist das falsch!

Verfasst: 23.04.2006 19:46
von blubbin
Hi

desweiteren solltest auch mal dein Mod Template überarbeiten, siehe KB:modtemplate. Für mich sind die deutsche und die englische Übersetzung unterschiedlich, zumindest mit meinen Englischkenntnissen. :wink:

Gruß

Verfasst: 23.04.2006 19:51
von faraday
fanrpg hat geschrieben:

Code: Alles auswählen

<!-- Hot Pick MOD: -->
<table width="98%" cellspacing="0" cellpadding="3" border="0" align="left" class="forumline">
<th>Hot Topics</th>
<tr><td>{L_HOT}</td></tr>
<!-- BEGIN HOTPICKS --> 
<tr><td><a href="{HOTPICKS.LINKS}"><span class="mainmenu">{HOTPICKS.NAME}</span></a><span class="mainmenu"> - {HOTPICKS.VIEWS} </span> Views</td></tr>
<!-- END HOTPICKS --> 
</table>
<!-- Hot Pick MOD-->
Da fehlt immer noch ein <tr> und </tr> :-?
Desweiteren:

Code: Alles auswählen

$sql = "SELECT topic_id, topic_views, topic_title
          FROM " . TOPICS_TABLE . "
          ORDER BY topic_views DESC
          LIMIT 5;";
ist das falsch!
Ne! Das is nich falsch. Ich hab den MOD ja nich mehr auf 1 Topic, sondern auf 5 beschränkt!

Verfasst: 23.04.2006 19:55
von fanrpg
Türlich ein ; am Ende jeder SQL-Abfrage hat nix zu suchen!