» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 43
0 members and 43 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on Default avatar mod for PHP-Nuke 6.5 within the Purged Topics forums, part of the NM Staff category; I'm not sure if this has already been modified, if it has then i wasted space and time, else ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-19-2003, 03:30 AM
Moderator
 
Join Date: Jan 2003
Posts: 338
Default avatar mod for PHP-Nuke 6.5
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
  #2 (permalink)  
Old 04-19-2003, 04:53 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
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 05:23 AM
Default Avatar Tyce Nuke 7.x - General 1 01-05-2005 06:58 PM
Default avatar Tyce Nuke 7.x - General 2 01-05-2005 04:26 AM
Themes Default to Default theme after leaving PHPBB Profile Audioslaved Nuke 6.5 to 6.9 - Themes 2 07-15-2003 05:28 AM
Default Avatar dfm123 Nuke 6.5 to 6.9 - Modules 2 05-04-2003 12:11 PM


All times are GMT -5. The time now is 08:13 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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