![]() |
Attachment Browser (v2.1 beta testing)
List/Search Attachment Files
List, filter/search, sort, etc. for attachments files. Respects forum permissions. Supports limiting search to a single forum or a list of forums. Also, a separate attachment summary page is available. Any problems raised in this thread have been fixed. For new features in version 2, see below under Version 2 for "New" entries. Standard page navigation is supported to go to last page, prev, next, etc. Sorts, ascending or descending, are supported for:
Changes pending for version 2.1
Version 2:
---------------------------- To search in a single forum: use the single click [Filter] next to any forum name on a page or enter the forumid on the "Display Options" form. To search only in a selected list of forums: Enter a comma-separated list of forumid's in "Display Options". You can AdminCP-install custom templates to override our defaults ones. You can AdminCP-install custom phrases to override the defaults -- all references in templates are to "$vbphrase[XXX]". If you do not want to change the default templates or phrases, then there are no other files to install -- just put this one in the main '/forum' directory. If you want to modify the default templates, copy them from this file and install them as usual. We will notice when there are installed templates to override our defaults. The same applies to phrases. We only list forums that the user has permissions to view and get attachments, for attachments that are visible and not from deleted posts. We do 2 queries: (1) get the total COUNT of accessible attachments matching the selection criteria and (2) retrieve enough rows to fill the requested page. If you follow a link on one of our pages to download an attachment, view a user profile, or view the original post, then the normal access checks will apply, as these links simply invoke standard vBulletin files. The templates referenced are: attbro_MAIN, attbro_FORM, attbro_ERROR, attbro_attachbit, attbro_SUMMARY and attbro_summary_categorybit. The default templates and phrases are defined in this file. Look for '$MyDefaultTemplates' and '$MyDefaultPhrases'. For example, if we had a template named 'attbro_example', it will appear in this file as: $MyDefaultTemplates['attbro_example'] = ' LINE 1 OF TEMPLATE LINE 2 OF TEMPLATE '; To install a custom version, just copy the LINES and install it under the template name attbro_example. ---------------------------- This extension is free, and will remain free. Cheers, CarCdr |
it seems to be breakin the width of the broswer.. see
http://www.exasko.info/forum/attachment_browser.php? |
nothing to edit??? This got to be the easy hack/mod :)
thnx I tried it looks nice but breaks the width a little and when I click on Download I get a 404 with this URL: h##p/www.mydomain.com/forums/attachment_browser?do=list&userid=1 |
Looks really nice and simple :)
But it doesn't use templates so I won't use it.... :( I would have to translate it and i don't want to crawl the php-page. |
this hack have to be in the Beta Releases section, because is not following the vBulletin3 protocol... no lang phrases, no templates, not using the templates at all,... maybe be useful but not in the full released!
|
everyone go to usercp , attachments i thibk you should find an attachment browser there
|
Yes but thats just for each user to see what they have uploaded. This is pretty cool in that it looks to offer a quick and easy page to call up for all attachments from everyone rather than going in through the AdminCP. I think a little more tweaking and it will be a good little add-on. :)
|
Quote:
The only caveat is that you have to replace \' with ' before saving them in AdminCP. For example, to replace the bit used for the listing rows, copy the template lines between: $MyDefaultTemplates['attbro_attachbit'] = ' TEMPLATE TEXT'; |
Quote:
Note that there was a style problem fixed in the just-uploaded v1.1, whereby I forgot a 'class="tcat"' on the first line of the table heading. That is why you see a slightly odd coloration on that first table header line in the attached GIF. That should be fixed now. If you could attach a shot of a broken display, that would be very helpful. Cheers, CarCdr. |
Quote:
The link in question worked on my web server as it defaults extensions (i.e., HTML, PHP). I forgot the '.php' suffix in the link to list a single user's attachments. Ooops... :o |
All times are GMT. The time now is 01:55 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:
|