Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
Current version is 2.1.11, released 12 June.

Remove Category Management from right

edited January 2012 in Vanilla 2.0 Help

I want to remove category management toggle box . Some body assist which file i have to touch.

Best Answers

  • JongosJongos
    edited January 2012 Answer ✓

    @whu606

    He's asked for the file... :)

    Now knowing the module file he could :

    1. remove the module & view... (make his Vanilla lighter)
    2. find the view file and make it output nothing.
    3. hide it via css

    @As22

    you CAN hide page elements via CSS.

    .CategoryFollowToggleBox { display:none; }

    As22solonovareevez
  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    Answer ✓

    That's right - that's actually both of them.

    The space indicates that (afaIk) the element takes rules from the Box class AND the CategoryFollowToggleBox.

    You don't want to affect the Box rule, as that will affect all elements that have that rule.

    So in your custom css file add a rule like this:

    .CategoryFollowToggleBox {display: none;}

    and the element won't display.

«1

Answers

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    Go to the Dashboard

    Forum - Categories -

    tick box for 'Do not display the categories in the side panel.'

  • this is not what i am asking. i am asking to remove this : http://img860.imageshack.us/img860/3757/f56d2ae12126401f9a61def.png
    this comes in right side.

  • @jongos can you help me with this?

  • i can't view the image... maybe upload it somewhere else?

    i guess you're talking about the one in the Dashboard, right?

    get the picture uploaded...

  • @todd i was waiting for you. Please help me with this. Seems like no one here know how to remove this.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    edited January 2012

    As22

    I could simply post the answer, but then what have you learned?

    You've posted a fair number of questions recently.

    If you are going to alter your theme then you really need to get to grips with using something like Firebug in Firefox to inspect the elements you want to change.

    Using that you can find what things are called in the css stylesheet.

    Elements you don't want can be 'turned off' by applying 'display: none' to them.

    If you want to experiment with theming, I uploaded a theme called annotated_css which shows you which rules change basic features of the forum.

    As22
  • not sure since i'm new myself, but here's my bet:

    The module is : /applications/vanilla/modules/class.categoryfollowtogglemodule.php

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    Jongos

    I think it would be simpler to change the css in the stylesheet.

  • @whu606 changing css won't help i think. I may be wrong. i am using inspect element but not able to remove that :-(

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    edited January 2012

    As22
    Well I just did it with css on my test server!

    I'm not trying to be difficult, honestly.

    If you work it out for yourself you'll be so much further ahead.

    What are the two names of the element class?

    Come on, you can do this!

    Jongos
  • @whu66 one is Box CategoryFollowToggleBox ?

  • JongosJongos
    edited January 2012 Answer ✓

    @whu606

    He's asked for the file... :)

    Now knowing the module file he could :

    1. remove the module & view... (make his Vanilla lighter)
    2. find the view file and make it output nothing.
    3. hide it via css

    @As22

    you CAN hide page elements via CSS.

    .CategoryFollowToggleBox { display:none; }

    As22solonovareevez
  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    Answer ✓

    That's right - that's actually both of them.

    The space indicates that (afaIk) the element takes rules from the Box class AND the CategoryFollowToggleBox.

    You don't want to affect the Box rule, as that will affect all elements that have that rule.

    So in your custom css file add a rule like this:

    .CategoryFollowToggleBox {display: none;}

    and the element won't display.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @Jongos

    the advantage for users of getting the hang of the css , and inspecting with Firebug, is that once they know how to do it, they can make most of the changes they want to to customize their theme.

    As22
  • JongosJongos
    edited January 2012

    i would like to add to my own comment, i dont want to mislead someone who might gonna read this discussion in the future.

    Now knowing the module file he could :

    remove the module & view... (make his Vanilla lighter)

    >

    find the view file and make it output nothing.

    >

    hide it via css

    I've just learnt that modules dont appear on all page, only on pages where it's controller calls for that module.

    so if one want to remove the class.mymodule.php, he has to edit all controllers that call $this->AddModule('MyModule').

    That is quite a messy for someone who is not even familiar with CSS, much less PHP.

    Removing view files doesn't guarantee that modules are not gonna output anything because MyModule::ToString gonna get called.

  • edited January 2012

    .CategoryFollowToggleBox {display: none;}

    I can't find the css file where this command is located. I've searched for the last hour. I am using version vanilla-core-2-0-18-1.

  • @newbie you have to add this in css file.

  • @jongos so what do you suggest? I edited css file. Is this not the right way to do? To do it properly i have to be into that mess of removing all calls that controller making? right?

  • @newbie you have to add this in css file.

    I think I have about 50 or more css files in my vanilla-core-2-0-18-1 folder.

    Which one is it?

    I open the source window in the browser and the link is to the minify plug in I have. Unfortunately, there is no css file in the plugin folder. Minify must use php to modify it somewhere else. I could try and disable minify and look at the source that way.

  • theme > Select your theme > design > here u will get custom.css . Put this line in this css

  • Use Firefox+Firebug!


    @As22
    CSS is the cleanest way.

    @newbie
    /applications/dashboard/design/style.css

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    newbie

    To see the css files you are using in Firebug you will need to turn minify off (and possibly clear the cache folder.)

    Don't start editing core Vanilla files!

    To make changes to the files, copy them over to a custom folder.

    So to create a custom theme follow these instructions: http://vanillaforums.org/docs/themequickstart

    I would recommend starting with a blank css file , and just add in the rules you want to use to make the changes you need.

  • Thanks for the tip!
    I simply added the line .CategoryFollowToggleBox { display:none; } in my custom.css
    and the Category Management section was gone.

  • tribulanttribulant Online New
    edited May 5

    It's really simple, the file is: applications/vanilla/views/modules/categoryfollowtoggle.php

    edit added

    by using the theming guide, you can place this inside your own themes/mytheme/views/modules/ folder to serve it instead.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @tribulant

    I don't really understand why you would necropost on a three year old thread, which has already been answered and resolved.

    Moreover, pointing people towards core files (with the implication that that is what needs editing) is just wrong from a Vanilla point of view.

    The OP's aim was achievable through a simple addition of a css rule.

    hgtonight
  • tribulanttribulant Online New

    @whu606

    It didn't seem resolved to me so I might've been wrong.

    I was asking the same question and posted the answer with the hope that it will help someone. I wanted to do something different but to the same file so that's why I posted it.

    It is a core file, yes but by using the theming guide, you can place this inside your own themes/mytheme/views/modules/ folder to serve it instead. So no, it's not wrong. That way the changes are inside your own, custom theme and not made to the core.

    Again, I hope this helps someone.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @tribulant

    The detail you provide with

    by using the theming guide, you can place this inside your own themes/mytheme/views/modules/ folder to serve it instead. So no, it's not wrong. That way the changes are inside your own, custom theme and not made to the core.

    is critical. Without that, someone might easily assume they should edit the given file

    That said, I can't see any benefit to making your suggested change, when a css rule will do pretty much the same job.

    You can tell the thread is answered, as the OP selected two answers.

  • tribulanttribulant Online New

    @whu606

    I should've mentioned the theming and not the core file only.
    You may edit my post if you like.

    And yes, I see now, I didn't notice it, I'm not really familiar with the forums but now I know.

    hgtonight
«1
Sign In or Register to comment.