Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 62
3 members and 59 guests
bea9qgchcomberc, garere3denstc3t, int5nwernetmarx
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Default avatar mod for PHP-Nuke 6.5
Old
  (#1 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
Default avatar mod for PHP-Nuke 6.5 - 04-19-2003, 02:30 AM

I'm not sure if this has already been modified, if it has then i wasted space and time, else here's how to adapt it (the mod is available at www.nukeresources.com and at www.portedmods.com i think):

Code:
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 
# 
#-----[ COPY ]------------------------------------------ 
# 
copy *.gif to themes/Theme_Name/forums/images/

# 
#-----[ OPEN ]------------------------------------------ 
#  
modules/Forums/viewtopic.php

# 
#-----[ FIND ]------------------------------------------ 
# 
			case USER_AVATAR_GALLERY:
				$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '[img]' . $board_config['avatar_gallery_path'] . '/' . $postrow[$i]['user_avatar'] . '[/img]' : '';
				break;
		}
	}


# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	//
	// Default Avatar MOD - Begin
	//
	if ( empty($poster_avatar) && $poster_id != ANONYMOUS)
	{
		$poster_avatar = '[img]'.  $images['default_avatar'] .'[/img]';
	}
	if ( $poster_id == ANONYMOUS )
	{
		$poster_avatar = '[img]'.  $images['guest_avatar'] .'[/img]';
	}
	//
	// Default Avatar MOD - End
	//

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

# 
#-----[ FIND ]------------------------------------------ 
# 
		case USER_AVATAR_GALLERY:
			$avatar_img = ( $board_config['allow_avatar_local'] ) ? '[img]' . $board_config['avatar_gallery_path'] . '/' . $profiledata['user_avatar'] . '[/img]' : '';
			break;
	}
}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
//
// Default Avatar MOD - Begin
//
if ( empty($avatar_img) )
{
	$avatar_img = '[img]'.  $images['default_avatar'] .'[/img]';
} 
//
// Default Avatar MOD - End
//

# 
#-----[ OPEN ]------------------------------------------ 
# 
themes/Theme_Name/forums/forum.cfg

# 
#-----[ FIND ]------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
//
// Default Avatar MOD 
//
$images['default_avatar'] = "themes/Theme_Name/forums/images/no_avatar.gif";
$images['guest_avatar'] = "themes/Theme_Name/forums/images/guest_avatar.gif";

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Naturally all instances of Theme_Name should be changed to the actual theme's name.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
04-19-2003, 03:53 AM

If that was one of the mods you submitted to our downloads then it is available at PortedMods


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two questions: Avatar upload and nuke to index McKnight Nuke 7.x - General 5 07-18-2006 04:23 AM
Default Avatar Tyce Nuke 7.x - General 1 01-05-2005 05:58 PM
Default avatar Tyce Nuke 7.x - General 2 01-05-2005 03:26 AM
Themes Default to Default theme after leaving PHPBB Profile Audioslaved Nuke 6.5 to 6.9 - Themes 2 07-15-2003 04:28 AM
Default Avatar dfm123 Nuke 6.5 to 6.9 - Modules 2 05-04-2003 11:11 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31