vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to change $vbphrase? (https://vborg.vbsupport.ru/showthread.php?t=115234)

ApplePro 05-10-2006 02:26 PM

How to change $vbphrase?
 
For example, $vbphrase[welcome_x] gives this text:

-----
Welcome to the Test Forums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
-----

How can I change this text?

Boofo 05-10-2006 02:37 PM

Do a search in phrases in the Admin CP for welcome_x and make sure to click the title only box. ;)

ApplePro 05-10-2006 03:13 PM

Quote:

Originally Posted by Boofo
Do a search in phrases in the Admin CP for welcome_x and make sure to click the title only box. ;)

I've tried to search for "welcome_x" and clicked on "Search Titles Only" >> "Yes". When I click "Find", I get main Style Manager page. :surprised:

tealv6 05-10-2006 04:53 PM

go to phrase manager, at the bottom is find. You can use welcome as the only word.. this shoud bring up a few hits. Should be the 4th one down (or about that) your looking for. click on the edit button on the right.

Steve

ApplePro 05-10-2006 05:15 PM

Quote:

Originally Posted by tealv6
go to phrase manager, at the bottom is find. You can use welcome as the only word.. this shoud bring up a few hits. Should be the 4th one down (or about that) your looking for. click on the edit button on the right.

Steve

Thanks.

I've searched for "welcome" and found this:

Varname: $vbphrase[welcome_x]
Text: Welcome, {1}.


What is {1}? Is it another variable? The text I get in vB is:
Welcome to the Test Forums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

ApplePro 05-13-2006 12:21 PM

Where I can ask this question (maybe there is another vB forum)? Is that possible to chage message text or I should forget about it? :surprised:

Hellcat 05-13-2006 12:36 PM

When using phrases in vB you can supply variables that will be used to complete the phrase.

Like the username is stored in $foobar["username"] you can "tell" vB to use that in the phrase.
The "{1}" will then be replaced by the contents of $foobar["username"]

Hope that helps a bit :)

ApplePro 05-13-2006 12:44 PM

Quote:

Originally Posted by Hellcat
When using phrases in vB you can supply variables that will be used to complete the phrase.

Like the username is stored in $foobar["username"] you can "tell" vB to use that in the phrase.
The "{1}" will then be replaced by the contents of $foobar["username"]

Hope that helps a bit :)

Thanks. Now I understand that. :up:


All times are GMT. The time now is 11:12 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.01058 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)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