Kasper
Vanilla StaffKasper Vanilla Staff
Reactions
-
Re: Howto customize text of the "New discussion" button?
You use Gdn::Locale() to define translation strings too: if (conditions): Gdn::Locale()->SetTranslation('string', 'translation');endif; (View Post)6 -
Re: Display UserPhoto in "Menu"
A pretty neat Smarty variable was assigned for this sort of stuff: {$User}. It's only accesible through the Smarty templates though, but the function can easily be rewritten so you can use it elsewhe… (View Post)2 -
Re: ¿Disable preview button?
CSS will do the trick: .PreviewButton { display: none !important;} !important must be used as the preview/edit buttons are toggled using JS meaning they get inline styles applied. (View Post)1 -
Re: How to add class attribute to link in theme hooks ?
A simpler way would be to use Gdn_Theme for adding both links and modules since the "New Discussion" button is actually a module: Gdn_Theme::Link('home');Gdn_Theme::Module('NewDiscussion');… (View Post)1 -
Re: Split/Merge remains
I know for a fact that there's an option to remove the "Admin check boxes" in Vanilla 2.1 but I'm not sure whether or not that option is present in Vanilla 2.0 - try going to "Forum Se… (View Post)1