Customizing SMF > Modifications and Packages

Attachments Download Permission

<< < (16/17) > >>

B.SkiLLs:
why ?? this is built in now with new versions guy's ....

[if im thinking correctly] lol

nikan:
Updated for 2.0 RC2

In Display.php
Find

--- Code: --- if (!empty($modSettings['attachmentEnable']) && allowedTo('view_attachments'))
--- End code ---
Replace

--- Code: --- if (!empty($modSettings['attachmentEnable']) && (allowedTo('view_attachments') || allowedTo('view_attachments2')))
--- End code ---


In ManagePermissions.php
Find

--- Code: --- 'view_attachments' => array(false, 'attachment', 'participate'),
'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'),
'post_attachment' => array(false, 'attachment', 'attach'),
--- End code ---
Replace

--- Code: --- 'view_attachments' => array(false, 'attachment', 'participate'),
'view_attachments2' => array(false, 'attachment', 'participate'),
'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'),
'post_attachment' => array(false, 'attachment', 'attach'),
--- End code ---


In ManagePermissions.english.php
Find

--- Code: ---$txt['permissionname_view_attachments'] = 'View attachments';
$txt['permissionhelp_view_attachments'] = 'Attachments are files that are attached to posted messages. This feature can be enabled and configured in \'Edit Features and Options\'. Since attachments are not directly accessed, you can protect them from being downloaded by users that don\'t have this permission.';
--- End code ---
Replace

--- Code: ---$txt['permissionname_view_attachments'] = 'Download attachments';
$txt['permissionhelp_view_attachments'] = 'Allows to download attachments';
$txt['permissionname_view_attachments2'] = 'View attachments';
$txt['permissionhelp_view_attachments2'] = 'Attachments are files that are attached to posted messages. This feature can be enabled and configured in \'Edit Features and Options\'. Since attachments are not directly accessed, you can protect them from being downloaded by users that don\'t have this permission.';
--- End code ---

Joomlamz:
yes
i try to install 1.1.11
i see that erro
how can resolv

nikan:
You probably have other mods installed and messed up your code.
Edit the files and install the mod manually.

Joomlamz:
thank you
i will do text
Good work

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version