vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Allow Thumbnail View To All Groups (https://vborg.vbsupport.ru/showthread.php?t=67887)

YLP1 08-15-2004 03:33 PM

Hi everyone,

I installed this mod...went over the directions and applied them twice (redoing it I should say)

But not logged in visitors see this on the attachments. Where did I mess up?:

Princeton 08-15-2004 03:40 PM

found the problem ... it looks like we forgot to close the <phrase>

copy and paste into postbit_attachment:
HTML Code:

<tr>
        <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]">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)
<if condition="$show['gtp_thumbnail_only']"><div class="info">$vbphrase[gtp_cannot_download]</div></if></td>
</tr>

let me know if this fixes your problem

SaN-DeeP 08-15-2004 04:17 PM

Quote:

Originally Posted by princeton
found the problem ... it looks like we forgot to close the <phrase>

copy and paste into postbit_attachment:
HTML Code:

<tr>
        <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]">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)
<if condition="$show['gtp_thumbnail_only']"><div class="info">$vbphrase[gtp_cannot_download]</div></if></td>
</tr>

let me know if this fixes your problem

nope dont work :(

YLP1 08-15-2004 04:24 PM

Hi there,
Nope...this didn't fix it for me either.

Princeton 08-15-2004 04:28 PM

sorry guys ... wrong template
postbit_attachmentthumbnail
HTML Code:

<if condition="$show['gtp_thumbnail_only']">
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" />
 <else />
 <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
 </if>
  <if condition="$show['br']"><br /><br /></if>


SaN-DeeP 08-15-2004 04:36 PM

Quote:

Originally Posted by princeton
sorry guys ... wrong template
postbit_attachmentthumbnail
HTML Code:

<if condition="$show['gtp_thumbnail_only']">
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" />
 <else />
 <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
 </if>
  <if condition="$show['br']"><br /><br /></if>


Wow works perfect now :)
Thnx for immediate update.

FYI - I still have not added the CSS "info" and its working fine.
I am not sure, how and where you meant to add same ?

Regards,

Princeton 08-15-2004 04:42 PM

the class "info" is optional--it's meant to give some style to the message (look at the images provided)

If you want to add style -- just add the code into your CSS (within Admincp/Styles & Templates/Style Manager/ (dropdown click MAIN CSS) --scroll to the bottom and insert the code within the ADDITIONAL CSS DEFINITIONS

YLP1 08-15-2004 09:10 PM

Quote:

Originally Posted by princeton
sorry guys ... wrong template
postbit_attachmentthumbnail
HTML Code:

<if condition="$show['gtp_thumbnail_only']">
<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="$vbphrase[gtp_cannot_download]" />
 <else />
 <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1" border="0" alt="" title="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
 </if>
  <if condition="$show['br']"><br /><br /></if>


Where do I paste this in this template?

YLP1 08-15-2004 09:14 PM

Quote:

Originally Posted by YLP1
Hi everyone,

I installed this mod...went over the directions and applied them twice (redoing it I should say)

But not logged in visitors see this on the attachments. Where did I mess up?:

I have the same problem --- see graphic

SaN-DeeP 08-16-2004 06:37 AM

Quote:

Originally Posted by YLP1
I have the same problem --- see graphic

hey YLP1,
check the new install file once again, All the bugs are fixed and works fine now
thnx to priceton :)


All times are GMT. The time now is 12:51 PM.

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.05627 seconds
  • Memory Usage 1,758KB
  • 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
  • (5)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete