Seite 1 von 1

Hypercell Mod Erweiterung

Verfasst: 10.05.2005 17:27
von ATARI
Hätte mal ne Frage:
hab mir grad in mein phpbb den Hypercell Mod eingebaut, läuft auch ganz gut soweit.
nur hätte ich ne frage: ich würde den mod gern erweitern, und zwar wenn man im index auf die cell "letzter beitrag" klickt, hätt ich gern dass man auch glech zum letzten beitrag kommt.
und wenn man im viewforum auf die rechte spalte "letzter beitrag" klickt, soll man zum profil desjenigen kommen, der den letzen beitrag gemacht hat.
wenn man zwei zellen weiter links auf die Author zelle klickt, soll man zum profil des authors kommen.

wie kann man das alle realisieren?


vielen dank für dich hilfe schon mal!

hier der mod

Code: Alles auswählen

########################################################
##
## Title: Hypercells
## Version: 1.0.0 - final release
## Author: Brewjah
## Description: allows users to click anywhere in the cell to access the forum or a topic
## and displays a hand cursor on mouse over even to SHOW that its clickable..
##
## Installation Level: Easy
## Installation Time: 2-5 Minutes
## Files To Edit: 2
##          -  index_body.tpl
##          -  viewforum_body.tpl
##
## Included Files: none, cause we're cool like that
##
#########################################################

#
#-----[ 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
#
#-----[ EOM ]--------------------------------------------

Verfasst: 10.05.2005 22:59
von Berndte
wer wie was?

Nicht bös gemeint, ich überlege auch schon, wie ich das anpassen kann... immer auf das Mini [ externes Bild ] klicken ist mir 3°° meist nicht mehr möglich ;)

Kannst du deine Ideen vielleicht mal grafisch in einem Screenshot festhalten? Leicht verwirrend deine Erklärung ;)

Gruss Bernd

Verfasst: 12.06.2005 01:02
von hax
@ATARI
Hab den Mod eben eingebaut und ein bisschen erweitert, so wie du es haben möchtest:

Code: Alles auswählen

# 
#-----[ 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>
# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   templates/subSilver/index_body.tpl
# 
#-----[ OPEN ]------------------------------------------ 
# 
   templates/subSilver/viewforum_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
#
	  <td class="row1" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
# 
#-----[ REPLACE WITH ]----------------------------- 
# 
	  <td class="row1" 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='{topicrow.LAST_POST_LINK}'"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   templates/subSilver/viewforum_body.tpl
# 
#-----[ 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,
# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   index.php
# 
#-----[ OPEN ]------------------------------------------ 
# 
   viewforum.php
# 
#-----[ FIND ]------------------------------------------ 
#
		$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
# 
#-----[ ADD, AFTER ]------------------------------------------ 
#
		$last_post_link = '' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '';
# 
#-----[ FIND ]------------------------------------------ 
#
			'LAST_POST_IMG' => $last_post_url, 
# 
#-----[ ADD, AFTER ]------------------------------------------ 
#
			'LAST_POST_LINK' => $last_post_link, 

# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   viewforum.php
Ich hoffe das funzt auch ;)

Verfasst: 12.06.2005 12:41
von ATARI
danke hax, das hat soweit geklappt.
jedoch fehlt noch eine Zeile:
ATARI hat geschrieben: wenn man zwei zellen weiter links (in viewforum) auf die Author zelle klickt, soll man zum profil des authors kommen.
hätt mich schon selber dran versucht, aber brings nicht zusammen.
kriegste das auch noch hin?

Verfasst: 12.06.2005 17:51
von hax
Stimmt, dann bau ich das mal eben bei mir ein und schreib hier die Anleitung rein:

Code: Alles auswählen

# 
#-----[ OPEN ]------------------------------------------ 
# 
   templates/subSilver/viewforum_body.tpl 
# 
#-----[ FIND ]------------------------------------------ 
#
	  <td class="row1" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
# 
#-----[ REPLACE WITH ]------------------------------ 
#
	  <td class="row1" align="center" valign="middle" onMouseOver="this.style.backgroundColor='{T_TD_COLOR1}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{T_TR_COLOR1}" onclick="window.location.href='{topicrow.TOPIC_AUTHOR_LINK}'"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   templates/subSilver/viewforum_body.tpl 
# 
#-----[ OPEN ]------------------------------------------ 
# 
   viewforum.php
# 
#-----[ FIND ]------------------------------------------ 
#
		$topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : '';
# 
#-----[ ADD, AFTER ]------------------------------------------ 
#
		$topic_author_link = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $topic_rowset[$i]['user_id']);
# 
#-----[ FIND ]------------------------------------------ 
#
			'TOPIC_AUTHOR' => $topic_author, 
# 
#-----[ ADD, AFTER ]------------------------------------------ 
#
			'TOPIC_AUTHOR_LINK' => $topic_author_link, 
# 
#-----[ SAVE CLOSE UPLOAD ]--------------------------- 
# 
   viewforum.php
8) 8)

Verfasst: 12.06.2005 20:17
von ATARI
ok, merci dir hax.
hast du zufällig auch as album + sp1-mod drinnen? :D

Verfasst: 12.06.2005 22:18
von hax
ne das hab ich net ;)

Verfasst: 14.06.2005 18:31
von ATARI
gut, also das album hab ich nun selber hinbekommen.

jetzt fehlt nur noch die memberlist!


So, ich habe nun überall wo es nur geht im Frum den Hypercell Mod eingebaut (auch Album etc.).


An der Memberlist häng ich aber noch a bissl, habs schon hinbekommen, dass PM, EMail, und Viewprofil clickbar sind, jedoch bekomme ich es nicht hin, dass die ICQ-Zelle und die Website-Zelle klickbar sind.

Hier das, was ich in die memberlist.php hinzugefügt habe:

Code: Alles auswählen

			'MSN_IMG' => $msn_img,
			'MSN' => $msn,
			'YIM_IMG' => $yim_img,
			'YIM' => $yim,
			
			'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"),
			'U_PMMM' => append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id"),
		  'U_EMAIL' => append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL . "=$user_id"),
		  
		  );
und hier der Auszug aus der memberlist_body.tpl

Code: Alles auswählen

	<!-- BEGIN memberrow -->
	<tr> 
	  <td class="{memberrow.ROW_CLASS}" align="center" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';"><span class="gen">&nbsp;{memberrow.ROW_NUMBER}&nbsp;</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onclick="window.location.href='{memberrow.U_PMMM}'">&nbsp;{memberrow.PM_IMG}&nbsp;</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onclick="window.location.href='{memberrow.U_VIEWPROFILE}'"><span class="gen"><a href="{memberrow.U_VIEWPROFILE}" class="gen">{memberrow.USERNAME}</a></span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';" onclick="window.location.href='{memberrow.U_EMAIL}'">&nbsp;{memberrow.EMAIL_IMG}&nbsp;</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';">&nbsp;{memberrow.ICQ_IMG}&nbsp;</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';"><span class="gen">{memberrow.FROM}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';"><span class="gensmall">{memberrow.JOINED}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';"><span class="gen">{memberrow.POSTS}</span></td>
<!-- Start add - Last visit MOD -->
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';"><span class="gensmall">{memberrow.LAST_LOGON}</span></td> 
<!-- End add - Last visit MOD -->
	  <td class="{memberrow.ROW_CLASS}" align="center" onMouseOver="this.style.backgroundColor='#F9F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF';'">&nbsp;{memberrow.WWW_IMG}&nbsp;</td>
	</tr>
	<!-- END memberrow -->
hax oder sonstwer, kannst du helfen?
nur das ICQ Feld und das WWW Feld fehlen noch um es komplett zu machen