################################################################################
## MOD Title:          	Universal No Avatar
## MOD Author:         	BlkJack-21
## MOD Description:    
##                     	This mod displays an universal "No Avatar" image for those 
##                     	that do not have an Avatar.
##
##	                The "No Avatar" image displays within topics and user profile.
##	               
## MOD Version:       	1.0.0
## MOD Compatibility: 	3.0.1
##
## Installation Level: 	Easy
## Installation Time:  	5 Minutes
##
## Files To Edit:	includes/functions_display.php
##			
## Included Files: root/images/avatars/no_avatar.gif
##
## Table to edit:	none
##			
##	20-06-2008 - version 1.0.0
##		   - Changed code so users that select "No" for "Display 	
##			Avatars" in UCP will not be affected (previous version 
##			did not accomodate for this).			
##
##	13-06-2008 - version 0.0.1
##		   - Initial Release
## 
################################################################################
##	
## Support:   http://www.phpbb.com
## Copyright: 2008 BlkJack-21
##
################################################################################
##
## For security purposes, please check: http://www.phpbb.com
## 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/moddb/
##
################################################################################
##  Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################################################
#
#-----[ COPY ]-----
#
root/images/avatars/no_avatar.gif to images/avatars/no_avatar.gif

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

#
#-----[ FIND ]-----
#
	if (empty($avatar) || !$avatar_type)
	{
		return '';

#
#-----[ IN-LINE FIND ]-----
#
		return '';


#
#-----[ WITH, REPLACE ]-----
#
	return '<img src="images/avatars/no_avatar.gif" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';

#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM