Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dashboard #2023

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Remove dashboard #2023

wants to merge 2 commits into from

Conversation

Steph4104
Copy link
Collaborator

Related to https://zube.io/tbs-sct/gctools/c/4964

To remove dashboard, you can only turn off the plugin in the admin setting( plugins -> User Dashboard 1.9)
This will remove the option in the menu to access it. But, if an user as dashboard in his bookmarks or know the URL, he still can access it.

This pull request is to remove the possibility to access the dashboard by URL.

Before merge this pull request, need to delete what add in comment and remove the function linked to "wet4_dashboard_page_handler"

@@ -78,8 +78,8 @@ function wet4_theme_init()

//register a page handler for friends
elgg_unregister_page_handler('friends'); //unregister core page handler
elgg_unregister_page_handler('dashboard'); //unregister dashboard handler to make our own
elgg_register_page_handler('dashboard', 'wet4_dashboard_page_handler');
//elgg_unregister_page_handler('dashboard'); //unregister dashboard handler to make our own
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't you want to keep the other one unregistered as well as not registering the wet4 one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can

@Steph4104 Steph4104 requested a review from Phanoix July 5, 2019 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants