Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 61
5 members and 56 guests
banpzdhizdorees, cel8zzgebrityho, dryrserventclea, fenqpcinkx5bgpa, jayaab7deep9tfb
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
Old
  (#11 (permalink))
Junior Member
 
Status: Offline
Posts: 6
Join Date: Jan 2003
04-08-2003, 12:22 PM

Ack!!! This creates errprs!!!

Quote:
Originally Posted by OpositeAxis
I have see it, but right now i'm burn out (I need to get some sleep ).

I can't imagine why that happens. it seems is something relative of the phpbb template, but i'm not really sure

I see that you let people use Link to off-site Photo, thats avatars will not be show in the user info page in your_account because this code
Code:
<img src=\"modules/Forums/images/avatars/$user_avatar\" alt=\"\">
Is not design to work with offsites avatars, if you use a offsite avatar you will get something like this:
Code:
http://elcaminocentral.com/modules/Forums/images/avatars/http://wwww.avatarplace.com/images/avatars/someavatar.gif
You need to change that with something like this
Code:
  
if ( ereg( "(http)", $user_avatar) )
{
echo "<img src=\"$user_avatar\">
\n";
}
else
{
echo "<img src=\"modules/Forums/images/avatars/$user_avatar\" }
This code is from the people of http://www.gopsfrench.net and i have been using it, solving some issues with offsite avatars
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#12 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-08-2003, 12:43 PM

Quote:
Originally Posted by colin
Ack!!! This creates errprs!!!

Quote:
Originally Posted by OpositeAxis
I have see it, but right now i'm burn out (I need to get some sleep ).

I can't imagine why that happens. it seems is something relative of the phpbb template, but i'm not really sure

I see that you let people use Link to off-site Photo, thats avatars will not be show in the user info page in your_account because this code
Code:
<img src=\"modules/Forums/images/avatars/$user_avatar\" alt=\"\">
Is not design to work with offsites avatars, if you use a offsite avatar you will get something like this:
Code:
http://elcaminocentral.com/modules/Forums/images/avatars/http://wwww.avatarplace.com/images/avatars/someavatar.gif
You need to change that with something like this
Code:
  
if ( ereg( "(http)", $user_avatar) )
{
echo "<img src=\"$user_avatar\">
\n";
}
else
{
echo "<img src=\"modules/Forums/images/avatars/$user_avatar\" }
This code is from the people of http://www.gopsfrench.net and i have been using it, solving some issues with offsite avatars
yeah that is the same problem with Blocks that display the user avatar. One reason we don't have Link to Offsite avatars enabled.
It adds the path to the module in front of the actual avatar link path. I have tried numerous times to fix this, but I think it needs to strip the site link IF the avatar is detected as offsite, but too involved for me.
Much easier to simply disable link to offsite avatars. Besides, linking to an offsite avatar in some cases can be construed as "stealing bandwidth" minor, but a disgruntled webmaster may not take kindly to it :-)

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

Sweetness...I got it to work. I used your code colin adn modified it a bit and now the Link to offsite avatars can be displayed on the NUke side in a block or on the Your Accoutn page.

code change is this:

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...

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#14 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2003
Location: Valencia, Venezuela
04-08-2003, 02:02 PM

In fact you have it, my avatar is linked for my personal site
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#15 (permalink))
Junior Member
 
Status: Offline
Posts: 6
Join Date: Jan 2003
04-08-2003, 07:25 PM

You guys are the best, thanks for the help!!
   
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
Devil Modz CNB Your Account 4.4.2 Mod Hack!!' dainbramage News 0 06-08-2007 10:15 PM
Registration hack Problem!!!!! G2F Purged Topics 2 03-24-2003 08:23 PM
Registration Hack Kelu Purged Topics 1 01-21-2003 06:17 PM
Forum Registration Hack IACOJ Purged Topics 10 01-11-2003 06:28 PM
Forum Registration Hack Konan Purged Topics 3 12-30-2002 10:58 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