[Tut]Fancy Attachment Style 07-28-2015, 05:01 AM
#1
Preview -
![[Image: h6KvImt.png]](http://i.imgur.com/h6KvImt.png)
Ok goto You Skin Templates > Postbit Template> postbit_attachments_attachment
Then replace everything with >
[hide]
[/hide]
Yeah, I've included css in same codes
Enjoy
Spoiler:
![[Image: h6KvImt.png]](http://i.imgur.com/h6KvImt.png)
Ok goto You Skin Templates > Postbit Template> postbit_attachments_attachment
Then replace everything with >
[hide]
PHP Code:
<div class="attachment-box">
<div class="attachment-url">
<a href="attachment.php?aid={$attachment['aid']}" target="_blank" title="{$attachment['filename']}"></a> <a href="attachment.php?aid={$attachment['aid']}" target="_blank" title="File NAme :P"><strong>{$attachment['filename']}</strong></a>
</div>
<span class="attachment-button">
<a href="attachment.php?aid={$attachment['aid']}" target="_blank" title="Download">Download</a>
</span>
<div class="attachment-meta">
<strong>Size :</strong> {$attachment['filesize']} <strong>Downloads :</strong> {$attachment['downloads']}
</div>
</div>
<style>
#attach_wrap li.attachment {
display: block;
}
.attachment-box {
margin: 0 auto;
max-width: 300px;
border: 4px solid #9acfea;
background: #fff;
text-align: center;
}
.attachment-button a {
display: inline-block;
margin: 5px 0;
padding: 4px;
border: 1px solid #9acfea;
border-radius: 2px;
background-color: #d9edf7;
background-image: -webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);
background-image: linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);
color: #31708f;
text-transform: uppercase;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
}
.attachment-button a:hover {
background-color: #b9def0;
background-image: -webkit-linear-gradient(top,#b9def0 0,#d9edf7 100%);
background-image: linear-gradient(to bottom,#b9def0 0,#d9edf7 100%);
}
.attachment-url {
padding: 5px 0;
background: #d9edf7;
}
.attachment-meta {
padding: 5px 0;
background: #d9edf7;
color: #3F4249;
font-size: 11px;
}
</style>
Yeah, I've included css in same codes

Enjoy





![[+]](https://sinister.li/images/modern/collapse_collapsed.png)