![]() |
Quote:
In my forum I have tons of pics attached, with nonsense names. So the only way to make fun should be to have a sort of preview even if very small. Sorry for my insisting, and all my best for this great work! ;-) |
Quote:
Easier still I think, from an implementation standpoint, would be a popup window. Let's see if anyone else is interested. Cheers |
Quote:
Re: permissions I checked now that attachments in supermoderators area (hidden) are listed as well as post titles to guest and registered users... It's true they can't get into because of permissions, but they're allowed to read the listed titles and attachments names. Any idea to allow only supermods and admins to view the listed attachments and tied infos placed in hidden forums? Wouldn't be easier to use the "Exclude Forums" as indicated in User profile Options? |
Re: permissions
As part of the code being tested now to allow selection on a single forum, I have also added persmission checking, so that only attachments from permitted forums are listed. The permissions checked are: CANVIEW AND CANGETATTACHMENT Both must be true. Perhaps someone can chime in here and let us know if these user-forum permissions would be set for moderators, super-moderaters, and administrators, or does one need to call 'can_moderate(forumid)'? |
I uploaded now the attachment_browser.php, renamed as ab1.php
here you can view the listed attachments with the secret attachment set in supermod area, actually as ID nr. 7 "reputation_balance.gif" http://forum.egcommunity.it/ab1.php |
Yes, permissions will be coming this week, along with the ability to list for a selected forum.
(BTW, and you probably know, if you rename the source file, you break the links on the page, as they are coded in the template to call 'attachment_browser.php'.) |
Quote:
Yep, I just changed the name for this checking purposes. Later on, when permissions are fixed, I'll replace the correct name. ;) |
Quote:
Code:
define(THIS_SCRIPT,'attachment_browser'); |
Quote:
Still, I suppose there is no reason one could not set $this_script to be referenced by templates. For that matter, one could set it by referencing the PHP global 'SCRIPT_FILENAME''. |
This is indeed a great hack and a good idea. :) Well done.
|
All times are GMT. The time now is 03:53 PM. |
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:
|