Log in

View Full Version : Show Thread Enhancements - TW7S - Alternate Attachment View


LifesGreatestGift
11-25-2010, 10:00 PM
https://vborg.vbsupport.ru/external/2010/11/8.jpg

Open template postbit_attachment, Replace all with:


<!-- TW7S - Alternate Attachment View -->
<li>
<img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw attachment.attachmentextension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw attachment.attachmentextension}}" />
<a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
({vb:raw attachment.filesize})
<br />
<vb:if condition="$show['views']"><p style="padding-left:20px;">This file has been downloaded {vb:raw attachment.counter} times.</p></vb:if>
</li>
<!-- TW7S - Alternate Attachment View -->

Dr.osamA
11-26-2010, 10:15 PM
i try it if work wiht 4.1.0

thanxx

BRB

Dr.osamA
11-26-2010, 10:29 PM
I think it works, but it unfortunately does not appear counter

Anyway
Code has been translated into Arabic

<!-- TW7S - Alternate Attachment View -->
<li>
<img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw attachment.attachmentextension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw attachment.attachmentextension}}" />
<a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
({vb:raw attachment.filesize})
<br />
<vb:if condition="$show['views']"><p style="padding-left:20px;">تم تحميل هذا المرفق {vb:raw attachment.counter} مرات.</p></vb:if>
</li>
<!-- TW7S - Alternate Attachment View -->

thank you again

lubbie
11-28-2010, 05:37 PM
Thanks. the Problem is... How long will this last? Till next update of vb?
Its a shame to be honest. So many nice mods and u have to renew the Code quit every 2nd week

starman?
12-01-2010, 02:25 PM
Thanks. the Problem is... How long will this last? Till next update of vb?
Its a shame to be honest. So many nice mods and u have to renew the Code quit every 2nd week

I concur.

RK KINGKONG
01-21-2011, 06:48 AM
this works on 4.1.1 but if you have the mod called "who downloaded this attachment " w/e its called , it takes that away and i didnt know how to incorperate the 2 so i had to leave this one alone

egyedu
01-23-2011, 06:21 AM
thanks
شكرا

Popa Andrei
03-24-2011, 11:06 AM
how do i use a phrase instead of the hardoce "This item has been..."?