vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Why vBPhrases? (https://vborg.vbsupport.ru/showthread.php?t=137174)

Attilitus 01-21-2007 09:24 PM

Why vBPhrases?
 
Lately I have been curious as to the advantages of the vBulletin phrase system as compared to vBulletin Options fields.

It seems to me that they ought to be interchangable (Although common sense prods me into thinking that they are not). Is there any reason to use one instead of the other aside from abiding by a set-standard? I suppose that there must be some significant difference. If someone could explain it, I would greatly appreciate it.

I personally find the vbphrase system to be rather un-userfriendly, and would prefer to use vbulletin's Options fields or a custom language system instead especially for one-word phrases closely linked with certain options.

Perhaps someone could offer me some tips/info/advice. Thanks!

(Additionally, what is the Syntax for using vbphrases within php files? I have not really looked into it, and it might save me some time if it becomes necessary to use that system.)

Edit: Just for clarification, I realize that Phrases allow the use of special variable replacements and syntax, ect. I am more interested about performance based differences, however.

calorie 01-21-2007 10:28 PM

Quick answer off the top of my head...

Performance-based Difference:
  • call in only certain phrase groups per file to limit memory usage
Syntax of vB Phrases within PHP files:
  • $vbphrase['phrase_varname']

Attilitus 01-21-2007 10:56 PM

How are options handled in comparison? I thought that all options available for calling on any vbulletin powered page?

Thanks for the syntax! :D (I shouldn't have had to ask.^_^)

AN-net 01-21-2007 11:02 PM

the separation of settings/options from text. phrases were created to make translation of vbulletin and modifications that use the phrase system into any language. vb options should solely be used for settings only. using vb options instead of phrases is misuse of the system and would confuse others as to what you were doing. you are also adding tons of options to the vbulletin settings table which are loaded every page unlike a dedicated phrasegroup which is only loaded when requested.

Attilitus 01-21-2007 11:44 PM

Well what I would be doing is not fully phrasing the hack from within the settingsgroup but only providing certain phrases which were especially relavent to other (wholly legitimate) vbulletin settings.

Thanks for the information on the degree to which additional vbulletin options would affect performance. The difference would be (at the bare minimum) around 30 settings, so I assume that this would cause an unnecessary burden. I guess I will make a custom settings section then.


All times are GMT. The time now is 11:47 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.00936 seconds
  • Memory Usage 1,716KB
  • 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
  • (5)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