[ BETA ] Cell Highlight

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
demace
Registered User
Posts: 4
Joined: Sat May 08, 2004 9:19 am

[ BETA ] Cell Highlight

Post by demace »

Code: Select all

############################################################## 
## MOD Title: Cell Highlight Mod
## MOD Author: demace < demace@demace.whm-host.us > (andrewL) http://www.demace.whm-host.us/phpBB2/viewtopic.php?t=15
## MOD Description: This Mod adds a mouseover cell highligh to the forum on the main page and topic views. Note: this only works with the subSilver theme
## MOD Version: 1.0
## 
## Installation Level: Easy
## Installation Time: 1 Minutes 
## Files To Edit: templates/subSilver/overall_footer.tpl
##		  templates/subSilver/viewforum_body.tpl
## Included Files: n/a 
############################################################## 
## 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: 
## See http://www.demace.whm-host.us/phpBB2/viewtopic.php?t=15&sid=7c8b8ffb14ec5ca8d5facbe5d37e169f for support. No Signup Needed
############################################################## 
## MOD History: 
## 
##   2004-05-14 - Version 1.000
##      - fixed it up so it would work on the thread view page as well as the main forum page
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_footer.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
<SCRIPT LANGUAGE="JavaScript">
<!--
/*
Cell Highlight & Link
Copyright © 2003 Craig Suffolk, ProBoards.com
All Rights Reserved
*/

var mouseOverColor = '#D1D7DC';
var statusMessage = 'Welcome to Quad 101...enjoy your stay.';
window.status = statusMessage;

cellHigh = document.getElementsByTagName('TD');
for(ch=0;ch<cellHigh.length;ch++) {
if ((cellHigh[ch].className=="row1" && cellHigh[ch].width=="100%" && cellHigh[ch].height=="50")  || (cellHigh[ch].className=="row1" && cellHigh[ch].width=="100%" && cellHigh[ch].alt=="row1")) {
if (cellHigh[ch].width=="100%") {var num=0;} else {var num=1;}
cellHigh[ch].onmouseover = function(){this.style.cursor='hand';this.style.backgroundColor=mouseOverColor; window.status=this.getElementsByTagName('a')[0].innerHTML;};
cellHigh[ch].onmouseout = function(){this.style.backgroundColor=this.bgColor;window.status=statusMessage;};
cellHigh[ch].onclick = function(){location = this.getElementsByTagName('a')[num].href;};
}}
// -->
</script>

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/viewforum_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
<td class="row1" width="100%" valign="middle"><span class="topictitle">

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
class="row1" width="100%"

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
 alt="row1"

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
a simple modification of the cell highlight script that worked on proboards.. now it works for phpbb :D
Last edited by demace on Mon May 17, 2004 12:26 pm, edited 1 time in total.

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix »

you should use the $lang array for this message :

Code: Select all

Welcome to Quad 101...enjoy your stay.
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

ayusuf
I've Been Banned!
Posts: 917
Joined: Fri Feb 06, 2004 11:00 pm
Location: Orlando,Fl
Contact:

Post by ayusuf »

can we see a demo. pls ;)

User avatar
alsakrah
Registered User
Posts: 166
Joined: Wed Dec 04, 2002 7:54 pm
Contact:

Post by alsakrah »

ayusuf wrote: can we see a demo. pls ;)


it will be very cool to see that and know what it is

User avatar
Rookie7
Registered User
Posts: 189
Joined: Mon Mar 10, 2003 3:32 pm
Contact:

Re: [ BETA ] Cell Highlight

Post by Rookie7 »

demace wrote:

Code: Select all

############################################################## 
## Author Notes: 
## See http://www.demace.whm-host.us/phpBB2/viewtopic.php?t=15&sid=7c8b8ffb14ec5ca8d5facbe5d37e169f for support. No Signup Needed
############################################################## 


It helps to read the Author's Notes guys!

demace
Registered User
Posts: 4
Joined: Sat May 08, 2004 9:19 am

Post by demace »

heh all i did was modify it for use with phpbb

also, the two things you have to change are:

var mouseOverColor = '#D1D7DC';
var statusMessage = 'Welcome to Quad 101...enjoy your stay.';

the mouse over color is what the cell changes color to on mouse over (self explanetary)
and the status message is what is displayed in the status bar when the mouse is NOT over a cell. when it is, the thread/board name is displayed in the status bar.

yeh and visit http://demace.whm-host.us/phpBB2/ for a working demo ;)

==============

edit:
morpheus2matrix wrote: you should use the $lang array for this message :

Code: Select all

Welcome to Quad 101...enjoy your stay.


btw, its just a modification of a javascript, so i havent gone into making it into a php script.. (i dunno how :S)

maX1mus
Registered User
Posts: 3
Joined: Tue Jul 06, 2004 11:30 pm
Location: Underworld

Post by maX1mus »

Great mod, simple and works really good =)
Roaming the underworld searching my beloved eurydike.

Post Reply

Return to “[2.0.x] MODs in Development”