Author Topic: one klick to list "awaiting users" in ACP?  (Read 2219 times)

0 Members and 1 Guest are viewing this topic.

Offline henary

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
one klick to list "awaiting users" in ACP?
« on: December 14, 2010, 05:09:01 PM »
Hello,

i've just change some in /adminm/home.php to see awaiting users directly an have link to users.php.

How can i change the link i.e. .../users.php?action=modifyusers&search=awaiting to get directly list of users instead of get form?

Here my code, edit /admin/home.php

search:
  $sql "SELECT COUNT(*) as users
          FROM "
.USERS_TABLE."
          WHERE "
.get_user_table_field("""user_id")." <> ".GUEST;
  
$row $site_db->query_firstrow($sql);

add after:
  $user $row['users'];

  
$sql "SELECT COUNT(*) as users
          FROM "
.USERS_TABLE."
          WHERE "
.get_user_table_field("""user_id")." = ".USER_AWAITING;
  
$row $site_db->query_firstrow($sql);
	
$useraw $row['users'];
	
if (
$useraw) {
	
  
$useraw "<b>".$useraw."</b> nicht aktiviert";
	
  
$useraw " / ".sprintf("<a href=\"".$site_sess->url("users.php")."\">%s</a>"$useraw );
	
}


search:
  echo "<td width=\"16%\"><b>".$lang['users']."</b></td><td width=\"16%\">".$row['users']."</td>\n";

replace with:
  echo "<td width=\"16%\"><b>".$lang['users']."</b></td><td width=\"16%\">".$user."".$useraw."</td>\n";

The count of users by default include awaiting users. If you add
  $user $user $useraw;
after
	
$useraw $row['users'];

you will have it more exactly  :wink:

But what about direct link?

Regards,
Henry