ich mach ja schon einiges in an usw Foren aber sowas kann ich leider nicht :/
Code: Alles auswählen
##############################################################
## MOD Title: Hypercell Class
## MOD Author: reddog (n/a) http://reddevboard.com/
## MOD Description: this MOD adds a Hover Effect for table cell
## with dynamic icons (topic type and topic status)
## on the index board and the topics list, as well as
## on the Last posts cell.
## MOD Version: 1.0.3
## MOD Compatibility: 2.0.11
##
## Installation Level: Easy
## Installation Time: 10 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit 7
## index.php
## viewforum.php
## includes/page_header.php
## templates/subSilver/index_body.tpl
## templates/subSilver/overall_header.tpl
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewforum_body.tpl
## Included Files: x
## root/templates/subSilver/hypercell/hypercell.css
## root/templates/subSilver/hypercell/hover.htc
## root/templates/subSilver/hypercell/images/*.*.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## ¤ SubSilver row|1|2|3Right Class Replacement (for another style)
## ----------------------------------------------------------------
##
## In the hypercell.css file, replace the background-color #EFEFEF for all td.hccRow and
## td.hccRow-* by the background-color value from td.row1 class in Your_Template.css file. And
## replace the hexadecimal background color #DEE3E7 for all td.hccRow Hover class by the background-color
## value from td.row2 class in Your_Template.css file. Finally, replace the background-color #D1D7DC for
## row3Right and all hccRow Right Class from td.row3Right in Your_Template.css file , and background-color
## #CCD3D9 by a color slightly darker than td.row3Right in Your_Template.css file.
##
## note: see the examples files in contrib folder
##
## ¤ Hover Behavior (:hover emulation) for IE5+
## --------------------------------------------
##
## This experiment is try to emulate the :hover pseudo-class and its dynamic effect on
## Internet Explorer 5+, because IE support :hover only on A (anchor) element.
##
## Manual at: http://www.hszk.bme.hu/~hj130/css/list_menu/hover/
##
##############################################################
## MOD History:
##
## 2005-02-10 - Version 1.0.3
## - minor corrections
## 2005-02-05 - Version 1.0.2
## - deleted onClick element (bug on IE)
## - added new hccRow Right Class (with messages icons)
## 2005-02-04 - Version 1.0.1
## - enhanced script
## - compatibility with IE (:hover pseudo-class)
## - use $images['hypercell'] key for stylesheet (why not)
## 2005-02-03 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy root/templates/subSilver/hypercell/*.* to templates/subSilver/hypercell/*.*
#
#-----[ OPEN ]------------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------------
#
$folder_image = $images['forum_locked'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = 'hccRow-lock';
#
#-----[ FIND ]------------------------------------------------
#
$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = ( $unread_topics ) ? 'hccRow-new' : 'hccRow';
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_FOLDER_IMG' => $folder_image,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'HYPERCELL_CLASS' => $hypercell_class,
#
#-----[ OPEN ]------------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------------
#
$folder_alt = $lang['Topics_Moved'];
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$hypercell_class = 'hccRow';
#
#-----[ FIND ]------------------------------------------------
#
$folder_new = $images['folder_announce_new'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell = 'hccRow-announce';
$hypercell_new = 'hccRow-new-announce';
#
#-----[ FIND ]------------------------------------------------
#
$folder_new = $images['folder_sticky_new'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell = 'hccRow-sticky';
$hypercell_new = 'hccRow-new-sticky';
#
#-----[ FIND ]------------------------------------------------
#
$folder_new = $images['folder_locked_new'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell = 'hccRow-lock';
$hypercell_new = 'hccRow-lock';
#
#-----[ FIND ]------------------------------------------------
#
$folder_new = $images['folder_hot_new'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell = 'hccRow-hot';
$hypercell_new = 'hccRow-new-hot';
#
#-----[ FIND ]------------------------------------------------
#
$folder_new = $images['folder_new'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell = 'hccRow';
$hypercell_new = 'hccRow-new';
#
#-----[ FIND ]------------------------------------------------
#
if( $unread_topics )
{
$folder_image = $folder_new;
$folder_alt = $lang['New_posts'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = $hypercell_new;
#
#-----[ FIND ]------------------------------------------------
#
# first loop ELSE (line 557)
#
$folder_image = $folder;
$folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = $hypercell;
#
#-----[ FIND ]------------------------------------------------
#
# second loop ELSE (line 565)
#
$folder_image = $folder_new;
$folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = $hypercell_new;
#
#-----[ FIND ]------------------------------------------------
#
# third loop ELSE (line 573)
#
$folder_image = $folder;
$folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = $hypercell;
#
#-----[ FIND ]------------------------------------------------
#
# fourth loop ELSE (line 581)
#
$folder_image = $folder;
$folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$hypercell_class = $hypercell;
#
#-----[ FIND ]------------------------------------------------
#
'TOPIC_FOLDER_IMG' => $folder_image,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'HYPERCELL_CLASS' => $hypercell_class,
#
#-----[ OPEN ]------------------------------------------------
#
includes/page_header
#
#-----[ FIND ]------------------------------------------------
#
'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
'HYPERCELL_SHEET' => $images['hypercell'],
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# the full line is longest
#
{catrow.forumrow.U_VIEWFORUM}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
row1
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
{catrow.forumrow.HYPERCELL_CLASS}
#
#-----[ FIND ]------------------------------------------------
#
# the full line is longest
#
{catrow.forumrow.LAST_POST}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
row2
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
{catrow.forumrow.HYPERCELL_CLASS}-right
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
</head>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<link rel="stylesheet" href="{HYPERCELL_SHEET}/hypercell.css" type="text/css">
<!--[if IE]>
<style type="text/css">
/* This experiment is try to emulate the :hover pseudo-class
and its dynamic effect on Internet Explorer 5+, because IE support
:hover only on A (anchor) element */
.hccRow, .hccRow-new, .hccRow-lock,
.hccRow-announce, .hccRow-new-announce,
.hccRow-sticky, .hccRow-new-sticky,
.hccRow-hot, .hccRow-new-hot,
.row3Right, .hccRow-right, .hccRow-new-right, .hccRow-lock-right,
.hccRow-announce-right, .hccRow-new-announce-right,
.hccRow-sticky-right, .hccRow-new-sticky-right,
.hccRow-hot-right, .hccRow-new-hot-right { behavior: url("{HYPERCELL_SHEET}/hover.htc"); }
</style>
<![endif]-->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
$images['hypercell'] = $current_template_path . "/hypercell";
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# the full line is longest
#
{topicrow.U_VIEW_TOPIC}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
row1
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
{topicrow.HYPERCELL_CLASS}
#
#-----[ FIND ]------------------------------------------------
#
# the full line is longest
#
{topicrow.LAST_POST_TIME}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
row3Right
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
{topicrow.HYPERCELL_CLASS}-right
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM