Some comment about coding. In DiscussionsController_DiscussionOptions_Handler() need add Session->IsValid() before adding new option in $Sender->Options
I thought the reason was to not have the link activated if you're not signed in, but if you're not, it is already not available. Maybe I'm just missing the reason :).
I guess it's working because the event is already behind an $Session->IsValid() in vanilla/views/discussions/helper_functions.php hence it's not needed.
Updated to v1.0 I was off vanilla2 for a while and I didn't had time to test it. Reinstalled it on my v2.0.17.8 install and it wasn't working anymore, fixed it and improved a bit.
If you have an older installation and that it works too, let me know, so I'll change the requirement.
Comments
I had no specific knowledge for all that prior to trying to create the addon. So bear with the possible errors, even though it works fine for me.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •In DiscussionsController_DiscussionOptions_Handler() need add Session->IsValid() before adding new option in $Sender->Options
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I thought the reason was to not have the link activated if you're not signed in, but if you're not, it is already not available.
Maybe I'm just missing the reason :).
I guess it's working because the event is already behind an $Session->IsValid() in vanilla/views/discussions/helper_functions.php hence it's not needed.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •So your comment allowed to make sure it was all and proper. Thanks.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I was off vanilla2 for a while and I didn't had time to test it.
Reinstalled it on my v2.0.17.8 install and it wasn't working anymore, fixed it and improved a bit.
If you have an older installation and that it works too, let me know, so I'll change the requirement.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •