Shared File Module user column

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/10/2007 9:19:38 AM
Gravatar
Total Posts 80

Shared File Module user column

In the Shared Files module it would be nice to see who uploaded the file by adding a "User" table column to SharedFiles.ascx.  The SharedFiles db table contains the "UploadUserID" for each file. Use this to query the Users db table for the login name. I ended up adding a function to SiteUser.cs to easily obtain a user given the user id:

        public static String GetUserNameFromID(int userID)
        {
            String result = String.Empty;
            if ((userID > 0))
            {
                String comma = String.Empty;
                IDataReader reader = dbPortal.SiteUser_GetSingleUser(userID);
                while (reader.Read())
                {
                    result += comma + reader["LoginName"].ToString();
                    comma = ", ";

                }
                reader.Close();
            }

            return result;
        }
1/12/2007 12:08:25 PM
Gravatar
Total Posts 18439

Re: Shared File Module user column

I've added display of user name to shared files in svn branches/2.x

Thanks,

Joe
You must sign in to post in the forums. This thread is closed to new posts.