vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Phrase Help (https://vborg.vbsupport.ru/showthread.php?t=220323)

weinstoc 08-06-2009 02:08 PM

Phrase Help
 
I have the following in a template:

<phrase 1="$vboptions[bbtitle]">$vbphrase[some_phrase]</phrase>

I want to change it to

<phrase 1="$vboptions[someotheroption]">$vbphrase[some_phrase]</phrase>

When I make the change it does not show up. I assume there is caching going on, but I don't know what I need to do to force a rebuild.

Suggestions?

Lynne 08-06-2009 02:29 PM

Are you changing it in the correct style? Are you sure $vboptions[someotheroption] is valid to use there?

weinstoc 08-06-2009 02:32 PM

I'm pretty sure. I'm trying to change the <title> tag in FORUMHOME so that it is something other than bbtitle. Should that just work or am I misunderstanding something?

Lynne 08-06-2009 03:17 PM

That variable may not be available yet. You'll need to test it to see.

weinstoc 08-06-2009 03:47 PM

Lynne,

Shouldn't I be able to put:

<phrase 1="static text">$vbphrase[some_phrase]</phrase>

and have "static text" appear in the phrase. What's happening now is that the original value (e.g., bbtitle) remains no matter what I do.

Lynne 08-06-2009 04:19 PM

You can only do that if the phrase is set up for that and if the phrase as available there. If the phrase is not global, then it isn't available everywhere. And, in your example, the phrase must have a {1} in it if it is to show what you passed it.


All times are GMT. The time now is 10:53 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.01020 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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