Seite 1 von 1

Hypercells mod

Verfasst: 17.12.2004 19:09
von Huchi
Hi ich mal wieder,

hab mir jetzt den Hypercells mod eingebaut. Funzt auch soweit.
D.h. die Tabellen im Iindex werden eingefärbt, und wenn ich drauf klicke werde ich auch in das besagte Forum weitergeleitet.
Doch nun kommts, gehe ich mit der Maus über die Posts werden die Zellen auch eingefärbt nur beim Klick, werde ich zurück auf meine Portal seite geleitet! Hier die Forumrow:
<!-- BEGIN forumrow -->
<tr>
<td class="row1" 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" onMouseOver="this.style.backgroundColor='#D9E2EC'; this.style.cursor='default';" onMouseOut="this.style.backgroundColor='#EAEDF4'"; 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 />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" 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="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
und die Topicrow:
<!-- BEGIN topicrow -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%" onMouseOver="this.style.backgroundColor='#D9E2EC'; this.style.cursor='default';" onMouseOut="this.style.backgroundColor='#EAEDF4';"onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><span class="gensmall"><b>{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="gensmall">{topicrow.TOPIC_TITLE}</a></b></span><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- END topicrow -->
Zum testen hier klicken

Gruß Huchi

Verfasst: 18.12.2004 17:37
von Huchi
*schieb*

Jemand einen Tipp für mich?

Gruß Huchi

Verfasst: 20.12.2004 13:30
von Huchi
Erledigt!
Folgende Änderung in der viewforum_body.tpl ergaben den gewünschten Effekt:

Code: Alles auswählen

<!-- BEGIN topicrow -->
   <tr>
     <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='#D9E2EC'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#EAEDF4';"onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="gensmall"><b>{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="gensmall">{topicrow.TOPIC_TITLE}</a></b></span><span class="gensmall"><br />
     {topicrow.GOTO_PAGE}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
     <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
     <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
   <!-- END topicrow -->
Gruß Huchi

Verfasst: 20.12.2004 14:05
von hubix
Hallo!!

Da der Post grad aktuell ist, frag ich hier mal nach, anstatt nen neuen aufzumachen...

Hab den Mod eingebaut und nun bin ich auf die Idee gekommen, net nur die im Mod anklickbaren Tabellenzellen zu verlinken, sondern halt auch die Tabellenzellen mit den "letzter Beitrag"-Links...! Der Mouseover war ja noch einfach, aber der "letzter Beitrag"-Link für mich schon wieder net...

Hab gedacht, ich könnte die Info aus der "lasttopicinforum.php" rauslesen, aber soweit reichen meine php-Kenntnisse nun doch nicht... :(

Kann man das einfach so machen oder müsste man da viel umschreiben!?!?

viele Grüsse :)
hubix

Verfasst: 20.12.2004 14:08
von hubix
Hallo!

Hab grad gesehen, dass "lasttopicinforum.php" ja von nem anderen Mod kommt, da kann es ja also net drin stehen... :D

Aber wo dann??

gruss
hubix