Seite 1 von 1
Hypercells in Hierarchy Mod
Verfasst: 27.09.2003 01:31
von ZStorm
Hi.
Wüsste vielleicht jemand, wie man den Hypercells Mod auch auf die Kategorien in der Index Übersicht integriert?
Die Hypercells werden zwar in der Thread Übersicht angezeigt, aber nicht in der Index Übersicht.
2.0.6 ist die version.
Verfasst: 27.09.2003 02:27
von Leuchte
ich versteh nicht ganz.
kannst du's ein wenig präziser erklären?

du kannst doch auch beim hierarchy mod wie in der anleitung des hypercells mod beschrieben vorgehen. die datei wäre dann nicht index_body.tpl sondern index_box.tpl
Verfasst: 27.09.2003 07:32
von ZStorm
Ja auf die Idee bin ich auch schon gekommen.
Hat aber irgendwie nicht geklappt, das die einzelnen Kategorien auf der Startseite auch den Mouseover Effekt haben.
Hier mal die normale(unbearbeitete) index_box.tpl
vielleicht weisst du ja wo.
Code: Alles auswählen
<!-- mod : categories hierarchy v 2 -->
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" width="100%" class="thCornerL" nowrap="nowrap"> {catrow.tablehead.L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th width="150" class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </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="{catrow.cathead.INC_SPAN}"><span class="cattitle"><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span></td>
<td class="{catrow.cathead.CLASS_ROWPIC}" colspan="3" align="right"> </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="{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>
<td class="row1" width="100%" height="50" colspan="{catrow.forumrow.INC_SPAN}">
<span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br /></span>
<span class="genmed">{catrow.forumrow.FORUM_DESC}<br /></span>
<span class="gensmall">
{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
<!-- BEGIN links -->
{catrow.forumrow.links.L_LINKS} {catrow.forumrow.links.LINKS}
<!-- END links -->
</span>
</td>
<!-- BEGIN forum_link_no -->
<td class="row3" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row3" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
<!-- END forum_link_no -->
<!-- BEGIN forum_link -->
<td class="row3" align="center" valign="middle" height="50" colspan="3"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
<!-- END forum_link -->
</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>
<br class="gensmall" />
<!-- END tablefoot -->
<!-- END catrow -->
Und der Mod
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
#
#-----[ REPLACE WITH ]------------------------------
#
<td class="row1" width="100%" 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}'"> <span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
#
#-----[ SAVE CLOSE UPLOAD ]---------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
#
#-----[ REPLACE WITH ]-----------------------------
#
<td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
#
#-----[ SAVE CLOSE UPLOAD ]--------------------------
#
viewforum_body.tpl
Verfasst: 27.09.2003 14:22
von Leuchte
das die einzelnen Kategorien auf der Startseite auch den Mouseover Effekt haben
was meinst du mit einzelnen kategorien? das grüne oder das rote?
Kategorie 1
- Forum 1
- Forum 2
Kategorie 2
fürs grüne suche:
Code: Alles auswählen
<td class="row1" width="100%" height="50" colspan="{catrow.forumrow.INC_SPAN}
und füge danach ein
Code: Alles auswählen
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}'"
fürs rote suche
Code: Alles auswählen
<td class="{catrow.cathead.CLASS_CAT}" width="100%" colspan="{catrow.cathead.INC_SPAN}
und füge dahinter ein
Code: Alles auswählen
onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{catrow.cathead.U_VIEWCAT}'"
Verfasst: 27.09.2003 16:52
von ZStorm
Alles klar, es war das "grüne".
Nur hier
Code: Alles auswählen
<td class="row1" width="100%" height="50" colspan="{catrow.forumrow.INC_SPAN}
müssen am ende noch die
" hin, bevor der code eingefügt wird.
Das jetzt nur für die, welche dasselbe Problem haben.
Da ich die Mittlere SubForen Ansicht des Mods nutze, bringt der rote "Teil"
nichts.
Also mein Problem ist gelöst, bin wieder etwas schlauer
und ich bedanke mich.
Verfasst: 27.09.2003 17:01
von Leuchte
ZStorm hat geschrieben:Alles klar, es war das "grüne".
Nur hier
Code: Alles auswählen
<td class="row1" width="100%" height="50" colspan="{catrow.forumrow.INC_SPAN}
müssen am ende noch die
" hin, bevor der code eingefügt wird.
stimmt, vergessen.
den roten teil habe ich reingemacht, weil ich nicht genau wusste, welche kategorien du meinst. aber es funzt ja
