![]() |
Version 1.2 uploaded:
Screenshot: https://vborg.vbsupport.ru/attachmen...chmentid=19525 |
Does this hack support permissions and does it show private attachments if you have the PM attachment hack installed?
|
Does this hack support permissions
Boofoo, permissions for accessing attachments and posts is handled. Perrmission handling for generating the listing will likely be in version 2. vBulletin does not offer any modularized way of handling permissions, so it's rather a pain in the a**. As you no doubt are aware, this would require checking each attachment against the associated forum table, via the thread table, then for each listing entry, a call has to be made to "fetch_permissions". Permissions in play are CANVIEW, CANGETATTACHMENT, and possibly can_moderate. If CANVIEW is off, then we would not list the post title. Finally, there would be processing for forum passwords. I do not know how that would work nicely, as you could be interrogated multiple times for a single page. The only tables we touch currently are attachment, user, and post. I discussed this in the initial post as I anticipated it would be a concern. Now, if one tries to download an attachment or look at a post, or view a user's profile (in other words, follow any of the links on a listing, then the normal vBulletin permissions apply since these are standard vBulletin URLs. does it show private attachments if you have the PM attachment hack installed? No. I am not familiar with this hack. Is it used widely? |
Quote:
|
Quote:
Boofo, the question is "How should it work?" Attachment_browser is meant to be a user utility, not an admin utility. I suppose it could display the private attachments for the logged-in user, but I *believe* the private attachment hack does that now via profile.php. For listing other user's private attachments, I note that the private attachment hack does not have admin support, via admincp\attachment.php. Perhaps that's what you are after. Cheers |
The problem is that the Private attachments are not private in the dbase - they are stored as regular attachments, and are linked not to a thread, but to a PM - this is what needs to be added to determine who can view what ...
There is (btw) already a hack that displays a listing of all attahcments - take a look for the "Files List" hack ... Nevertheless, good work! :) |
Quote:
Yes, I saw that FilesList was posted, but I thought I would post ours nevertheless as it has significantly more features. |
This is a very nice and easy hack. *install*
May I ask the possibility to show a thumbnail when the attachment is an image? Thanks! ;-) |
Quote:
Today I tested the mod's to search only in a specific form. I'll post it later this week. Implementation I took the easy way here. Each list entry now contains the form name. Next to the forum name is a [Filter] link. Clicking such a link will add the corresponding forum ID to the current selection criteria. |
re: thumbnails
highlander_RD , It's not that hard, but it would sure mess up the page display, making some entries occupy a lot of vertical space. I'm betting you don't care about that. :) Personally, I always want as much information on a page as possible -- i.e., lots of entries. |
All times are GMT. The time now is 11:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|