May 2014 Update
May 03, 2014, 12:14:27 PM Posted by Suki on May 03, 2014, 12:14:27 PM in May 2014 Update | 8 CommentsAnother consistent update.
- Hooks can can create a new instance of your class for you and it will be stored in $context['instances']['your_class_name'], it you want to create an instance you need to use the # character at the end of your string:
add_integration_function('integrate_menu_buttons', 'MyClass::methodToCall#);
The feature is still compatible with how hooks calls work on 2.0.
- Hooks can now declare a file to be loaded when the hook is called, example:
add_integration_function('integrate_menu_buttons', '$sourcedir/MyClass.php|MyClass::methodToCall#);
The following wildcards can be used:
$boarddir
$sourcedir
$themedir
- Adds a fall-back if no wildcard for a path was given, it only tries to check if the file exists on Sources dir so make sure you included a valid path to your file.
Use more descriptive var names, no more $call[1], $call[0]
- Subs::call_hook_helper() is now used when calling hooks, it determines if the string passed is a callable function, a static method or a normal method and acts according to what was found.
- Change to schemaless URLs on hardcoded urls for the default custom profile fields.
- When an user gets a permanent ban, destroy the user's session and unset his/her openID data, thanks to Underdog.
- Arrows are no longer showed on third level menus, thanks to Live627.
- Enable/Disable BBC are now on under posting settings, thanks to Antes.
- When editing your profile, if a custom profile value fails, it will tell the user about it.
- Custom profile fields now has more options to be displayed, besides the current 3 options theres now: below signature, below avatar, above username and bottom poster info.
- Warning logs are now searchable.
- Custom profile field "gender" now has a "none" value by default.
- Several bugs were fixed as well.
That's pretty much it, as always, you can take a look at where the fun is happening: http://github.com/SimpleMachines/SMF2.1 and remember, due to the volatile nature of the repo, installing 2.1 for production is not recommended. You can, however, install it on a local or test site and give us a hand at reporting issues.
- Hooks can can create a new instance of your class for you and it will be stored in $context['instances']['your_class_name'], it you want to create an instance you need to use the # character at the end of your string:
add_integration_function('integrate_menu_buttons', 'MyClass::methodToCall#);
The feature is still compatible with how hooks calls work on 2.0.
- Hooks can now declare a file to be loaded when the hook is called, example:
add_integration_function('integrate_menu_buttons', '$sourcedir/MyClass.php|MyClass::methodToCall#);
The following wildcards can be used:
$boarddir
$sourcedir
$themedir
- Adds a fall-back if no wildcard for a path was given, it only tries to check if the file exists on Sources dir so make sure you included a valid path to your file.
Use more descriptive var names, no more $call[1], $call[0]
- Subs::call_hook_helper() is now used when calling hooks, it determines if the string passed is a callable function, a static method or a normal method and acts according to what was found.
- Change to schemaless URLs on hardcoded urls for the default custom profile fields.
- When an user gets a permanent ban, destroy the user's session and unset his/her openID data, thanks to Underdog.
- Arrows are no longer showed on third level menus, thanks to Live627.
- Enable/Disable BBC are now on under posting settings, thanks to Antes.
- When editing your profile, if a custom profile value fails, it will tell the user about it.
- Custom profile fields now has more options to be displayed, besides the current 3 options theres now: below signature, below avatar, above username and bottom poster info.
- Warning logs are now searchable.
- Custom profile field "gender" now has a "none" value by default.
- Several bugs were fixed as well.
That's pretty much it, as always, you can take a look at where the fun is happening: http://github.com/SimpleMachines/SMF2.1 and remember, due to the volatile nature of the repo, installing 2.1 for production is not recommended. You can, however, install it on a local or test site and give us a hand at reporting issues.
Comments
Thanks Suki... I appreciate all the plugging away you are doing to patch issues as well as adding stuff.
Thank you Suki and the dev team!
{insert applauding animated GIF here}
{insert applauding animated GIF here}
Thanks and good work all!
interesting news very good work smf team we w8 for more
Thank you for the update Suki! Good work.
Lots of work going on...
Thanks, for that, Suki!
Thanks, for that, Suki!
Thanks for the summary Suki, and thank you to the development team for all the ongoing work being put into this .