vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding Phrases / Phrasegroups (https://vborg.vbsupport.ru/showthread.php?t=92713)

Adrian Schneider 07-23-2005 03:34 AM

Adding Phrases / Phrasegroups
 
How do you get an existing vb file to use a new phrasegroup? I added it via the add_phrase_type function.

I tried:
style_fetch and cache_templates
PHP Code:

$newphrasegroups[] = 'blog';

$phrasegroups array_merge($phrasegroups$newphrasegroups); 

Upon printing $phrasegroups and $vbphrase in the newreply page (as that is what I'm trying to edit) the blog phrasegroup is in the array, but the phrases from it aren't in the $vbphrase array.

How is this done? [without modifying any files]

Marco van Herwaarden 07-23-2005 04:15 AM

Try editing/saving any phrase and see if that helps.

Adrian Schneider 07-23-2005 04:26 AM

No luck there.

Also, adding it in manually as you normally would works fine.

Adrian Schneider 07-24-2005 05:40 AM

Bump...

Hoffi 07-24-2005 05:58 AM

I think I look at 3.5 soon, and I look if my little Hack will work with this. With that Hack you can Add Phrasgroups directly in the AdminCP. For 3.0x It works fine.

Adrian Schneider 07-25-2005 04:27 AM

Apparently this is impossible. :(
Oh well.

amykhar 08-27-2005 12:53 AM

Has anything changed on this? I need to access an existing phrasegroup on a vbulletin page that it's not normally included on.

Andreas 08-27-2005 01:15 AM

You can't add Phrasegroups via Plugins.
Phrases are being loaded by the constructor of vB_Session, way before style_fetch is being called.

Adrian Schneider 08-27-2005 01:33 AM

I just did the thing Marco suggested as a temporary workaround.

https://vborg.vbsupport.ru/showthread.php?t=93007


All times are GMT. The time now is 07:11 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.01948 seconds
  • Memory Usage 1,723KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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