Back to vBulletin 3.8 Template Modifications

Show attachments to members only
Mod Version: 1.00, by wolfstream

vB Version: 3.8.x Rating: (1 vote - 3.00 average) Installs: 18
Released: 26 Jul 2009 Last Update: Never Downloads: 1
Not Supported Re-usable Code Translations  

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]&amp;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>
This will let guests know they're missing something, not give them a preview, and tell them how to get it. It really is incredibly easy to do, just like my 3.7 version

Download

No files for download.

Similar Mods

Show Thread Enhancements Show attachments to members only vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024