vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Postbit legacy additional code issues (https://vborg.vbsupport.ru/showthread.php?t=268488)

rjxj 08-13-2011 09:44 PM

Postbit legacy additional code issues
 
I have inserted additional code to my postbit_legacy template to show some additional information.

Here is the code that I am using.

Code:

<vb:if condition="$post['field6']"><dt>{vb:rawphrase make}</dt>
<dd>{vb:raw post.field6}</dd></vb:if>

<vb:if condition="$post['field15']"><dt>{vb:rawphrase year}</dt> <dd>{vb:raw post.field15}</dd></vb:if>

<vb:if condition="$post['field7']"><dt>{vb:rawphrase engine}</dt> <dd>{vb:raw post.field7}</dd></vb:if>

<vb:if condition="$post['field8']"><dt>{vb:rawphrase trans}<dd>{vb:raw post.field8}</dd></vb:if>

<vb:if condition="$post['field9']"><dt>{vb:rawphrase TC}<dd>{vb:raw post.field9}</dd></vb:if>

<vb:if condition="$post['field10']"><dt>{vb:rawphrase tires} <dd>{vb:raw post.field10}</dd></vb:if>

<vb:if condition="$post['field11']"><dt>{vb:rawphrase lift}<dd>{vb:raw post.field11}</dd></vb:if>

Also attached a pic...it seems that the code containing the year works fine, but the others do not....any ideas

https://vborg.vbsupport.ru/external/2011/08/35.jpg

--------------- Added [DATE]1313280486[/DATE] at [TIME]1313280486[/TIME] ---------------

So after a ton of reading I figured it out.
Each time the code
Code:

<dt>{vb:rawphrase xxxx}</dt>
is used, xxxx has to be defined as a phase.

xxxx can be any text you want, it appears however that it IS case sensitive.

To do this is simple, there is a phrase manager in the admincp.....add new phrase....etc.


All times are GMT. The time now is 09:14 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.00927 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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