Plugin Authors - Please Read
#1
Quote:Hello,

With the MyBB 1.4 release pending ever closer, we are stepping up to get your plugins ready for 1.4. There are two main things you should do...

See here for the full article: http://blog.mybboard.net/2008/07/11/prep...ns-for-14/

Ryan
Reply
#2
I'd also just like to bring everyones attention to the fact that submissions for MyBB 1.4 are now being accepted on the mods site. If you have any beta plugins for testing, or indeed any finished plugins for MyBB 1.4, feel free to release them over on the mods site.

http://mods.mybboard.net/
Reply
#3
In case anyone missed the link in the blog post above there is also a further detailed blog post about updating plugins that's more specific.

http://blog.mybboard.net/2008/07/11/plug...n-authors/
Reply
#4
I have looked at the plugin code and it is helpful but does not explain and how to properly create options in a plugin select form element as there are no dropdowns in that plugin. I would also like to hide elements until a value is set to yes as in the posting flood settings menu.

This thread sort of gets me in the ballpark, but any combination of creating the options strings did not work.

http://community.mybboard.net/thread-32973.html
For reference, you create the select menu options and radio button options via a text string. The optionscode and element value are separated by new lines and the string must be double quoted.

/** Select Menu */
$setting = array( 'sid'         => 'NULL',
                  'name'        => 'setting_name',
                  'title'       => 'Setting Title',
                  'description' => 'Settins description',
                  'optionscode' => "select\noption1_value=Option 1\noption2_value=Option 2\noption3_value=Option 3",
                  'value'       => 'option2_value',
                  'disporder'   => '1',
                  'gid'         => intval( $gid ) );
$db->insert_query( 'settings', $setting );

/** Radio Button */
$setting = array( 'sid'         => 'NULL',
                  'name'        => 'setting_name',
                  'title'       => 'Setting Title',
                  'description' => 'Settins description',
                  'optionscode' => "radio\nradio1_value=Radio 1\nradio2_value=Radio 2\nradio3_value=Radio 3",
                  'value'       => 'radio2_value',
                  'disporder'   => '1',
                  'gid'         => intval( $gid ) );
$db->insert_query( 'settings', $setting );
Reply
#5
This might help but of course I need to update it for 1.4.


http://www.mybbcentral.com/thread-76.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)