vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Make attachment to work on SHOWTHREAD Template (https://vborg.vbsupport.ru/showthread.php?t=318709)

Shalom. 05-19-2015 06:17 AM

Make attachment to work on SHOWTHREAD Template
 
hey guys, i need to make {vb:raw post.otherattachments} work on SHOWTHREAD Template.
how can i do this?

MarkFL 05-19-2015 06:31 AM

That variable is meant to be used in the postbit templates, as it pertains to a post not a thread. What exactly are you trying to do?

Black Snow 05-19-2015 06:35 AM

Quote:

Originally Posted by Shalom. (Post 2545821)
hey guys, i need to make {vb:raw post.otherattachments} work on SHOWTHREAD Template.
how can i do this?

Quote:

Originally Posted by MarkFL (Post 2545822)
That variable is meant to be used in the postbit templates, as it pertains to a post not a thread. What exactly are you trying to do?

{vb:raw post.otherattachments} is already shown on the SHOWTHREAD template. It is used in the postbit & postbit_legacy templates.

Shalom. 05-19-2015 08:25 AM

Quote:

Originally Posted by Black Snow (Post 2545823)
{vb:raw post.otherattachments} is already shown on the SHOWTHREAD template. It is used in the postbit & postbit_legacy templates.

iknow its used on postbit templates, but i need to use it on SHOWTHREAD template.

Black Snow 05-19-2015 09:03 AM

Quote:

Originally Posted by Shalom. (Post 2545828)
iknow its used on postbit templates, but i need to use it on SHOWTHREAD template.

Your postbit template is displayed on your SHOWTHREAD template therefore, your vb:raw function is already being used.

cellarius 05-19-2015 09:49 AM

And how does that help?

Shalom. 05-19-2015 03:49 PM

Quote:

Originally Posted by Black Snow (Post 2545830)
Your postbit template is displayed on your SHOWTHREAD template therefore, your vb:raw function is already being used.

when im trying to use {vb:raw post.otherattachments} on SHOWTHREAD template its not showing the results.
Quote:

Originally Posted by cellarius (Post 2545834)
And how does that help?

Because i need to place the attachment on different place.

MarkFL 05-19-2015 03:54 PM

Quote:

Originally Posted by Shalom. (Post 2545869)
...Because i need to place the attachment on different place.

You should edit your relevant postbit template instead to change the location of attachments. Attachments themselves are associated with posts, not with threads.


All times are GMT. The time now is 02:41 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.01038 seconds
  • Memory Usage 1,723KB
  • 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
  • (7)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