users file delete permisson
Moderator: Experts
users file delete permisson
hi david , my users sometimes delete their important files ..but i dont want that ..how could i deny this permission about delete.they can rename the files and edit the comments but i don't want to give them a permission for delete the files ..how could i do that .
Re: users file delete permisson
You could probably just edit the .tpl file and remove the delete button from there. That should be enough.
Re: users file delete permisson
thanks for reply david but i want this edit for only my users not admins ..admins have get a permission about delete..if i remove this button ,how admins will delete the files ?
Re: users file delete permisson
Try this:
Open attach_mod/posting_attachments.php
Find:
Add after:
Open templates/yourtemplate/posted_attachments_body.tpl
Find:
Replace with:
Hopefully that does the trick...my phpBB2-fu is a bit rusty.
Open attach_mod/posting_attachments.php
Find:
Code: Select all
init_display_template('attachbody', '{POSTED_ATTACHMENTS_BODY}', 'posted_attachments_body.tpl');
Code: Select all
$template->assign_block_vars('switch_user_admin', array());
Find:
Code: Select all
<input type="submit" name="del_attachment[{attach_row.ATTACH_FILENAME}]" value="{L_DELETE_ATTACHMENT}" class="liteoption" />
Code: Select all
<!-- BEGIN switch_user_admin -->
<input type="submit" name="del_attachment[{attach_row.ATTACH_FILENAME}]" value="{L_DELETE_ATTACHMENT}" class="liteoption" />
<!-- END switch_user_admin -->
Re: users file delete permisson
it's not success david .My users still see the ''delete '' button .