Myfiles.asp display options - نوشته شده در (1062 Views)
Junior Member
leesh695
مطلب: 101
101
Hi,

Is it possible to modify the myfiles.asp file found in mikes file attachment mod.
So they you can have the option to only show files uploaded today, this week & this month?
Thanks in Advance.
- Lee<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Junior Member
leesh695
مطلب: 101
101
Not possible?<
نوشته شده در
Senior Member
MaD2ko0l
مطلب: 1053
1053
its proberly possiable, i would imaging you would just query the database for them files only, but i cannto help as i dont use mikes mod andi dont have the knowledge.<
© 1999-2010 MaD2ko0l
نوشته شده در
Junior Member
leesh695
مطلب: 101
101
It looks in a folder with folders with usernames ect. I think<
نوشته شده در
Junior Member
PPSSWeb
مطلب: 312
312
In Function ScanFolders(PathSpec) you would need to check the date created for each file against the time frame you select. Something Like:
Code:
Function ScanFolders(PathSpec)

Dim fs, f, Folder, fc, s, File, FileList, FolderInfo, FileName, Name

response.write "<BLOCKQUOTE>"

Set FolderInfo = Fso.GetFolder(PathSpec)
Set FileList = FolderInfo.Files

For Each File in FileList

If File.DateCreated > TimeSelected Then 'TimeSelected being today, this week, month, etc. you would use your favorite date compare function here
' continue processing to output name
Else
' do nothing and continue to next file
EndIf


<
نوشته شده در
Junior Member
leesh695
مطلب: 101
101
Originally posted by PPSSWeb
In Function ScanFolders(PathSpec) you would need to check the date created for each file against the time frame you select. Something Like:
Code:
Function ScanFolders(PathSpec)

Dim fs, f, Folder, fc, s, File, FileList, FolderInfo, FileName, Name

response.write "<BLOCKQUOTE>"

Set FolderInfo = Fso.GetFolder(PathSpec)
Set FileList = FolderInfo.Files

For Each File in FileList

If File.DateCreated > TimeSelected Then 'TimeSelected being today, this week, month, etc. you would use your favorite date compare function here
' continue processing to output name
Else
' do nothing and continue to next file
EndIf




Would someone be able to code this for me? I would pay a little $cool<
 
شما باید یک متن وارد کنید