Menu

Working on... [appendix]

Alexander
2000-09-10
2000-09-10
  • Alexander

    Alexander - 2000-09-10

    5) Create the user fall down menu in the Edit User menu, because i do not remember everyone who is registered, and the only way to select user is to type in his ID. So that FallDown menu with users will be great, and will be just the right thing I need. I understand that Edit Admins list is cool, but if we will put in a table all users it will be unlimited :) length for big sites.

     
    • Kelly Hamlin

      Kelly Hamlin - 2000-09-10

      In the unmodified admin.php3 go to the function named displayUsers() change this line:

      echo "<b>".translate("Handle/UserID").": </b> <input type=text name=\"chng_uid\" size=10>\n";

      to this code block:

      echo "<b>".translate("Handle/UserID").": </b> <select name=\"chng_uid\">\n";
      $sql = "select uname from users";
      $result = mysql_query($sql);
      while($row = mysql_fetch_object($result))
      {
      echo "<option value=\"".$row->uname."\">".$row->uname."</option>\n";
      }
      echo "</select>\n";

      That will create a dropdown menu of all your users

       

Log in to post a comment.

MongoDB Logo MongoDB