The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[HOW TO] Add an option group in the ACP ?
How can I add an option group in my ACP, for example, when I go to
options.php?do=options&dogroup=whatiwant I can modify directly options linked to this group ?! I added the $debug var in config.php, but no results, can someone help me ? Thanks |
#2
|
||||
|
||||
|
#3
|
||||
|
||||
Merci Allan mais ce n'est pas ce que je veux
Je veux pouvoir ajouter un groupe d'option pour que quand je lance le lien cit? dessus, ca m'ouvre une page avec la liste d'options que j'aurai defini au prealable Regarde la chatbox de megatekno par exemple Code:
- <options> - <settinggroup name="chatbox" displayorder="590"> - <setting varname="chatbox_emplacement" displayorder="20"> <datatype>number</datatype> - <optioncode> - <![CDATA[ <select name=\"setting[$setting[varname]]\" tabindex=\"1\" class=\"bginput\"> <option value=\"0\" " . iif($setting['value']==0,'selected="selected"') . ">Au-dessus de la bar de navigation</option> <option value=\"1\" " . iif($setting['value']==1,'selected="selected"') . ">Au-dessous de la bar de navigation</option> <option value=\"2\" " . iif($setting['value']==2,'selected="selected"') . ">Au-dessous des statistiques</option> </select> ]]> </optioncode> <defaultvalue>0</defaultvalue> </setting> - <setting varname="chatbox_width" displayorder="120"> <datatype>number</datatype> <defaultvalue>600</defaultvalue> </setting> - <setting varname="chatbox_height" displayorder="130"> <datatype>number</datatype> <defaultvalue>140</defaultvalue> </setting> - <setting varname="chatbox_allow_archive" displayorder="140"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="chatbox_jours_archive" displayorder="150"> <datatype>number</datatype> <defaultvalue>365</defaultvalue> </setting> - <setting varname="chatbox_allow_stats" displayorder="170"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="chatbox_page_archive" displayorder="160"> <datatype>number</datatype> <defaultvalue>5</defaultvalue> </setting> - <setting varname="chatbox_active_smilies_vb" displayorder="80"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="chatbox_active_vbcode_vb" displayorder="90"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="displayshoutbox" displayorder="10"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="chatbox_refresh" displayorder="40"> <datatype>number</datatype> <defaultvalue>0</defaultvalue> </setting> - <setting varname="chatbox_ligne" displayorder="50"> <datatype>number</datatype> <defaultvalue>30</defaultvalue> </setting> - <setting varname="chatbox_edit_shout" displayorder="70"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="chatbox_type_imput" displayorder="30"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>0</defaultvalue> </setting> - <setting varname="chatbox_noflood" displayorder="60"> <datatype>number</datatype> <defaultvalue>60</defaultvalue> </setting> - <setting varname="chatbox_active_imagecode" displayorder="100"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> - <setting varname="chatbox_active_html" displayorder="110"> <datatype>free</datatype> <optioncode>yesno</optioncode> <defaultvalue>0</defaultvalue> </setting> </settinggroup> </options> Bon maintenant je vais traduire en anglais sinon je vais me faire taper dessus ^^ Allan gave me links where it explains how to add a menu to the left column in the admincp, but we have to add a file in the include folder, such as cpnav_file.xml ... I don't want of this, I'd like to add directly in my ACP the new setting group and different options so that I get it back directly in my XML plugin installation file Anyone else ? |
#4
|
|||
|
|||
The method Allan posted is the most efficient way, and it follows vbulletin standards. I'm not sure if there even is another way...
|
#5
|
||||
|
||||
Danny, look at the code found below, part of an XML plugin installation file, it adds automatically these options to the settingroup 'chatbox' and when you go to
options.php?do=options&dogroup=chatbox you have a page where you can modify settings linked to this settingroup I don't want to add a menu to the left column, I just want to know how to add options for a specified settingroup and then that it was included directly in my XML file Really nobody knows ? |
#6
|
|||
|
|||
Oh, you want to add custom setting for a product? Well if thats the case, you must have debug mode on and go into the vbulletin options home page in your admin cp.
Click "Add new Setting Group" And follow the form, and add it to the specific product you want it too. Then you can add settings once you save it. |
#7
|
||||
|
||||
Yes that's what I want
Were my explanations really so bad ^^ ? lol I've already added $debug=1; in my config.php but there's no changes in the home page of my vbulleti options, I still don't see the link to add these new setting group $debug=1; still must be added in the config.php in vb3.5 ? |
#8
|
|||
|
|||
Turning on debug mode changed it 3.5, now it's
PHP Code:
|
#9
|
||||
|
||||
That's why it didn't work
Thanks Danny What big changes between vb3 and vb3.5 I'm losing my latin ^^ (is this expression used in english ?!) |
#10
|
|||
|
|||
Lol, well I've never heard of it, but I'm a youngin so I still have to learn many idioms.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|