Topic: Upload of avatars only by admin

Hello
I looked at the posts of the 10 research pages on avatars without finding answer to this : I would like which modification it is necessary to make in profile.php to prevent the users from uploader avatars themselves them. My idea is that the admin uploads itself avatars directly by FTP after having accepted them.
Thanks a lot.

Re: Upload of avatars only by admin

Hrmm. In profile.php, find:

else if ($action == 'upload_avatar' || $action == 'upload_avatar2')
{

Add after:

message('Only admins can assign avatars');

And then just upload the avatar with the user's ID as the name.

Re: Upload of avatars only by admin

This should also be possible in PunBB 1.3 with an extension (say, one that controlled avatar permissions for a usergroup)

Re: Upload of avatars only by admin

Thank you for your quick answer. I am going to try. smile

Re: Upload of avatars only by admin

Works fine! Thx a lot.

Re: Upload of avatars only by admin

Thanks for solving problem. It may create security problem.

Re: Upload of avatars only by admin

mirturk wrote:

Thanks for solving problem. It may create security problem.

There's no security issues with uploading avatars wink

Re: Upload of avatars only by admin

Is it possible to do the same for signature? Thanks

Re: Upload of avatars only by admin

Yes, an extension could be made to do the same for signatures

10 (edited by cheetah 2007-04-05 18:15)

Re: Upload of avatars only by admin

I do not see where to put the code
Near  #799  // Validate signature

Re: Upload of avatars only by admin

Oh, you meant like the code Bekko used for avatars? No, it's not quite that easy. If you want more information, make a new topic in Modifications

Re: Upload of avatars only by admin

Thank you for your help. I am going to do that. smile