» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 70
0 members and 70 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10: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
Rimonabant
www.rimonabant-weight-loss.com
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

About this Page
This is a discussion on Registration hack/your account module within the Purged Topics forums, part of the NM Staff category; Ack!!! This creates errprs!!! Originally Posted by OpositeAxis I have see it, but right now i'm burn out (I ...



Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-08-2003, 12:22 PM
Junior Member
 
Join Date: Jan 2003
Posts: 6
Ack!!! This creates errprs!!!

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
  #12 (permalink)  
Old 04-08-2003, 12:43 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by colin
Ack!!! This creates errprs!!!

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
  #13 (permalink)  
Old 04-08-2003, 01:29 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #14 (permalink)  
Old 04-08-2003, 02:02 PM
Junior Member
 
Join Date: Mar 2003
Location: Valencia, Venezuela
Posts: 5
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
  #15 (permalink)  
Old 04-08-2003, 07:25 PM
Junior Member
 
Join Date: Jan 2003
Posts: 6
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


All times are GMT -5. The time now is 02:32 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