1 (edited by nibez 2006-07-22 16:02)

Topic: Is it possible to only allow a certain usergroup to upload an avatar.

Is it possible to only allow a certain usergroup to upload an avatar.


The title says it all.


EDIT::

Nevermind, i figured it out!

I changed the

"   

if ($pun_config['o_avatars'] == '0')
        message($lang_profile['Avatars disabled']);

"
In Profile.php

to

"

    if ($pun_user['g_id'] == 8)
        message($lang_profile['Avatars disabled']);

""

If anyone wanted to know..

Re: Is it possible to only allow a certain usergroup to upload an avatar.

You should use this code instead:

    if ($pun_config['o_avatars'] == '0' || $pun_user['g_id'] == 8)
        message($lang_profile['Avatars disabled']);

so that if you ever disable avatars globally, it will still function correctly.

Looking for a certain modification for your forum? Please take a look here before posting.

3

Re: Is it possible to only allow a certain usergroup to upload an avatar.

pogenwurst wrote:

You should use this code instead:

    if ($pun_config['o_avatars'] == '0' || $pun_user['g_id'] == 8)
        message($lang_profile['Avatars disabled']);

so that if you ever disable avatars globally, it will still function correctly.

Oh thanks! tongue