Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 82
0 members and 82 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
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 Electric Choice

Go Back   Nukemods Forum > Nukemods > FAQ/Fixes

Reply
 
LinkBack Thread Tools Display Modes
Link to Offsite avatars not displaying in Nuke
Old
  (#1 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
Link to Offsite avatars not displaying in Nuke - 04-08-2003, 01:35 PM

Link to offsite avatars can be displayed on the Nuke side in a block or on the Your Account page.

This is a general idea of the code change. I am using the Site Visitors block with user avatar for Nuke6.5 as an example.

code change is this(or something similar):

OLD CODE
Code:
    if ($userinfo[user_avatar]) {
		$content .= "
<center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center>
\n";
	}
NEW CODE
Code:
        if ( ereg( "(http)", $userinfo[user_avatar]) )
	{ 
$content .= "
<center><img src=\"$userinfo[user_avatar]\">
</center>\n"; 
} 
else
if ($userinfo[user_avatar])
{ 
$content .= "
<center><img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\"></center>
\n";
	}
works like a charm...
Now offsite avatars will display on the Your Account page in Nuke and in a Block that contains the users avatar.
The code change would need to be applied to Your Account/index.php and or the block you use.

I have updated the Nuke 6.5 Site Visitors/Avatar block with this code.

P.S. This should work for both Nuke6.0 with Tom's port and Nuke6.5

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-08-2003, 01:58 PM

Ok to change this in Your Account module..I am sure people are going to ask.
open
modules/Your_Account/index.php

find:
Code:
         if ($userinfo[user_avatar]) echo "<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\" alt=\"\">
\n";
replace with:
Code:
        if ( ereg( "(http)", $userinfo[user_avatar]) ) 
   { 
echo "<img src=\"$userinfo[user_avatar]\">
\n"; 
} 
else 
if ($userinfo[user_avatar]) 
{ 
echo "<img src=\"modules/Forums/images/avatars/$userinfo[user_avatar]\">
\n"; 
   }
NOTE: both paths for avatar in the Forum admin / Configuration should be set to modules/Forums/images/avatars

mikem
   
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
Changing Link Color in PHP-nuke 7.5 (SubBlack) ishtar Nuke 7.x - General 1 11-07-2005 04:55 PM
How To Create Link In Php-Nuke To Another Site! prince_simi Nuke 7.x - Blocks 4 02-16-2005 01:38 PM
Nuke 7.5, topics not displaying properly Stylee Open topics 3 01-26-2005 10:21 PM
nuke treasury IPN link incorrect tones Nuke 7.x - General 0 12-25-2004 11:06 AM
nuke and forum mouseover link colors different IACOJ Nuke 6.5 to 6.9 - Themes 2 05-20-2003 07:00 PM




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