Author Topic: May 2014 Update  (Read 20767 times)

Offline Suki

  • Carthago delenda est
  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 16,109
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
May 2014 Update
« on: May 03, 2014, 12:14:27 PM »
Another 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:


- 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: 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.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,262
  • Gender: Male
    • Kindred-999 on GitHub
Re: May 2014 Update
« Reply #1 on: May 03, 2014, 09:30:19 PM »
Thanks Suki...   I appreciate all the plugging away you are doing to patch issues as well as adding stuff.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline mashby

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,392
  • Gender: Male
  • badass beer hound
    • Choppix
Re: May 2014 Update
« Reply #2 on: May 03, 2014, 11:03:30 PM »
Thank you Suki and the dev team!
{insert applauding animated GIF here}
Always be a little kinder than necessary.
- James M. Barrie

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 18,498
  • Gender: Male
  • Liroy van Hoewijk
Re: May 2014 Update
« Reply #3 on: May 03, 2014, 11:44:03 PM »
Thanks and good work all! :)
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Offline DSystem

  • Jr. Member
  • **
  • Posts: 238
  • Gender: Male
  • EletronicaBR - Admin
Re: May 2014 Update
« Reply #4 on: May 04, 2014, 12:37:38 AM »
Very good :)

Installed here to test ->

Offline Antros22

  • Semi-Newbie
  • *
  • Posts: 55
Re: May 2014 Update
« Reply #5 on: May 04, 2014, 12:49:28 PM »
interesting news  very good work smf team  we w8 for more :)

Offline Chainy

  • SMF Friend
  • Sophist Member
  • *
  • Posts: 1,017
  • Gender: Male
  • SMF Translator (Esperanto)
Re: May 2014 Update
« Reply #6 on: May 08, 2014, 07:25:46 PM »
Thank you for the update Suki! Good work.


  • Guest
Re: May 2014 Update
« Reply #7 on: May 09, 2014, 06:03:58 AM »
Lots of work going on...

Thanks, for that, Suki! :)

Offline Irisado

  • Una Luz Brillante en la Oscuridad
  • Doc Coordinator
  • SMF Super Hero
  • *
  • Posts: 10,915
  • Soñando debajo del arco iris
Re: May 2014 Update
« Reply #8 on: May 09, 2014, 08:30:57 AM »
Thanks for the summary Suki, and thank you to the development team for all the ongoing work being put into this :).
Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente