vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - TW7S - Alternate Attachment View (https://vborg.vbsupport.ru/showthread.php?t=254241)

LifesGreatestGift 11-25-2010 10:00 PM

TW7S - Alternate Attachment View
 
1 Attachment(s)
https://vborg.vbsupport.ru/external/2010/11/8.jpg

Open template postbit_attachment, Replace all with:

Code:

<!-- 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

PHP Code:

<!-- 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;">&#1578;م تحميل هذا المرفق {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

Quote:

Originally Posted by lubbie (Post 2126784)
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..."?


All times are GMT. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01138 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete