PDA

View Full Version : Adding Phrases / Phrasegroups


Adrian Schneider
07-23-2005, 04:34 AM
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

$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, 05:15 AM
Try editing/saving any phrase and see if that helps.

Adrian Schneider
07-23-2005, 05:26 AM
No luck there.

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

Adrian Schneider
07-24-2005, 06:40 AM
Bump...

Hoffi
07-24-2005, 06: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, 05:27 AM
Apparently this is impossible. :(
Oh well.

amykhar
08-27-2005, 01: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, 02: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, 02:33 AM
I just did the thing Marco suggested as a temporary workaround.

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