The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Programming a Product: How to add vBulletin options?
I am writing a Product that emails a user when a certain condition is met. I would like the text of the email to be editable by the vBulletin admin. I access the text of the email with $vbulletin->options['testOptions_email_body'] just fine, but I cannot get the option to edit the text to appear in the vBulletin control panel! This is what I tried:
Code:
<?xml version="1.0" encoding="UTF-8"?> <product productid="testOptions" active="1"> <title>Test Options</title> <description>Test Options</description> <version>1.0</version> <phrases> <phrasetype name="vBulletin Settings" fieldname="vbsettings"> <phrase name="setting_testOptions_email_body_title"><![CDATA[Email body]]></phrase> <phrase name="setting_testOptions_email_body_desc"><![CDATA[The body of the email.]]></phrase> </phrasetype> </phrases> <options> <settinggroup name="friendsPost" displayorder="500"> <setting varname="testOptions_email_body" displayorder="510"> <datatype>free</datatype> <optioncode>textarea</optioncode> <defaultvalue><![CDATA[Dear {USERNAME}, This is an email that you will receive when a certain condition is met. Regards, Me]]></defaultvalue> </setting> </settinggroup> </options> </product> Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|