The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Phrases
I want to make a plugin that alters a phrase, how would I edit a phrase in a plugin?
Thanks, Mat |
#2
|
|||
|
|||
Adding a phrase is
Code:
<phrasetype name="" fieldname=""> <phrase name=""> <![CDATA[ ]]> </phrase> |
#3
|
||||
|
||||
Thanks for the quick reply peterska2,
Thats not quite what I mean. I want to edit a phrase like you edit settings eg. Code:
<setting varname="msg" displayorder="20"> <datatype>text</datatype> <defaultvalue>test</defaultvalue> </setting> Mat |
#4
|
|||
|
|||
The pharse will be updated if the user allows overwrite when adding your product I believe.
|
#5
|
||||
|
||||
You should not edit existing phrases as this will most likely only cause problems; use your own ones
|
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
I understand that and i would agree only the phrase I want to edit is "$vbphrase[first_visit_message]" the welcome message for guests.
The idea for the plugin is an easy to use admin page to edit the welcome message, the page would also use a small iframe to display a preview of the forum home as guests would see it I hope this clears things up. Thanks for the help, Mat |
#8
|
|||
|
|||
The pharse should have nothing to do with the plugin XML or product XML. Your admin page should fetch the pharse and allow the user to edit it. Not edit it on install IMO.
|
#9
|
||||
|
||||
That is the idea
Thanks, Mat |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|