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 put style element in if statement
-
Re: how to put style element in if statement
@R_J yes i know it is not the best way. What i am trying to achieve: i made a tuts-scriptscategory with simple pages plugin. I gave only mods permission to post topics in this category and normal members should only view this category. The problem: members should been able to view this in the discussion list but NOT in the… -
how to put style element in if statement
I am trying to set the class Category-tuts-scripts-pagina-s to display: none if the logged in user is a normal member, and to display it if he is a mod or admin. I tried the following: public function discussionController_render_before($sender) { if (!Gdn::Session()->CheckPermission('Garden.Moderation.Manage')) { // if not… -
Re: how to put style element in if statement
Code now looks like below: /** * Special display rules for SimplePage discussions. */ public function discussionController_render_before($sender) { if(Gdn::Session()->CheckPermission('Garden.Moderation.Manage') == false) { // if not moderation permission $sender->AddCssFile($this->GetResource('design/hidecats.css', FALSE,…
4 results