The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Module to restrict attachments and downloads by reputation
hi,
basically need to know if there is a module to restrict downloads, and attached by a method of reputation .. meaning that only users with 15 points of reputation for example can be downloaded from this forum / topic or view attachments. forgive if not well understood, do not speak English |
#2
|
|||
|
|||
no one knows?
|
#3
|
||||
|
||||
I've never seen a mod but I was able to pull it off with a quick template edit-
Edit the postbit_attachment template. Add the code in RED. (or replace it completely with the code below) Code:
<tr> <td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><if condition="$post[reputation] > 15"><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)<else />Your reputation is too low to download.</if></td> </tr> This will stop 99% of users but if someone knew what they were doing and knew the attachment ID they would still have permission to download if they manually entered the URL into their browser instead of clicked on the attachment link. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|