vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I change my REGISTER AT phrase to [hometitle] instead of [bbtitle]??? (https://vborg.vbsupport.ru/showthread.php?t=181663)

NashChristian 06-06-2008 04:24 AM

How do I change my REGISTER AT phrase to [hometitle] instead of [bbtitle]???
 
Hello.

I want to change my "Register at Forums" phrase on my register.php from saying "Forums" which is my [bbtitle] to "NashvilleChristian.com" which is my [hometitle].

I found the correct phrase to edit:

$vbphrase[register_at_x]

Code:

Register at {1}
But I can't figure out how to change the value of {1} to my [hometitle]. Where is this value defined? Obviously {1}=[bbtitle], because when I change the [bbtitle], {1} changes as well.

I looked through the code of register.php, but can't seem to find any area where {1} is defined.

I tried changing this to {2} but I got an error: [ARG:2 UNDEFINED], which seems to be telling me that argument 2 is undefined. So back to my question, where can I define this value so that I can use it? Where can I say that {2}=[hometitle]?

Confusing.

Thanks!

Dismounted 06-06-2008 07:01 AM

You can just change {1} to the text. Alternatively, you will have to find where the phrase is used in templates, and change the parameters that are set.

NashChristian 06-06-2008 12:08 PM

Quote:

Originally Posted by Dismounted (Post 1542116)
You can just change {1} to the text. Alternatively, you will have to find where the phrase is used in templates, and change the parameters that are set.

So it is basically best to hard code this then?

I don't understand the second part of what you are saying, about the templates. Can you please elaborate?

Thanks for the help!
Jeff

Dismounted 06-06-2008 01:07 PM

Phrases with parameters look like this in templates:
Code:

<phrase 1="$blahblah" 2="$blahblah2">$vbphrase[somephrase]</phrase>

NashChristian 06-06-2008 01:33 PM

So you are saying that I can do it EITHER the first way (hard coding) OR by modifying the phrase. Is that correct?

Also, those definitions are just good for that one page or template, this doesn't set them globally, right? So you could have phrase 1 = one thing on one page, and something totally different on the next, is this correct?

Thanks!
Jeff

Dismounted 06-07-2008 07:13 AM

Quote:

Originally Posted by NashChristian (Post 1542335)
So you are saying that I can do it EITHER the first way (hard coding) OR by modifying the phrase. Is that correct?

Yes to the first part, kind of to the second. Modifying where the phrase is used in each template it is used ;).
Quote:

Originally Posted by NashChristian (Post 1542335)
Also, those definitions are just good for that one page or template, this doesn't set them globally, right? So you could have phrase 1 = one thing on one page, and something totally different on the next, is this correct?

Correct.

NashChristian 06-07-2008 11:04 AM

Thanks!
:) Jeff


All times are GMT. The time now is 11:42 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.01782 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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