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.
any luck with file permissions? I would like non-registered users to see the page but not be able to download the attachments. There should be a way to fix this. This will only help promote sites that deal with files and non-registered users can see what they will expect from the site before signing up!
It should already be that way, it is on my site, so...
If your a guest, no thumbnails are displayed, just the filename is like the other attachments. And if you click on a filename, then it will bring a 'no permission' message up in a new window with a login bit on it.
"I'm probably being a P.I.T.A. (pain in the...neck?) but is there a way you could search by Thread?
For example, I know that if I'm looking for something about audits I can search for that keyword but is there a way I can search for attachments that appear in the parent thread 'Auditing including ISO 19011' only?"
Any chance we can have it so that it only shows in the list the attachments you have permissions for - I know you say it shows the no_permission thing, but this is not ideal....
Any chance we can have it so that it only shows in the list the attachments you have permissions for - I know you say it shows the no_permission thing, but this is not ideal....
I'm sure that will be easy enough, I can spend as long as I like when I finish college in a couple of weeks so I can tkae a look then if its ok
I just found what I was looking for earlier. I want my guests to see what files we have to offer but they can only download it if they are the members of the site (set in usergroup permissions).
I just removed the following lines from the code:
Code:
if (!(CANGETATTACHMENT))
{
print_no_permission();
}
Just in case anyone else is looking for the same thing, you can simply remove those lines.