baud2death wrote:Niels wrote:baud2death wrote:Does Extra permission give access to avatars etc? is there alist of what it can give/remove from user?
since extra mod is a mod, witch may change permission into any phpBB2 file, depending on the users permission or usergroup permission, I have "only" included examples about how to use this.....
e.g. I have included the code into memberlist.php witch control who may read (use) the file.
in same maner, you may apply this into profile.php (yes profile.php)
// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_ALL, PAGE_PROFILE, $userdata);
if( !$is_auth['auth_read'] )
{
$message = ( !$is_auth['auth_view'] ) ? $lang['Not_Authorised'] : sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
then indside usercp_register.php
you simply useif ($is_auth['auth_read'] )
{
do this, do that (upload avatar)
} else
{
do something else, ( display a error)
}
please note, in this example I have used "auth_read" you may e.g. use "auth_post" to determen who may upload avatars or any other auth (see ACP -> forum permission "advanced mode" about with you may use).
do not use auth_view,auth_read,auth_mod for "custom" code like yours.
when this is done, your "avatar" upload control will both work as a usergroup permission, aswell as a induvidual user permission...since extra permission control mod works with both
The auth_ for uploading an avatar on the usercp - what is it? or doesn't it matter? or can you make your own...?
Dont understand the auth function, dont suppose you could break it down for me?
so I will try explain in the following post


