Page 1 of 1

Avatar Approval

PostPosted: Wed Mar 29, 2006 8:26 am
Author: Eon
Is there a mod or something I am missing where admins can approve a users avatar before it is shown in public?

We have problems with people choosing inappropriate avatars sometimes, and this would solve this problem if the admins could view it before it went public.

Is this something that can be addd to the Approval Mod, or is there a mod that has this option already?

Re: Avatar Approval

PostPosted: Wed Mar 29, 2006 8:30 am
Author: Helter
if it is possible, im sure it will be in PCP, but im still learning how to edit it. Ill check it out when I get home from work tonight

PostPosted: Wed Mar 29, 2006 11:02 am
Author: Eon
Cool. Yeah I thought so maybe too. But all I see is the option to show or not show.

I would like to see if it would be like admin msg user wants this avatar approve or no.

Kind of like how the Aproval mod does topics and stuff.

PostPosted: Wed Apr 12, 2006 6:34 am
Author: Eon
Any results on this Helter? I still haven't figured it out.

Re: Avatar Approval

PostPosted: Wed Apr 12, 2006 8:09 am
Author: Helter
I did not see where to add this. I think someone more familiar with PCP may have more luck

PostPosted: Wed Apr 12, 2006 10:08 am
Author: Eon
k thanks Helter.

Re: Avatar Approval

PostPosted: Sat Jul 22, 2006 7:54 am
Author: Stephanie
SBSTech did the Avatar Hack for me awhile ago, rewriting it for im! It works fabulous!

No files to download, just code

//-- [ SQL ]------------------------------------------
//--

ALTER TABLE phpbb_users ADD `user_allowAVgallery` tinyint(1) NOT NULL default '0';
ALTER TABLE phpbb_users ADD `user_allowAVremote` tinyint(1) NOT NULL default '0';
ALTER TABLE phpbb_users ADD `user_allowAVupload` tinyint(1) NOT NULL default '0';

//-- [ OPEN ]------------------------------------------
//--

/admin/admin_users.php

//--
//-- [ FIND ]------------------------------------------
//--

$user_allowavatar = ( !empty($HTTP_POST_VARS['user_allowavatar']) ) ? intval( $HTTP_POST_VARS['user_allowavatar'] ) : 0;

//-- [ AFTER, ADD ]------------------------------------------
//--

$user_allowAVgallery = ( !empty($HTTP_POST_VARS['user_allowAVgallery']) ) ? intval( $HTTP_POST_VARS['user_allowAVgallery'] ) : 0;
$user_allowAVremote = ( !empty($HTTP_POST_VARS['user_allowAVremote']) ) ? intval( $HTTP_POST_VARS['user_allowAVremote'] ) : 0;
$user_allowAVupload = ( !empty($HTTP_POST_VARS['user_allowAVupload']) ) ? intval( $HTTP_POST_VARS['user_allowAVupload'] ) : 0;


//-- [ FIND ]------------------------------------------
//--

, user_allowavatar = $user_allowavatar

//-- [ INLINE AFTER, ADD ]------------------------------------------
//--

, user_allowAVgallery = $user_allowAVgallery, user_allowAVremote = $user_allowAVremote, user_allowAVupload = $user_allowAVupload

//-- [ FIND ]------------------------------------------
//--

$user_allowpm = $this_userdata['user_allow_pm'];

//-- [ AFTER, ADD ]------------------------------------------
//--

$user_allowAVgallery = $this_userdata['user_allowAVgallery'];
$user_allowAVremote = $this_userdata['user_allowAVremote'];
$user_allowAVupload = $this_userdata['user_allowAVupload'];

//-- [ FIND ]------------------------------------------
//--

$s_hidden_fields .= '<input>';

//-- [ AFTER, ADD ]------------------------------------------
//--

$s_hidden_fields .= '<input>';
$s_hidden_fields .= '<input>';
$s_hidden_fields .= '<input>';

//-- [ FIND ]------------------------------------------
//--

'ALLOW_AVATAR_YES' => ($user_allowavatar) ? 'checked="checked"' : '',
'ALLOW_AVATAR_NO' => (!$user_allowavatar) ? 'checked="checked"' : '',

//-- [ AFTER, ADD ]------------------------------------------
//--

'ALLOW_AVGALLERY_YES' => ($user_allowAVgallery) ? 'checked="checked"' : '',
'ALLOW_AVGALLERY_NO' => (!$user_allowAVgallery) ? 'checked="checked"' : '',
'ALLOW_AVREMOTE_YES' => ($user_allowAVremote) ? 'checked="checked"' : '',
'ALLOW_AVREMOTE_NO' => (!$user_allowAVremote) ? 'checked="checked"' : '',
'ALLOW_AVUPLOAD_YES' => ($user_allowAVupload) ? 'checked="checked"' : '',
'ALLOW_AVUPLOAD_NO' => (!$user_allowAVupload) ? 'checked="checked"' : '',

//-- [ FIND ]------------------------------------------
//-- //--

'L_ALLOW_AVATAR' => $lang['User_allowavatar'],

//-- [ AFTER, ADD ]------------------------------------------
//--

'L_ALLOW_AVGALLERY' => $lang['User_allowAVgallery'],
'L_ALLOW_AVREMOTE' => $lang['User_allowAVremote'],
'L_ALLOW_AVUPLOAD' => $lang['User_allowAVupload'],

//-- [ OPEN ]------------------------------------------
//--

/profilcp/profilcp_profil_avatar.php

//-- [ FIND ]------------------------------------------
//--

if ( $mode != 'register' )
{
if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
{
$template->assign_block_vars('switch_avatar_block', array() );

//-- [ FIND NEXT ]------------------------------------------
//--

if ( $board_config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_path'])) )

//-- [ INLINE FIND ]------------------------------------------
//--

$board_config['allow_avatar_upload']


//-- [ INLINE AFTER ADD ]------------------------------------------
//--

&& $userdata['user_allowAVupload']



//-- [ FIND ]------------------------------------------
//--

if ( $board_config['allow_avatar_remote'] )


//-- [ INLINE FIND ]------------------------------------------
//--

)

//-- [ INLINE BEFORE ADD ]------------------------------------------
//--

&& $userdata['user_allowAVremote']

//-- [ FIND ]------------------------------------------
//--

if ( $board_config['allow_avatar_local'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_gallery_path'])) )

//-- [ INLINE FIND ]------------------------------------------
//--

$board_config['allow_avatar_local']

//-- [ INLINE AFTER ADD ]------------------------------------------
//--

&& $userdata['user_allowAVgallery']


//-- [ OPEN ]------------------------------------------
//--

/language/lang_english/lang_admin.php

//-- [ FIND ]------------------------------------------
//--

$lang['User_allowavatar'] = 'Can display avatar';

//-- [ AFTER, ADD ]------------------------------------------
//--

$lang['User_allowAVgallery'] = 'Can select gallery avatar';
$lang['User_allowAVremote'] = 'Can remote link an avatar';
$lang['User_allowAVupload'] = 'Can upload an avatar';

//-- [ OPEN ]------------------------------------------
//--

/templates/XXXXXX/admin/user_edit_body.tpl

//-- [ FIND ]------------------------------------------
//--

<tr>
<td><span>{L_ALLOW_AVATAR}</span></td>
<td>
<input>
<span>{L_YES}</span>
<input>
<span>{L_NO}</span></td>
</tr>

//-- [ AFTER, ADD ]------------------------------------------
//--

<tr>
<td><span>{L_ALLOW_AVGALLERY}</span></td>
<td>
<input>
<span>{L_YES}</span>
<input>
<span>{L_NO}</span></td>
</tr>
<tr>
<td><span>{L_ALLOW_AVREMOTE}</span></td>
<td>
<input>
<span>{L_YES}</span>
<input>
<span>{L_NO}</span></td>
</tr>
<tr>
<td><span>{L_ALLOW_AVUPLOAD}</span></td>
<td>
<input>
<span>{L_YES}</span>
<input>
<span>{L_NO}</span></td>
</tr>

//--
//-- [ SAVE & CLOSE ALL FILES ]------------------------------------------

//-- End

PostPosted: Sun Jul 23, 2006 5:55 pm
Author: Eon
cool thanx!

PostPosted: Tue Jul 25, 2006 8:11 am
Author: MrDSL
Doesn't that code just give admin option to allow ppl certain access to avatar uploads? I don't see anything in the code that has anything to do with approving a user selected avatar.