I notice that there is in fact an option in user perms to allow/disallow viewing of site activity. However, it doesn't seem to "work".
The reason why this is strange, at least to me, is that if somebody clicks on a post author, they are taken to a site activity page first, and then have to click the tab to see that user's posts. The relevant tab is not the automatic one.
We were looking for a way to take out this Activity tab alltogether. We did so with a manual tweak. Not ideal, but it works. For those interested, go to applications/dashboard/views, and edit "default.master.php". Here you see a line that reads:
te200's comment helps comment out the activity tab on the site menu. I want to eliminate it when you navigate to a user page. When you go to a users page, you see notification, activity, discussions, comments tabs.... and when you land on someone other than your user page it defaults to activity tab. I want to hide that tab, and have the lading for that view on discussions.
In effect, I want to eliminate the whole WALL concept from Vanilla and have it only show discussons and comments. How do I do this? I tried last year once for three days of hacking and found it virtually impossible.
Please don't go down the "why do you want that?" road. Just understand I do. I don't want to argue about it, I just want instructions on how to do it.
@RichGriese said:
te200's comment helps comment out the activity tab on the site menu. I want to eliminate it when you navigate to a user page. When you go to a users page, you see notification, activity, discussions, comments tabs.... and when you land on someone other than your user page it defaults to activity tab. I want to hide that tab, and have the lading for that view on discussions.
In effect, I want to eliminate the whole WALL concept from Vanilla and have it only show discussons and comments. How do I do this? I tried last year once for three days of hacking and found it virtually impossible.
Please don't go down the "why do you want that?" road. Just understand I do. I don't want to argue about it, I just want instructions on how to do it.
Comments
The reason why this is strange, at least to me, is that if somebody clicks on a post author, they are taken to a site activity page first, and then have to click the tab to see that user's posts. The relevant tab is not the automatic one.
$this->Menu->AddLink('Activity', T('Activity'), '/activity');
Comment this line (that is, put // before it):
// $this->Menu->AddLink('Activity', T('Activity'), '/activity');
Now the Activity tab will not show at all.
te200's comment helps comment out the activity tab on the site menu. I want to eliminate it when you navigate to a user page. When you go to a users page, you see notification, activity, discussions, comments tabs.... and when you land on someone other than your user page it defaults to activity tab. I want to hide that tab, and have the lading for that view on discussions.
In effect, I want to eliminate the whole WALL concept from Vanilla and have it only show discussons and comments. How do I do this? I tried last year once for three days of hacking and found it virtually impossible.
Please don't go down the "why do you want that?" road. Just understand I do. I don't want to argue about it, I just want instructions on how to do it.
Cheers!
http://vanillaforums.org/discussion/comment/166058/#Comment_166058
and change the permissions for viewing activity in dashboard.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Another way to hide the Activity menu item is by CSS:
#Menu .Activity{
display: none;
}
This is not ideal either, but it works.