The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
Now, I know that vb will stop unregistered users from downloading attachments, but here's another quick way to get the attachment itself SHOWN to members only, while letting guests know they're missing something.
replace postbit_attachment (yeah, all of it) with: Code:
<tr> <if condition="$show['member']"> <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><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>)</td> <else /> <td> This post has an attachment which you could see if you were <a href="/register.php">registered</a>. Registering is quick and easy</td> </if> </tr> ![]() Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
I have your 3.7 version installed with no issues, are they the same?
https://vborg.vbsupport.ru/showthread.php?t=199690 |
#3
|
|||
|
|||
![]()
Yeah, they're pretty much the same. I just added an update to let people know it was 3.8.x capable.
|
#4
|
|||
|
|||
![]()
Thanks for the info. Running 3.8.3 vbulletin and the 3.7 version of this mod.
|
#5
|
|||
|
|||
![]()
Very nice, thank you!
|
#6
|
|||
|
|||
![]()
Thank you much, but each file to attach, it has a line of reporting. can you edit it.
|
#7
|
|||
|
|||
![]()
That's exactly what it's supposed to do, report on every attachment.
|
#8
|
||||
|
||||
![]()
thanks
|
#9
|
|||
|
|||
![]()
Modified adding language select mode
HTML Code:
<tr> <if condition="$show['member']"> <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><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>)</td> <else /> <td>$vbphrase[attachment_download_members]</td> </if> </tr> replaced <td>This post has an attachment which you could see if you were <a href="/register.php">registered</a>. Registering is quick and easy</td> with $vbphrase[attachment_download_members] added attachment_download_members to language phrase with the above text see sample http://info.japaro.net |
#10
|
||||
|
||||
![]()
Polish version (wersja polska):
Code:
<tr> <if condition="$show['member']"> <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><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>)</td> <else /> <td> Post ten zawiera załącznik kt?ry będzie widoczny po <a href="/register.php">zarejestrowaniu</a>. Proces rejestracji jest szybki i łatwy.</td> </if> </tr> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|