Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

edit menu tabes...

troppmanntroppmann New
edited October 2011 in Vanilla 2.0 - 2.8
in vanilla one the tabs at the top were easily manipulated...in the dashboard...

where is this functionality now? anyone?

like say...i want to remove the "activity" tab...?

http://www.halfacrecycling.org/pix/menus.jpg

I have been over the files and what not but really am not seeing what is controlling this...

thanx in advance for any help...milking the vanilla forums...

Best Answer

  • sahotataransahotataran ✭✭✭
    Answer ✓
    i control it through my theme -> views -> default.master.tpl

    there is something like
    $this->Menu->AddLink('Activity', T('Activity'), '/activity');

    just remove this line and it will stop Activity from being displayed in you forum

    There was an error rendering this rich post.

Answers

  • sahotataransahotataran ✭✭✭
    Answer ✓
    i control it through my theme -> views -> default.master.tpl

    there is something like
    $this->Menu->AddLink('Activity', T('Activity'), '/activity');

    just remove this line and it will stop Activity from being displayed in you forum

    There was an error rendering this rich post.

  • OK, this was GREAT information and I really appreciate the help.

    I have been trying to find where to remove Discussions from the sign in form header....

    I have been over the phps files in applications and themes and really am not seeing where to edit this, or remove it...

    as in this :

    http://www.halfacrecycling.org/pix/growl.jpg

    ideas? thank you again...
  • you want to remove it only on SIGN IN or from ALL THE PAGES?

    There was an error rendering this rich post.

  • only from sign in...
  • that is going to be hard. i wonder if we can even remove from there.
    i think we can remove it but then i will be like messing with the vanilla core.

    There was an error rendering this rich post.

  • yeah i was looking at that...if you look at the screen shot the option to sign in is still there to...I am trying to clean this up so it looks well "better"...

    i have this adjusted in the dashboard so the forum is private these are the stragglers being left over...if you get my meaning...i tried looking at the pockets plugin but that didnt seem to help...

    http://www.halfacrecycling.org/pix/growl2.jpg
  • i would have done it this way:
    go to
    /applications/vanilla/views/discussions/helper_functions.php on line 117 
    i would have checked
    $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } if($pageURL != "SIGN IN URL"){ ?> <li<?php echo strtolower($Sender->ControllerName) == 'discussionscontroller' && strtolower($Sender->RequestMethod) == 'index' ? ' class="Active"' : ''; ?>><?php echo Anchor(T('All Discussions'), 'discussions', 'TabLink'); ?></li> <?php } ?>

    There was an error rendering this rich post.

  • hmmm, thank you so much for your help...i am starting to get the hang of this V2...however...your stuff isnt in this

    http://www.halfacrecycling.org/pix/helper_functions.php
  • which version u r using? i use version 2.0.18 and i checked it on my localhost

    There was an error rendering this rich post.

  • troppmanntroppmann New
    edited November 2011
    wait, i got it...move the tabs and links under....

    {if $User.SignedIn}
    in default.master.tpl

    ok, one down...

    i am actually using 2.0.18
  • oh cool. u were using smarty template. m glad its fixed

    There was an error rendering this rich post.

  • yeah now the problem is if you log in as a guest you see all the tabs you shouldnt...oh the joy...lol
  • dont worry you will fix them all one day. thats what happens with me - if not today then tomorrow for sure :)

    There was an error rendering this rich post.

Sign In or Register to comment.