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.
Options

Dissapearing "activity" page from the menu

hi friends, recently i asked a css question about dissapearing the textbox sections from the activity page.

http://vanillaforums.org/discussion/24132/css-help#latest

thanks to these friends i managed what i wanted to do.

but removin the markup in it's source, brings some problems with it. when i remove it form the source or from the css, the user's profile break down and profiles seem weird (because activity section in profile page is also dissapearing)

you can ask me why you are trying to do that..

firstly i should say that our native language is very different from indo-european languages, the problem is our grammatical structure, the notification senteces, posted in "activiy page" seem so unnatural and artificial that certainly lower the site's quality, it is such an interesting matter is that you can not fix it in the local files, because of the grammatical differences (lots of suffixes and prefixes) the translation always seems unnaturel, so i refrain to put long sentences in system

the other reason my users are not used to it , they sometimes ask me "what is this page for ?"
i cannot give a proper asnwer because me too, i dont know properly :p

last reason, minimalism, you know, i want it to be more simple, means only forum part is enough for us ...

now my question is; How to dissapear the "activity" button from the menu, ?, the page should stay live but just vanish,, i tried the cms plugin which let us costumizing the menu section, but unfortunately, with this plugin you can hide and select all the page except of "activity" ,

could someone please show me the way dissapearing this link from the menu ? with php or with any other alternative.
thank you.

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Do you have a default.master.tpl view file in your custom theme?

    If so, remove any references of {activity_link} in it.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    remziremzi
    edited August 2013

    i have default.master.php not .tpl
    and {activity_link} doesn't exist in it,
    but i meet that part about the activity link

         <div class="Menu">
                <h1><a class="Title" href="<?php echo Url('/'); ?>"><span><?php echo Gdn_Theme::Logo(); ?></span></a></h1>
            <?php
                  $Session = Gdn::Session();
                    if ($this->Menu) {
                        $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage'));
                        // $this->Menu->AddLink('Dashboard', T('Users'), '/user/browse', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete'));
                        $this->Menu->AddLink('Activity', T('Activity'), '/activity');
                     $Authenticator = Gdn::Authenticator();
                        if ($Session->IsValid()) {
                            $Name = $Session->User->Name;
                            $CountNotifications = $Session->User->CountNotifications;
                            if (is_numeric($CountNotifications) && $CountNotifications > 0)
                                $Name .= ' <span>'.$CountNotifications.'</span>';
    
  • Options

    $this->Menu->AddLink('Activity', T('Activity'), '/activity');

    There was an error rendering this rich post.

  • Options

    should i remove this line ?

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Yup

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.