This small code modification works with the administrator myfiles page for Proeder's File Attachment MOD. It places a separator between user folders in the file list, each the user folder's size and links to jump directly to a particular user's folder from the top of the page (and back).
I have a number of users who upload files and need them referenced by me (the admin). This formatting addition made it easier for me to locate a users files in the long list. Also it allows me to see how much disk space each user is utilizing.
if AdminAllowed then
'#################display current folder and disk usage################
Dim FolderList, dFolderList
'#################End display current folder and disk usage############
Set fc = f.SubFolders
For Each Folder in fc
SubFolderName = "/" & Folder.Name
if LCase(Mid(SubFolderName,1,5)) <> "/_vti" then
'#################display current folder and disk usage################
If Folder.Size > 0 then
If FolderList = "" Then
FolderList = "<CENTER><B>USER FOLDERS: <a href='#" & Ucase(Folder.Name) & "'>" & Ucase(Folder.Name) & "</a>"
dFolderList = "<form name=""UserFolders""><select name=""menu"" size=""1"" onChange=""location=document.UserFolders.menu.options[document.UserFolders.menu.selectedIndex].value;""><option value=''>User Folders</option>"
dFolderList = dFolderList + "<option value='#" & UCase(Folder.Name) & "'>" & Ucase(Folder.Name) & "</option>"
Else
FolderList = FolderList + " | <a href='#" & Ucase(Folder.Name) & "'>" & Ucase(Folder.Name) & "</a>"
dFolderList = dFolderList + "<option value='#" & UCase(Folder.Name) & "'>" & Ucase(Folder.Name) & "</option>"
End If
Response.Write "<tr><td bgcolor=""" & STRFORUMCELLCOLOR & """ colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><B>#160;<A NAME='" & UCase(Folder.Name) & "'>" & UCase(Folder.Name)& "</A></B> - Disk Usage = " & Round(Folder.Size/1048576,2) & " MB</font></td><td bgcolor=""" & STRFORUMCELLCOLOR & """><a href='#TOP'><img src=""../img/forums images/icon_go_up.gif"" width=""15"" height=""15"" border=""0"" alt=""Go to Top of Page"" title=""Go to Top of Page"" align=""right""></a></td></tr>"
End If
'#################End display current folder and disk usage############
response.write "<BLOCKQUOTE>"
Call ScanFolders(PathSpec & "/" & Folder.Name)
response.write "</BLOCKQUOTE>"
end if
Next
end if
'#################display current folder and disk usage################
Response.Write FolderList + "</B></CENTER><p>"
Response.Write dFolderList + "</select></form>"
'#################End display current folder and disk usage############
End Function
I hope someone else finds this useful as well.