Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2005, 01:05 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [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
Reply With Quote
  #2  
Old 10-29-2005, 01:32 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://forum.vbulletin-fr.org/showthread.php?t=9147 and http://www.phylosophia.com/forum/showthread.php?t=1936
Reply With Quote
  #3  
Old 10-29-2005, 02:14 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
C'est ce que je veux et je pense donc qu'il est bien possible de les inserer directement dans le cpadmin

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 ?
Reply With Quote
  #4  
Old 10-29-2005, 02:46 PM
Guest190829
Guest
 
Posts: n/a
Default

The method Allan posted is the most efficient way, and it follows vbulletin standards. I'm not sure if there even is another way...
Reply With Quote
  #5  
Old 10-29-2005, 04:08 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #6  
Old 10-29-2005, 04:20 PM
Guest190829
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #7  
Old 10-29-2005, 04:27 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #8  
Old 10-29-2005, 04:32 PM
Guest190829
Guest
 
Posts: n/a
Default

Turning on debug mode changed it 3.5, now it's

PHP Code:
 $config['Misc']['debug'] = true
Put that in config.php, and it should work.
Reply With Quote
  #9  
Old 10-29-2005, 04:43 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?!)
Reply With Quote
  #10  
Old 10-29-2005, 04:46 PM
Guest190829
Guest
 
Posts: n/a
Default

Lol, well I've never heard of it, but I'm a youngin so I still have to learn many idioms.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04039 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete