The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding Custom Phrase Type
I want to add some phrases to my plugin.
How do I create a custom phrase type for the plugin? I know I could just export the plugin, edit the XML and reimport it. But isn't there an option in the backend to add the phrase type? |
#2
|
||||
|
||||
ACP - Phrase Manager - Add new Phrase
Then, you would edit your XML, add the new phrase you currently added , and reimport it. |
#3
|
|||
|
|||
In includes/adminfunctions_language.php there's a function called add_phrase_type() and the comment says "Allows plugins etc. to add a phrasetype easily". But I've never used it so I'm not sure if that's what you want.
|
#4
|
|||
|
|||
Quote:
Hmm... okay. Weird. There should be some option in the backend to create phrase types. Everything else can be defined in the backend as well. |
#5
|
|||
|
|||
oh I see...you mean from the ACP. Yes, I was wondering that myself, it seems like an oversight. But it looks like the only places anything is inserted in to that table is where the xml is imported, and that function I mentioned (which isn't called anywhere). But I only determined that by searching for 'phrasetype' so I could have missed it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|