The Arcive of vBulletin Modifications Site. |
|
Attachment display like vBulletin.org Details »»
|
|||||||||||||||||||||||||
This is simple, only tested in postbit_legacy template, though postbit should be similar/same
AdminCP -> style and templates -> Postbit Templates -> postbit_legacy find: Code:
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
Code:
<if condition="$show['attachments']">
<h2>Downloads</h2>
<hr />
<if condition="$show['thumbnailattachment']">
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</if>
<if condition="$show['imageattachment']">
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</if>
<if condition="$show['imageattachmentlink']">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</if>
<if condition="$show['otherattachment']">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</if>
<if condition="$show['moderatedattachment']">
<strong>$vbphrase[attachments_pending_approval]</strong>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</if>
</if>
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
That looks cool, will try it on my site later. nice work.
|
|
#3
|
|||
|
|||
|
Looks verynice, i will surely try it out
Thanks ntfu2
|
|
#4
|
|||
|
|||
|
Installed but i am getting OPTIONS section and also not 'add to rep' option also ?!?
edit: NP did it myself..thanks
|
|
#5
|
|||
|
|||
|
So does this work or not?
|
|
#6
|
||||
|
||||
|
Thanks.........
|
|
#7
|
|||
|
|||
|
Works with postbit but got no options bit only downloads
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|