vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Phrasing var? (https://vborg.vbsupport.ru/showthread.php?t=235482)

masterross 02-10-2010 10:07 AM

Phrasing var?
 
Hi,

I cant handle it with phrasing vars :(

I have a phrase (myphrase) which contains text:
Code:

Welcome to {1}
In template I call this phrase with:

Code:

<phrase 1="$vboptions[bbtitle]">$vbphrase[myphrase]</phrase>
where $vboptions[bbtitle] is forum title.

So in I call it in that way simply it cant. Result is:
Code:

$vbphrase[myphrase]
But if I call it with:

Code:

<phrase 1="{vb:raw vboptions.bbtitle}">{vb:rawphrase myphrase}</phrase>
The result is:

Code:

Welcome to %1$s
So in both cases there is something incomplete.

Can you help me with this?

Thx!

Sarcoth 02-11-2010 04:49 PM

Quote:

Originally Posted by masterross (Post 1978992)
Code:

<phrase 1="{vb:raw vboptions.bbtitle}">{vb:rawphrase myphrase}</phrase>
Can you help me with this?

This is just a guess until someone with more experience can reply, but try:

{vb:var vbphrase.myphrase}

-or-

{vb:raw vbphrase.myphrase} //if the first doesn't work.

masterross 02-11-2010 04:53 PM

Thx but I;ve already got the answer here:
http://www.vbulletin.com/forum/showt...4-Phrase-s-var

Sarcoth 02-11-2010 05:15 PM

Cool. I didn't know it could be done that way. Good to know.


All times are GMT. The time now is 07:58 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.01028 seconds
  • Memory Usage 1,718KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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