Dozvola za download attachmenta

Started by ***Teh GodFather***, December 16, 2007, 07:31:46 PM

Previous topic - Next topic

***Teh GodFather***

Dakle, gosti mogu da vide attachmente, ali ne mogu da ih skinu...

Promeniti sledeće:

U Display.php
Code: (find)
if (!empty($modSettings['attachmentEnable']) && allowedTo('view_attachments'))

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


U ManagePermissions.php
Code: (find)
'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
)



Code: (replace)
'attachment' => array(
'view_attachments' => false,
'view_attachments2' => false,
'post_attachment' => false,
)


U ManagePermissions.english.php i ostalim ManagePermissions.jezik.php
Code: (find)
$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.';


Code: (replace)
$txt['permissionname_view_attachments'] = 'Download attachments';
$txt['permissionhelp_view_attachments'] = '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.';

Advertisement: