Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Myfiles.asp display options
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

leesh695
Junior Member

101 Posts

Posted - 01 June 2008 :  10:06:14  Show Profile  Reply with Quote
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<

leesh695
Junior Member

101 Posts

Posted - 02 June 2008 :  12:19:39  Show Profile  Reply with Quote
Not possible?<
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 02 June 2008 :  12:48:04  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
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
Go to Top of Page

leesh695
Junior Member

101 Posts

Posted - 05 June 2008 :  14:51:04  Show Profile  Reply with Quote
It looks in a folder with folders with usernames ect. I think<
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 June 2008 :  16:37:37  Show Profile  Reply with Quote
In Function ScanFolders(PathSpec) you would need to check the date created for each file against the time frame you select.
Something Like:
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



<
Go to Top of Page

leesh695
Junior Member

101 Posts

Posted - 16 June 2008 :  17:31:33  Show Profile  Reply with Quote
quote:
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:
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 $<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07