Avatar Approval

Mods etc.

Moderator: Integra Moderator

Avatar Approval

PostAuthor: Eon » Wed Mar 29, 2006 7:26 am

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?
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: Avatar Approval

PostAuthor: Helter » Wed Mar 29, 2006 7:30 am

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
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

PostAuthor: Eon » Wed Mar 29, 2006 10:02 am

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.
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: Eon » Wed Apr 12, 2006 5:34 am

Any results on this Helter? I still haven't figured it out.
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: Avatar Approval

PostAuthor: Helter » Wed Apr 12, 2006 7:09 am

I did not see where to add this. I think someone more familiar with PCP may have more luck
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

PostAuthor: Eon » Wed Apr 12, 2006 9:08 am

k thanks Helter.
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: Avatar Approval

PostAuthor: Stephanie » Sat Jul 22, 2006 6:54 am

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
Last edited by Stephanie on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Stephanie
Newbie
Newbie
 
Posts: 18
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 27, 2006 6:34 am
Cash on hand: 0.00

PostAuthor: Eon » Sun Jul 23, 2006 4:55 pm

cool thanx!
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

PostAuthor: MrDSL » Tue Jul 25, 2006 7:11 am

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.
Last edited by MrDSL on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
MrDSL
PCP Master
PCP Master
 
Posts: 41
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 27, 2006 4:34 am
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot]