[RC1] grayscale_logout_style

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
E46PSI
Registered User
Posts: 18
Joined: Sun Sep 11, 2005 11:45 am

[RC1] grayscale_logout_style

Post by E46PSI » Mon Sep 19, 2005 2:26 am

Just fixed my board with a Grayscale affect that occurs when hovering over "log out".

Let me know if anyone is interested.
Only works for IE

www.e46psi.com/forum

Your gonna have to register and then hover over "logout" to see the effect.

Code: Select all

############################################################## 
## MOD Title: grayscale_logout_style 
## MOD Author: Ee46PSI < jmwebm3@aol.com > (Jerry) http://jmweb.net 
## MOD Description: Turns page gray when hovering over "Log Out"  
## MOD Version: 1.0.0 
## 
## Installation Level: (Easy) 
## Installation Time: 3 Minutes 
## Files To Edit:  
##      templates/subSilver/overall_header.tpl, 
##      includes/page_header.php  
##      
## Included Files: N/A 
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
############################################################## 
## For security purposes, please check: http://www.phpbb.com/mods/ 
## for the latest version of this MOD. Although MODs are checked 
## before being allowed in the MODs Database there is no guarantee 
## that there are no security problems within the MOD. No support 
## will be given for MODs not found within the MODs Database which 
## can be found at http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes:
## This mod uses a small javascript code to apply a grayscale affect 
## when a user that is logged in hovers over the "log out" link.
## 
## This mod has been verified to work on Internet Explorer 6.0+.
## It does not work for Firefox browsers.
## A working version can be seen at http://www.e46psi.com
## 
############################################################## 
## MOD History: 
## 
##   2005-09-18 - Version 1.0.0 
##      - First release (stable) 
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

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

# 
#-----[ FIND ]------------------------------------------ 
# 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

# 
#-----[ FIND ]------------------------------------------ 
# 
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
<script type="text/javascript"> 
function log_out() { 
   ht = document.getElementsByTagName("html"); 
   ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)"; } 

function log_in() { 
ht[0].style.filter = ""; } 
</script> 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/page_header.php  

# 
#-----[ FIND ]------------------------------------------ 
# 
// Generate logged in/logged out status 

// 

if ( $userdata['session_logged_in'] ) 

{ 
	$u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];
	$l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';

} 


# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
// Generate logged in/logged out status 

// 

if ( $userdata['session_logged_in'] ) 

{ 

   $u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']; 

   $u_login_logout .= '" onMouseover="log_out()" onMouseout="log_in()'; 

   $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]'; 

} 


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Last edited by E46PSI on Mon Sep 19, 2005 5:30 pm, edited 3 times in total.

saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Post by saaiberke » Mon Sep 19, 2005 7:10 am

I would be interested in this, seems a nice effect :)

Nic

E46PSI
Registered User
Posts: 18
Joined: Sun Sep 11, 2005 11:45 am

Post by E46PSI » Mon Sep 19, 2005 7:30 am

look at first post
Last edited by E46PSI on Mon Sep 19, 2005 5:24 pm, edited 1 time in total.

markus_petrux
Former Team Member
Posts: 1887
Joined: Wed Apr 23, 2003 7:11 am
Location: Girona, Catalunya (Spain)
Contact:

Post by markus_petrux » Mon Sep 19, 2005 3:10 pm

Hello,

Could you please edit your topic title with a prefix as outlined in MOD Development forum rules section 3.a. This will allow people to see the development status of your MOD at a glance.

In addition to this, we see that you aren't using the phpBB MOD Template. If you wouldn't mind could you please use it. Information about the template can be found here. A tutorial on using the MOD Template can also be found here. There is also a template validator here that you can use.

Thank you,
The phpBB MOD Team
EasyMOD Standards | MOD Template Actions | MODs in Development Rules
Useful information for MOD Authors | MOD Queue Stats | Search MODs
Write SQL/DDL portable to all SQL servers supported by phpBB!
Get EasyMOD 0.3.0! | Suport al phpBB en Català!
8)

E46PSI
Registered User
Posts: 18
Joined: Sun Sep 11, 2005 11:45 am

Post by E46PSI » Mon Sep 19, 2005 3:24 pm

wow thats alot of work!

Im really new to phpbb and i do not know the impat that my script may have on the function of the board.
All i know is that it works and my board seems to be running fine.

Can any of the moderators look this script over to see whether it is valid?

User avatar
poyntesm
Registered User
Posts: 1671
Joined: Tue Jan 18, 2005 11:19 am
Location: Dublin, Ireland
Contact:

Post by poyntesm » Mon Sep 19, 2005 3:41 pm

Hi E46PSI,

It is not that much work...there are templates available that you can just cut and paste. First thing to do is change the thread subject...that will buy you a bit of time to use the template.

Esmond

dESiLVer
Registered User
Posts: 50
Joined: Wed May 04, 2005 9:26 pm
Location: Turkey
Contact:

Post by dESiLVer » Mon Sep 19, 2005 8:18 pm

how to similar vb style feasibility ?

E46PSI
Registered User
Posts: 18
Joined: Sun Sep 11, 2005 11:45 am

Post by E46PSI » Mon Sep 19, 2005 9:17 pm

What do you mean?
It is just like VB board, except you dont get a confirmation window.
Very easy to install.

Post Reply

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