This new hack gives you the function of grouping all your attachments in one single list, divided into pages and with the option of viewing files by category, eg Video Clips, Archives and Excecutables etc.
All installation instructions are provided in the install file, and modification details are in the php file included in the zip. All images used for some files are also attached.
Any problems, queries or errors, please report here or PM me so I can sort them out as soon as possible, to ensure this hack is to your standards.
Current key functions:
Lists all attachments and spans over pages. You can specifiy the amount of attachments per page.
Specify usergroups who you do not wish to view the attachments.
Set out the same as attachments in posts, with icon, size and views.
Categories, so you can quickly view one type of file.
Display username.
Sort by username or filename.
If enabled, images category shows thumbnails.
Table row colours altered to make it easier to read username.
I hesitate to add this because I'm very happy with it all in all. I personally use it a lot and I know people coming to my site do as well. Before this 'hack' I made lists in the admincp and copied the source, edited it, added links and ended up with a static html file I linked to to show people what attachments there are. So - this has been very nice for me.
Using it a lot, I find the link to 'Parent Thread' in the listing would be much more convenient if it was a link to the actual post the attachment is in rather than to the thread. Some of the threads in my forums are rather long so finding the post with the attachment can take a minute or so of going through several pages or more.
Oh - and for the admin to be able to 'omit' specific forums from the listing.
I second that - making only the attachments you have permission to view show up in the list.
I'll be talking to DWard about it. As far as I am concerned, anyone can take my code and do whatever the heck they want with it. I don't get attached to such things. It ain't rocket science.
Question:
As far as I can tell, the only feature in the current Files List that is not in Attachment Browser, is the ability to list files by category, such as graphics files.
Is there anything else to consider for a possible merge of these scripts?
i won't use this untill those permissions issues are solved.
Attachment Browser already handles permissions. Eventually, I expect that the two hacks will merge, so at this point, it matters little which one you use.
This is a terrific addition, Dan, compliments to the chef!
I'm trying to think how I can use it for my needs, and hopefully your new version might address some of these, or others might have an idea how to use FL for this specific use:
Control what forums are included or excluded in FL (as in, include 21, 23, 26 or exclude 21, 23, 26, etc.)
Use the file list within a section more like a post than a full page (in this use FL acts as a sticky master list for that forum's attachments and wouldn't appear on the navbar or in userCP)
Forum IDs passed as part of the url: /forumlist.php?forum_id=26 (not correct, but shows what I mean)
I'm having some difficulty with making a list of forums to chose from etc, but to only include certain forum id's is pretty simple. I will take a look.
I'm having some difficulty with making a list of forums to chose from etc, but to only include certain forum id's is pretty simple. I will take a look.
How?
Haven't looked much into the hack but
INNER JOIN " . TABLE_PREFIX . "forum AS forum ON (thread.forumid = 70) ".$something_filetypes."
does not work. Well actually it does, the problem is that it returned the same attachment over and over.