Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

User Home Page Selector Plugin

charrondevcharrondev Application Developer (PHP, JS)Montreal Vanilla Staff

After some discussion it was clear to me that homepage preferences definitely vary by user, so I made a plugin to allow the homepage to be user configurable!

The Plugin

Go grab it on the addon directory! It's been tested with PHP 7.1 + & Vanilla 3.1 (it likely works with 3.0 as well though).

Screenshot

Source Code

Get it over on the addon directory. The source should be up on the vanilla/addons repo in a few days once it passes code review. In the meantime if anyone wants to view the source it's up on a branch.

Unfortunately it ended up being a bit more code than I initially thought. Forms are a PITA!

R_JKaspar

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Thanks for that plugin, can't wait to have it here :-)

    That Twig snippet is very interesting! There isn't any documentation about that by now. Will that follow? Will you continue using Smarty and Twig in parallel?

    The comments of your plugin has some references to signatures, by the way.


  • Awesome.

    Categories landing page offered little to me ... now I can change it. KUTGW! Thanks.

  • charrondevcharrondev Application Developer (PHP, JS) Montreal Vanilla Staff
    edited July 13

    I think we added twig support right around Vanilla 2.8? This is basically the “LegacyViewHandler” for for our twig support. We’re also using it in the our new page/controller that we use for our knowledge product. We're not going to be using Smarty for anything new going forward though. Once we bring our new routing & controllers to the forum, the master view will be in Twig as well.

    The signatures stuff will get cleaned up during code review. I was using it as a reference for adding the menu items to the profile page and was a little sloppy.

Sign In or Register to comment.