hgtonight
MVPhgtonight MVP
This is an activity!
Reactions
-
Re: Doesn't work for NewDiscussion Module
This is the best idea I could come up with. Get a list of php files with module in the name, include them, then iterate over the declared classes. $dir = new RecursiveDirectoryIterator(PATH_ROOT);$i … (View Post)2 -
Re: Doesn't work for NewDiscussion Module
Iterate over get_declared_classes() and see if it implements Gdn_IModule. Do this once on setup and have a button to refresh the list. This should get you every possible module that is in the Autoloa… (View Post)2 -
Re: I Finally got around to installing Sphinx
You could have your base Widgets class extend Gdn_Module (or implement Gdn_IModule). (View Post)1 -
Re: Catching Garden/Vanilla Exceptions With Sentry/Raven
Don't you need to run on every page load? You could override the Gdn_UserException class if you want to log user facing errors. (View Post)1 -
Re: Google Search Console collects not needed Content Keywords
public function base_render_before($sender) { if(!Gdn::Session()->isValid()) { $Definition['Edited %s by %s.'] = ''; $Definition['Edited %s.'] = ''; $Definition['edited %s'] = ''; }} Untested and … (View Post)2