Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2005-02-18 19:07:15

eelko
Member
Registered: 2004-02-17
Posts: 22

[1.4.0RC3] admin.php?page=profile "User Status" admin or guest

admin and guest in the field "$item['status']" are not used from the language table "$lang['user_status_guest']" or "$lang['user_status_admin']" in the "admin.lang.php" file.

Last edited by eelko (2005-02-18 19:10:31)

Offline

#2 2005-02-18 22:38:39

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11758
Website

Re: [1.4.0RC3] admin.php?page=profile "User Status" admin or guest

Are you sure ? I can't reproduce (testing in french and english), and when I look at the code :

Code:

//------------------------------------------------------------- user management
if (defined('IN_ADMIN') and IN_ADMIN)
{
  $status_select = '<select name="status">';
  $status_select .='<option value = "guest" ';
  if ($userdata['status'] == 'guest')
  {
    $status_select .= 'selected="selected"';
  }
  $status_select .='>'.$lang['user_status_guest'] .'</option>';
  $status_select .='<option value = "admin" ';
  if ($userdata['status'] == 'admin')
  {
    $status_select .= 'selected="selected"';
  }
  $status_select .='>'.$lang['user_status_admin'] .'</option>';
  $status_select .='</select>';
  $template->assign_block_vars(
    'modify.admin',
    array(
      'L_ADMIN_USER'=>$lang['user_management'],
      'L_STATUS'=>$lang['user_status'],
      'L_DELETE'=>$lang['user_delete'],
      'L_DELETE_HINT'=>$lang['user_delete_hint'],
      'STATUS'=>$status_select
      ));
}

language items are used


Latest blog post on Piwigo.com: Import from Flickr to Piwigo (May 21st, 2013)

Offline

#3 2005-02-18 22:58:19

eelko
Member
Registered: 2004-02-17
Posts: 22

Re: [1.4.0RC3] admin.php?page=profile "User Status" admin or guest

I create 3 screenshot for you to show:


Englisch
http://phpwebgallery.epel.nl/140rc3/gal … glisch.jpg

Français
http://phpwebgallery.epel.nl/140rc3/gal … ancais.jpg

Nederlands
http://phpwebgallery.epel.nl/140rc3/gal … rlands.jpg

Last edited by eelko (2005-02-18 23:44:24)

Offline

#4 2005-02-18 23:25:02

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11758
Website

Re: [1.4.0RC3] admin.php?page=profile "User Status" admin or guest

Sorry ! You're obviously right, I was not looking the right part of the script. Bug corrected.

As an excuse I would say that because of users list added in 1.4.0RC2, I didn't code this feature properly and implemented it in profile.php (where it has nothing to do!). This problem should disappear very quickly in BSF after 1.4.0 release.


Latest blog post on Piwigo.com: Import from Flickr to Piwigo (May 21st, 2013)

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013