vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Change "Add Phrase" default behaviour in Debug mode (https://vborg.vbsupport.ru/showthread.php?t=67408)

Natch 07-19-2004 10:00 PM

Change "Add Phrase" default behaviour in Debug mode
 
I found this to be a pain in the proverbial - when adding custom phrases I NEVER EVER want them to be added to the MASTER language, but into the Custom Top-level Language, to have them retained on upgrade.

However, the default behaviour, if you are $debug mode, is to have them inserted into MASTER - causing you to have to select "No" with a radio select on each Phrase add.

To turn this annoying behaviour off,

Open admincp/phrase.php
Find:
Code:

        if ($debug)
        {
                print_yes_no_row(construct_phrase($vbphrase['insert_into_master_language_developer_option'], "<b></b>"), 'ismaster', iif($debug, 1, 0));
        }

Replace with:
Code:

        if ($debug)
        {
//                altered this line to have the vB default to add the phrase into the Custom, not MASTER Language - to retain phrases more easily on upgrade
                print_yes_no_row(construct_phrase($vbphrase['insert_into_master_language_developer_option'], "<b></b>"), 'ismaster', 0);
        }

Couldn't be simpler! HTH y'all... :ninja:

SteveK 07-20-2004 04:00 PM

Thanks... I've always gotten tripped up by this in the past as well!

Colin F 07-23-2004 10:29 AM

Same here... it's a relief to get that out of the way :)


All times are GMT. The time now is 12:35 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.01098 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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