Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Avatar Settings

Asked Modified Viewed 5,042 times
P
phil
P
phil 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

What about Avatar resizing? Everyone has been asking me about this one for years now and I never did find out about it.

People always have a problem uploading avatars because of the size or dimensions. Is there anyway to change these settings? Like allowing larger file sizes without throwing off the theme?
Edited by Smith on 26-06-2008 01:51,
0 replies

9 posts

A
And
A
And 10
dev.starefossen.com/../../images/button1.png

Starefossen Development Site
  • Member, joined since
  • Contributed 78 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

If this can do also I'm interested i try it but i never can do this !!:|
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

I fail to see how you have been able to ignore all questions posted about this.

In 6.01.15 it is a matter of a very small very simple edit of two files.

edit_profile.php - line 116 or there about
#
<span class='small2'>".$locale['u018']."</span><br>
#
<span class='small2'>".sprintf($locale['u022'], parsebytesize(30720), 100, 100)."</span>


Change 30720 bytes for new size and 100 + 100 for new dimensions.

Hmm, what was the other file? Update_user.php perhaps, look for the same numbers.
0 replies
A
And
A
And 10
dev.starefossen.com/../../images/button1.png

Starefossen Development Site
  • Member, joined since
  • Contributed 78 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

@ Homdax

I do this but just in " edit_profile.php "

i didn't know that i need to do it at " update_user.php "

thanks
0 replies
P
phil
P
phil 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

I fail to see how you have been able to ignore all questions posted about this.


I never noticed :D

But thanks man
Edited by phil on 23-06-2008 15:07,
0 replies
S
Smith
S
Smith 10
Regards,
Smith
smile
  • Member, joined since
  • Contributed 152 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

the other file is includes/update_profile_include.php

Change the numbers in:
, $avatarext) && $newavatar['size'] <= [color=#ff0033]30720[/color]) {
         $avatarname = $avatarname."[".$userdata['user_id']."]".$avatarext;
         move_uploaded_file($newavatar['tmp_name'], IMAGES."avatars/".$avatarname);
         chmod(IMAGES."avatars/".$avatarname,0644);
         $set_avatar = ", user_avatar='".$avatarname."'";
         if ($size = @getimagesize(IMAGES."avatars/".$avatarname)) {
            if ($size['0'] > [color=#ff0033]100[/color] || $size['1'] > [color=#ff0033]100[/color]) {


Change the red numbers to the desired file size and dimensions
Edited by Smith on 26-06-2008 01:42,
0 replies
P
phil
P
phil 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

It still doesn't work with some pictures for some reason. It just doesn't accept some photos...
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Then try to rename the name of the photo. Maybe there are some characters, which are not accepted.
Edited by Basti on 26-06-2008 18:31,
0 replies
P
phil
P
phil 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

It can have a simple name like pic1.png and still not work. I'm not sure why.
0 replies
A
And
A
And 10
dev.starefossen.com/../../images/button1.png

Starefossen Development Site
  • Member, joined since
  • Contributed 78 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

I just want to tell you if you dont know

that this can change in V7 when you search with this codes cannot find but just find AVATAR and you get it and change the numbers

thanks..
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
P
P
phil 10
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
A
A
And 10
dev.starefossen.com/../../images/button1.png

Starefossen Development Site
  • Member, joined since
  • Contributed 78 posts on the community forums.
  • Started 15 threads in the forums
B
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
S
S
Smith 10
Regards,
Smith
smile
  • Member, joined since
  • Contributed 152 posts on the community forums.
  • Started 2 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet