[RC] 2.0.4/2.0.5 : Profile Controle Panel v 1.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

[RC] 2.0.4/2.0.5 : Profile Controle Panel v 1.0.1

Post by Ptirhiik » Thu May 08, 2003 6:55 pm

This mod add a control panel for users of your board.

Features included :
  • Front-office :
  • Friend and ignore list,
  • user-customizable member list,
  • list of the subscribed topics,
  • online/offline/hidden indicator,
  • summer time (DST) management (user and admin),
  • user groups display,
  • gender (based on gender mod by Niels Chr < ncr@db9.dk >),
  • gender on rank titles,
  • birthday date, anniversary whish,
  • signature preview/editor,
  • anti-robotic registration, disabling via ACP,
  • realname, phone/fax numbers,
  • user information display management by the user and restriction by the admin,
  • hide picture (avatar, signature, pic in post),
  • admin management from standard user link,
  • color for mods, admin and standard user set by the CSS,
  • private messages management integrated,

    Programming :
  • more friendly programmers adding fields to users table,
  • modulated menu and sub-menu management,
  • How to add a field/panel to PCP tutorials


Changelog


upgrade to v 1.0.1 : includes :
  • descro to upgrade from v 1.0.0 to v 1.0.1,
  • descro to upgrade from v 0.0.9 to v 1.0.0,
  • add : re-send password was missing : added by Simpelscript http://webpromo.haz.dk/ ,
  • enh : the redirection is no more to register form but to login form when not logged,
  • enh : modify the privmsg part in order to ease the installation,
  • fix : create_birthday_date() issued on certain server to an error,
  • fix : a lang key entry was wrong in profil_register.php,
  • fix : sorting on user pm in buddy list issued to an sql error,
  • fix : phpBB bug : the MOD user_level is granted before the acceptance into the group,
  • upg : dutch users will also find an upgrade of the language pack.
upgrade to v 1.0.0 : includes :
  • descro to upgrade from v 0.0.9 to v 1.0.0,
  • minor fixes,
  • enhanced management of the user_level (ADMIN_FOUNDER added),
  • add the ability to disable anti-robotic registering control in the ACP

upgrade to v 0.0.9 : includes :
  • fix duplicated private messages while editing
  • fix HTML allowed in username
  • rewrite a part of the memberlist to enhance compliancy with postgres and ease adds
  • minor issues
  • rewrite of the installation descro

upgrade to v 0.0.8 : includes :
  • descro to upgrade from v 0.0.7 to v 0.0.8,
  • fix the birthday - 1 day year 1969 issue,
  • add the set of gender in viewtopic.php,
  • add the user info in the call of function get_user_level_class(),
  • change the select javascript on the buddy list,
  • use of the class on author name in profile home
  • fix the sub value in the index sentence
  • add integration of private messages management

upgrade to v 0.0.7 : includes :
  • descro to upgrade from v 0.0.6 to v 0.0.7,
  • minor fixes,
  • rewrite some code to make it more readable,
  • extend the list of option for the memberlist to 50 fields
  • How to add fields/panels to the PCP tutorials

upgrade to v 0.0.6 : includes :
  • descro to upgrade from v 0.0.5 to v 0.0.6,
  • more fix to compliancy with postgres SQL database,

upgrade to v 0.0.5 : includes :
  • descro to upgrade from v 0.0.4 to v 0.0.5,
  • fix compliancy with postgres SQL database,

upgrade to v 0.0.4 : includes :
  • descro to upgrade from v 0.0.3 to v 0.0.4,
  • isolate the pic src files to a separate zip file,
  • use a the "link" color for standard user on the pseudo-css,
  • little fix for people having probs running under windows with older EasyPHP than 1.6,
  • little improvement for the selection on gender in the buddy lists,
  • add the rank to the memberlist, sort and filter included,
  • fix a quote issue in the username while registering

upgrade to v 0.0.3 : includes :
  • descro to upgrade from v 0.0.2 to v 0.0.3,
  • minor fix within the mod (ie: display date blank when equal 0),
  • fix username change ability for the user,
  • remove anti-robotic check when modifying the user,
  • fix wrong redirection after modifying a user,
  • fix on the user_summer_time initialisation

upgrade to v 0.0.2 : includes :
  • descro to upgrade from v 0.0.1 to v 0.0.2,
  • converter for Neil's birthday mod to PCP birthday date data,
  • birthday today list on index,
  • age on viewtopic,
  • minor fix to the installation descro

A great thanks to Gilgraf ( http://www.gilgraf.com/ggforum/ ) who was a so precious help while debugging and finalizing steps.

Also a great thanks to Lo'OriS for his help while fixing the postgres issues :).

I want also to thank all people having worked on this subject, although I restarted from 0, as it was a great help to choose what feature to add.


:arrow: the mod
:arrow: the picture src files, in photoshop format
:arrow: modified files pack : these are the original phpBB 2.0.4 files modified by the PCP (after the modifications of course ;)),
:arrow: demo board (you can use test pass test as profile if you don't want to register).

:arrow: Mirror

Languages pack with buttons included in the zip pack :
- English (of course ;)),
- French,
- Portuguese (thanks to Deriel),
- Dutch (thanks to SimpelScript & Anor),
- Chinese simplified (thanks to Ajax),
- Hebrew (thanks to ThE DrAgOn'S),
- German (thanks to Acid)


__________________________________________________


Add-ons and enhancement already existing :
__________________________________________________

Fixes to apply :
Last edited by Ptirhiik on Sat Sep 06, 2003 2:58 pm, edited 66 times in total.

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Thu May 08, 2003 7:08 pm

thanks for the mod it great :P

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 7:38 pm

It's, it's.... huge 8O

Let's test it against my 500k post forum. I'll bring my users impressions 8)

Mohd
Registered User
Posts: 263
Joined: Mon Jul 15, 2002 9:06 pm
Contact:

Post by Mohd » Thu May 08, 2003 8:02 pm

The best Control Panel I ever saw, Thanks :D
Visit My Site Mohd Web Site!
My Current mod is PaFileDb Integration 0.0.8
Demo: Click Here
No support via PM

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Thu May 08, 2003 8:36 pm

Deriel wrote: It's, it's.... huge 8O

Let's test it against my 500k post forum. I'll bring my users impressions 8)
Just let me know :).

I'm also very interested in translated pack ;).

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 9:03 pm

I got an error. When a normal user try to see a other user profile:

Code: Select all

Warning: main(./profilcp/) [function.main]: failed to create stream: Undefined error: 0 in /var/host/valinor/forum/www/profile.php on line 273

Warning: main() [function.main]: Failed opening './profilcp/' for inclusion (include_path='.:/usr/local/lib/php') in /var/host/valinor/forum/www/profile.php on line 273
As admin I don't see any error

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Thu May 08, 2003 9:16 pm

I've just register at your board, and doesn't see any problems :? (despiste english language is missing ;)). This perhaps appends when you were installing the mod, so uploading the progs to your ftp ?

[edit] ok, I manage to reproduce the error on you board, while clicking within the list of member to a name. I probably set a protect level to high for user, I check that.
Last edited by Ptirhiik on Thu May 08, 2003 9:23 pm, edited 1 time in total.

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 9:18 pm

You tried to see an another user profile an get no error? So strange 8O

My own profile as user is ok, to se another user tha is the problem

[edited] just see yout [edit] now :)

[re-edited] in the demo board (from this topic) when I click in a user profile, he show me a page of profile emptied, with no links in the tabs nor information in the actual tab

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 9:24 pm

New information: my Moderators can edit any option from any user

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Thu May 08, 2003 9:26 pm

I think I find the prob (a last modification also ;)). Answer in a few seconds.

[Edit] Done : the fix :

Code: Select all

#
#---[ OPEN ]-------------
#
profilcp/profilcp_public.php
#
#---[ FIND ]--------------
#
 *	version				: 1.0.0
#
#---[ REPLACE WITH ]-----
#
 *	version				: 1.0.1
#
#---[ FIND ]--------------
#
	$module['mode'][] = 'public';
#
#---[ REPLACE WITH ]-----
#
	$module['mode'][] = 'viewprofile';
#
#---[ SAVE AND CLOSE ALL FILES ]-------
# EoM
Zip pack upgraded :)

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 9:41 pm

lang_main.php

PORTUGUESE - BRAZIL

Code: Select all

//-- mod : profile cp ------------------------------------------------------------------------------
//-- add
$lang['profilcp_index_shortcut'] = 'Principal';
$lang['profilcp_index_pagetitle'] = 'Perfil';
$lang['profilcp_buddy_shortcut'] = 'Lista de Amigos';
$lang['profilcp_buddy_pagetitle'] = 'Amigos';
$lang['profilcp_buddy_friend_shortcut'] = 'Lista de Amigos';
$lang['profilcp_buddy_friend_pagetitle'] = 'Editar sua lista de Amigos';
$lang['profilcp_buddy_ignore_shortcut'] = 'Lista de Ignorados';
$lang['profilcp_buddy_ignore_pagetitle'] = 'Editar sua lista de Ignorados';
$lang['profilcp_buddy_list_shortcut'] = 'Todos os Usuários';
$lang['profilcp_buddy_list_pagetitle'] = 'Usuários';
$lang['profilcp_profil_shortcut'] = 'Perfil';
$lang['profilcp_profil_pagetitle'] = 'Edição de Perfil';
$lang['profilcp_profil_base_shortcut'] = 'Público';
$lang['profilcp_profil_base_pagetitle'] = 'Informações Públicas';
$lang['profilcp_signature_shortcut'] = 'Assinatura';
$lang['profilcp_signature_pagetitle'] = 'Assinatura';
$lang['profilcp_avatar_shortcut'] = 'Avatar';
$lang['profilcp_avatar_pagetitle'] = 'Avatar';
$lang['profilcp_prefer_shortcut'] = 'Preferências';
$lang['profilcp_prefer_pagetitle'] = 'Suas preferências';
$lang['profilcp_public_shortcut'] = 'Público';
$lang['profilcp_public_pagetitle'] = 'Informações Públicas';
$lang['profilcp_public_base_shortcut'] = 'Informações Básicas';
$lang['profilcp_public_base_pagetitle'] = 'Informações Básicas';
$lang['profilcp_public_groups_shortcut'] = 'Grupos';
$lang['profilcp_public_groups_pagetitle'] = 'Grupos a que o Usuário pertence';
$lang['profilcp_register_shortcut'] = 'Registro';
$lang['profilcp_register_pagetitle'] = 'Informações de Registro';
$lang['profilcp_admin_shortcut'] = 'Administração';
$lang['profilcp_admin_pagetitle'] = 'Informações para Administradores';
$lang['profilcp_public_info'] = 'Informações Públicas';
$lang['profilcp_sig_preview'] = 'Previsão de Assinatura';
$lang['profilcp_email_title'] = 'Endereço de E-mail';
$lang['profilcp_email_confirm'] = 'Confirme seu endereço de E-mail';
$lang['profilcp_buddy_messages'] = 'Mensagens';
$lang['profilcp_password_explain'] = 'Você deve confirmar sua senha atual se deseja alterá-la';
$lang['profilcp_buddy_add_yourself'] = 'Você não pode adicionar a si mesmo em sua lista de Amigos';
$lang['profilcp_buddy_already'] = 'O Usuário já está em sua lista de Amigos';
$lang['profilcp_buddy_ignore'] = 'Adição impossível: o usuário te Ignora';
$lang['profilcp_buddy_you_admin'] = 'Sendo um Administrador ou Moderador, não pode Ignorar Usuários';
$lang['profilcp_buddy_admin'] = 'Você não pode ignorar Administradores e/ou Moderadores';

$lang['profilcp_username_missing'] = 'Username faltando';
$lang['profilcp_email_not_matching'] = 'E-mails não são iguais';

$lang['Click_return_profilcp'] = 'Clique %saqui%s para retornar ao Perfil';
$lang['Click_return_privmsg'] = 'Clique %saqui%s para retornar às Mensagens Particulares';
$lang['Friend'] = 'Amigo';
$lang['Online'] = 'Online';
$lang['Offline'] = 'Offline';
$lang['Hidden'] = 'Invisível';
$lang['Nobody'] = 'Ninguém';
$lang['Always_visible'] = 'Sempre visível para este usuário';
$lang['Not_always_visible'] = 'Este Usuário não poderá vê-lo enquanto você estiver em Modo Invisível';
$lang['Unavailable'] = 'Indisponível';

$lang['Friend_list'] = 'Lista de Amigos';
$lang['Ignore_list'] = 'Lista de Ignorados';
$lang['New_subscribed_topic'] = 'Tópicos Observados';
$lang['Submit_period'] = 'Ver tópicos desde';
$lang['No_new_subscribed_topic'] = 'Sem novas respostas aos Tópicos Observados nos últimos %s dias';
$lang['No_new_subscribed_topic_at all'] = 'Sem respostas aos Tópicos Observados';

$lang['Ignore_choosed'] = 'Você optou por Ignorar este Usuário';

$lang['Add_to_friend_list'] = 'Adicionar à sua Lista de Amigos';
$lang['Remove_from_friend_list'] = 'Retirar da sua Lista de Amigos';
$lang['Add_to_ignore_list'] = 'Adicionar à sua Lista de Ignorados';
$lang['Remove_from_ignore_list'] = 'Remover da sua Lista de Ignorados';

$lang['Last_visit'] = 'Última visita';
$lang['Other'] = 'Outros...';
$lang['View_user'] = 'Mostre-me como Online';
$lang['Friend_only'] = 'Apenas para Amigos';

$lang['Profile_created'] = 'Seu Perfil foi criado';
$lang['Profile_created_inactive'] = 'Seu Perfil foi criado. Contudo, sua conta está inativa. Verifique seu e-mail para saber como ativar sua conta.';

$lang['anti_robotic'] = 'Imagem de Controle';
$lang['anti_robotic_explain'] = 'Este controle foi criado para evitar registros automáticos';
$lang['Robot_flood_control'] = 'O que você ~digitou não confere com a Imagem de Controle';

$lang['Birthday'] = 'Aniversário';
$lang['Happy_birthday'] = 'Feliz Aniversário !';
$lang['birthday_msg'] = 'Olá %s, <br><br><br> %s gostaria de lhe desejar um Feliz Aniversário !';

$lang['User_special'] = 'Campos especiais exlusivos para Admins';
$lang['User_special_explain'] = 'Este campos não são modificáveis pelos usuários. Aqui você pode alterar o estado dos mesmos e outras opções não dadas aos Usuários.';

$lang['summer_time'] = 'Você está num fuso horário com Horário de Verão?';
$lang['User_status'] = 'Usuário está Ativo';
$lang['User_allow_pm'] = 'Pode mandar Mensagens Particulares';
$lang['User_allowavatar'] = 'Pode Usar Avatar';
$lang['User_allow_email'] = 'Pode Enviar E-mails';
$lang['User_allow_website'] = 'Pode Mostrar sua Informação de WWW';
$lang['User_allow_messanger'] = 'Pode Divulgar seus Endereços de IM (ICQ, MSN, etc)';
$lang['User_allow_real'] = 'Pode Mostrar Informações Pessoais';
$lang['User_allow_sig'] = 'Pode Mostrar uma Assinatura';
$lang['Rank_title'] = 'Título do Rank';
$lang['No_assigned_rank'] = 'Sem ranks especiais designados';

$lang['User_delete'] = 'Apagar este Usuário';
$lang['User_delete_explain'] = 'Clique aqui para apagar este Usuário. A operação é permanente: não pode ser desfeita.';
$lang['User_deleted'] = 'Usuário apagado com sucesso';

$lang['User_fields'] = 'Lista de campos do Usuário';
$lang['Sort_none'] = 'Desordenado';

$lang['Comp_LE'] = 'é menor que';
$lang['Comp_EQ'] = 'é igual a';
$lang['Comp_NE'] = 'é diferente de';
$lang['Comp_GE'] = 'é maior que';
$lang['Comp_IN'] = 'inclui';
$lang['Comp_NI'] = 'não inclui';

$lang['Display'] = 'Visor';
$lang['Web_info'] = 'Informações Web';
$lang['Messangers'] = 'IM';
$lang['Real_info'] = 'Informações Pessoais';

$lang['Realname'] = 'Nome Real';
$lang['Home_phone'] = 'Telefone de Casa';
$lang['Home_fax'] = 'fax de Casa';
$lang['Work_phone'] = 'Telefone do Trabalho';
$lang['Work_fax'] = 'Fax do Trabalho';
$lang['Cellular'] = 'Celular';
$lang['Pager'] = 'Pager';
$lang['Gender'] = 'Sexo';
$lang['Male'] = 'Masculino'; 
$lang['Female'] = 'Feminino'; 
$lang['No_gender_specify'] = 'Indeciso';

$lang['Public_view_pm'] = 'Aceitar Mensagens particulare';
$lang['Public_view_avatar'] = 'Mostrar Avatares';
$lang['Public_view_sig'] = 'Mostrar Assinaturas';
$lang['Public_view_img'] = 'Mostrar Imagens';

$lang['Do_not_allow_pm'] = 'Este Usuário não aceita Mensagens Particulares';
$lang['Agree_rules'] = 'Clicando aqui você declara ciência destas regras e concorda com elas';
$lang['Disagree_rules'] = 'Você declarou que não concorda com as regras deste fórum, portanto não pode se registrar';
//-- fin mod : profile cp --------------------------------------------------------------------------
Last edited by Deriel on Thu May 08, 2003 10:03 pm, edited 1 time in total.

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Thu May 08, 2003 9:47 pm

A great thanks to you (you'll be of course grant for the portuguese pack :)). Could you do the same for the lang_admin.php ?

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 9:48 pm

Ptirhiik - RPGnet-fr wrote: I think I find the prob (a last modification also ;)). Answer in a few seconds.

[Edit] Done : the fix :



Yes, yes, it's alive !

But it's the idea to give to the Moderators the ability to edit any user options in the Profile tab?

User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik » Thu May 08, 2003 9:56 pm

In fact they have the access to all the fields the user has. They don't have access to the admin fields.

There's also a hierarchy auth based on the level of the user : take a look at function_profiles.php : a moderator can't edit another moderator, nor the admin :).

to ungrant mod auth on the users field, change :

Code: Select all

$admin_level = array(ADMIN, MOD);
by

Code: Select all

$admin_level = array(ADMIN);
to change the auth priority (ie: add supermoderator level) modify :

Code: Select all

$level_prior = array(ADMIN => 9, MOD => 5, USER => 0);
and add to $admin_level and $level_prior the super-moderator level.
Last edited by Ptirhiik on Thu May 08, 2003 9:57 pm, edited 1 time in total.

Deriel
Registered User
Posts: 164
Joined: Tue Aug 27, 2002 5:16 pm
Location: Curitiba/PR - Brasil
Contact:

Post by Deriel » Thu May 08, 2003 9:57 pm

Ptirhiik - RPGnet-fr wrote: A great thanks to you (you'll be of course grant for the portuguese pack :)). Could you do the same for the lang_admin.php ?


Sure :)

lang_admin.php

PORTUGUESE BRAZIL

Code: Select all

//-- mod : profile cp ------------------------------------------------------------------------------
//-- add
$lang['summer_time_set'] = 'É Horário de Verão? (adiciona +1 hora à hora local padrão)';
$lang['Forum_rules'] = 'Id do Tópico de Regras do Fórum';
//-- fin mod : profile cp --------------------------------------------------------------------------


REALLY thanks! 8)

Locked

Return to “[2.0.x] MODs in Development”