FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Avatars
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Avatars [message #33312] Fri, 25 August 2006 14:28 Go to next message
billnot is currently offline  billnot   Spain
Messages: 28
Registered: August 2006
Location: Spain
Karma: 0
Junior Member
My new FUDforum is up and running and my users definitely prefer it to what we were using before. Main integration, thanks to the help I've received here, is excellent.

There is one small problem. Avatars aren't displaying. I have Avatar approval set to "no. Flash is set to "no", but custom avatars is set to "All".

Users can upload Avatars, they are stored in the /images/custom_avatars directory and can be seen in the user profile. But they don't appear by their messages in the forum. I (and the other users who have reported this) definitely have Show Avatars set to "Yes" in their settings.

Where do I start looking for a solution, please?


--
Bill Hayles
El Inglés Loco
Re: Avatars [message #33314 is a reply to message #33312] Fri, 25 August 2006 14:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Did you enable avatar approval? If so, avatar needs to be approved by the admin before it shows up. Also in your user preferences you can disable displaying of avatars, make sure that this option is not enabled.

FUDforum Core Developer
Re: Avatars [message #33319 is a reply to message #33314] Fri, 25 August 2006 15:39 Go to previous messageGo to next message
billnot is currently offline  billnot   Spain
Messages: 28
Registered: August 2006
Location: Spain
Karma: 0
Junior Member
That was a quick response! I only posted my query an hour ago. Thanks.

No, I didn't enable Avatar approval. Only a few trusted users are experimenting with them at the moment. If I had, wouldn't I have been told that there was an Avatar waiting for approval? Avtar Management says "There are no Avatars waiting for approval". Not even *my* Avatar shows.

Under user preferences, I have "show avatars" set to "yes", and so do the others testing this.

They are also the correct (64x64) size.


(Update)

Found the answer to this by searching the forum - message #10970 from sdefranc over 3 years ago. It's not very intuitive that you have to (additionally) turn Avatars on from the Rank Manager, but when I did they all appeared.


--
Bill Hayles
El Inglés Loco

[Updated on: Fri, 25 August 2006 18:24]

Report message to a moderator

Re: Avatars [message #33337 is a reply to message #33319] Sun, 27 August 2006 15:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The rank manager change is only required if ranks were set to override avatars, which is not the default setting.

FUDforum Core Developer
icon1.gif  Re: Avatars [message #33529 is a reply to message #33312] Wed, 06 September 2006 08:30 Go to previous messageGo to next message
Stephane is currently offline  Stephane   Netherlands
Messages: 11
Registered: September 2006
Location: The Netherlands
Karma: 0
Junior Member
I have another question about avatars, so I thought I would post it here rather than make a new topic.
I am using version 2.7.5, I am using URL avatars, they are displayed but the size is not right. They just keep their image size, whatever it is and they are not resized. When I look in the control panel at the 'Maximum Avatar Size' it says only '64', whereas the the caption says the format should be 'width x height'. When I modify the parameter to '64x64' and Set it, it comes back with 64. Confused
So I went to have a look directly at GLOBALS.php and found:
$CUSTOM_AVATAR_MAX_DIM = 64; /* width x height (pixels) */ Twisted Evil

If I modify this line to '... = 64x64;' I then get:
Parse error: syntax error, unexpected T_STRING in /home/ciska/FUDforum/include/GLOBALS.php on line 25 Rolling Eyes

Any suggestion on how to then force (URL) avatars to resize to 64x64? Shocked
Re: Avatars [message #33532 is a reply to message #33529] Wed, 06 September 2006 15:16 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The avatar size needs to be a string, the value should be "64x64".

FUDforum Core Developer
Re: Avatars [message #33545 is a reply to message #33532] Thu, 07 September 2006 07:52 Go to previous messageGo to next message
Stephane is currently offline  Stephane   Netherlands
Messages: 11
Registered: September 2006
Location: The Netherlands
Karma: 0
Junior Member
Embarassed
I should have thought of it with "unexpected T_STRING..."
So I learnt something new again today about php Cool

Well, I modified the line accordingly: $CUSTOM_AVATAR_MAX_DIM = "64x64"; but I still have oversized avatars
I also modified $CUSTOM_AVATAR_MAX_SIZE = 20; /* bytes */ as it sounded a bit small and set it to 200000 instead.

I don't know in details how it is supposed to work, but for your information, I get errors for all avatars when running ipb.php, however there are avatars in the custom_avatars folder.

When I look at the html code I get in the browser, it clearly states:
<td class="avatarPad wo"><img src="http://.../images/custom_avatars/386.jpg" width="350" height="525" /></td> Confused

[Updated on: Thu, 07 September 2006 07:53]

Report message to a moderator

Re: Avatars [message #33549 is a reply to message #33545] Thu, 07 September 2006 13:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Can you show me some of the error messages the conversion script is showing?

FUDforum Core Developer
Re: Avatars [message #33556 is a reply to message #33549] Thu, 07 September 2006 13:55 Go to previous messageGo to next message
Stephane is currently offline  Stephane   Netherlands
Messages: 11
Registered: September 2006
Location: The Netherlands
Karma: 0
Junior Member
I will do so the next time I run ipb.php. Very Happy

Unfortunately, although nothing was changed in the design regarding colours, icons and images, running ipb.php again with an updated forum database caused many settings to be lost, especially regarding the rights for certain users like moderators which are not a 1 to 1 mapping from IPB. I am not asking for a solution or a big change in your scripts, but would there be a way to lose 'fewer' settings during the update of the database (apart from making a backup of GLOBALS.php)?
For instance, the order in which the forums should be displayed was somehow 'reset' after running ipb.php. The 'Admin Area' which was visible only to admins, becomes visible for all again. This is the kind of settings I am talking about that get overwritten when running ipb.php again, and I would like to know if I can minimize the effect of it. (sorry, that has nothing to do with avatars)

Thanks for your help.
Re: Avatars [message #33557 is a reply to message #33556] Thu, 07 September 2006 14:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
When an import occurs all old data is cleared to prevent import conflicts, which is why some settings added AFTER the initial import are lost. There is no simple solution to this and any complex solution would probably cause quite a few problems down the road.

FUDforum Core Developer
Re: Avatars [message #33606 is a reply to message #33312] Sat, 09 September 2006 11:52 Go to previous messageGo to next message
Stephane is currently offline  Stephane   Netherlands
Messages: 11
Registered: September 2006
Location: The Netherlands
Karma: 0
Junior Member
Here are the errors I am getting when running ipb.php about avatars. It appears I need to copy files before importing them Very Happy
There are two kinds of errors: local copies that cannot be found and remote images:

COULD NOT GET AVATAR FILE: http://www.dan-balan.com/gif_new/banner_avater/avatar1.gif
AVATAR FILE: /home/ciska/public_html/forums/dan-balan/uploads/av-12.jpg does not exist
AVATAR FILE: /home/ciska/public_html/forums/dan-balan/uploads/av-13.gif does not exist
COULD NOT GET AVATAR FILE: http://www.liveinternet.ru/images/foto/765108/f_584964.jpg
AVATAR FILE: /home/ciska/public_html/forums/dan-balan/uploads/av-110.jpg does not exist
AVATAR FILE: /home/ciska/public_html/forums/dan-balan/uploads/av-117.gif does not exist
COULD NOT GET AVATAR FILE: http://67.18.37.16/2040/172/upload/av-78.jpg

So I suppose that next time I should first copy the files to the upload directory? Rolling Eyes
Re: Avatars [message #33616 is a reply to message #33606] Mon, 11 September 2006 13:32 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It appears that avatars are not found in the directories the forum's looking for. Do the files being search for exist in other directories of your old forum?

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Login as user to verify permissions
Next Topic: Imported into wrong Forum
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 04:58:45 GMT 2024

Total time taken to generate the page: 0.03039 seconds