Bleistivt
ModeratorBleistivt Moderator
Reactions
-
Re: How to leverage the model to access the database
@rbrahmson You would start by creating a new class.reviewmodel.php. Note that it extends Gdn_Model. You call the constructor with the name of the table ("Review"): <?phpclass ReviewModel… (View Post)8 -
Border radius
Just a suggestion: set border-radius: 50% and it will work with every size. No need to set a different radius for every size (Some themes may use a different profile picture size). (View Post)2 -
Re: NBBC Bug Bounty (for elite regex hackers)
Have you tried the newest version? https://vanillaforums.org/addon/nbbc-plugin It doesn't seem to have these issues. Also you may wanna wait for Vanilla 2.3, because NBBC has been rolled into the cor… (View Post)2 -
Re: How to Override xxx_xxx_Create method?
Well, you can always create a subclass that extends Gdn_Form and overwrite the factory: public function gdn_dispatcher_appStartup_handler() { Gdn::factoryUninstall('Form'); Gdn::factoryInstall('Form'… (View Post)2 -
Re: How to Override xxx_xxx_Create method?
Afaik _create methods cannot be overriden. But you can make the route point to a new method: public function gdn_dispatcher_appStartup_handler($sender) { Gdn::router()->setRoute('^profile/comments… (View Post)6