The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
members can delete attachment !
in this url :
/profile.php?do=editattachments all of usergroup can delete attachment ! where this Enable/Disable setting ?? or what php code in profile.php ? |
#2
|
|||
|
|||
They can only delete their own attachments, providing they have permission to delete them.
|
#3
|
||||
|
||||
You aren't saying what you want. I know I was having problems with users deleting torrent files via the profile.php page and that caused problems, so I changed that page so if the extension is 'torrent', then they don't get the box to remove the attachment. Template 'modifyattachmentsbit':
HTML Code:
<if condition="$show['deletebox'] AND $post['attachmentextension']<>'torrent'"> <td class="alt1" align="center" style="padding:0px"><input type="checkbox" name="deletebox[$post[attachmentid]]" value="yes" /></td> <else /> <td class="alt1" align="center"> </td> </if> |
#4
|
|||
|
|||
thanks ... by this way checkbox hide ...
now , how to hide delete button ?! |
#5
|
||||
|
||||
Find the code in the template and remove it. To find the template - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
|
#6
|
|||
|
|||
this button is between :
<!-- END TEMPLATE: modifyattachmentsbit --> and <!-- BEGIN TEMPLATE: pagenav --> where template ? |
#7
|
||||
|
||||
Then it's probably in the main template listed at the top of the page source.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|