HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: How to override functions (Vanilla 3.3)?
-
Re: How to override functions (Vanilla 3.3)?
Thanks for the suggestions. However, all of those events seem to fire several times per request as well, so I'd end up building a similar IF structure than in my current implementation if I were to use e.g. gdn_dispatcher_appStartup_handler. 😕 I do invalidate Vanilla users when they log out of my system, but I also want to… -
Re: How to override functions (Vanilla 3.3)?
It is only fired once per request, but there is more than one request per page view - somehow... I just threw together this: public function gdn_dispatcher_appStartup_handler($sender) { $request = Gdn::request(); Gdn::set('debug_'.microtime(), $request->getMethod().': '.$request->getPath()); } The result of this and… -
Re: How to override functions (Vanilla 3.3)?
Thanks for the clarification @R_J . If at all possible maybe you or some other moderator/admin could update the docs with that information. I'm sure it would help others, as well. Yeah, the checkPermission function wasn't the right place for me to do anything. I was just trying to get the function override to work before…
4 results