- Posts: 7
COMMUNITY FORUM
Can't disable user profile pages
- Uber Gruber
-
Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago - 9 years 8 months ago #146781
by Uber Gruber
Can't disable user profile pages was created by Uber Gruber
Incredibly after my previous question, the client gave up on the idea and now reverted his request to have an author page (
this one for anyone curious
).
So I wen't to disable the user profile option from "K2 Parameters" --> "Advanced" --> "Enable K2 User Profile".
Even with this option disabled, authors name are still presented as links to their user pages. Am I missing something?
I'm using a Gavick pro template, Joomla 3.41, last K2 Version 2.6.9.
Thank you for any advice!
So I wen't to disable the user profile option from "K2 Parameters" --> "Advanced" --> "Enable K2 User Profile".
Even with this option disabled, authors name are still presented as links to their user pages. Am I missing something?
I'm using a Gavick pro template, Joomla 3.41, last K2 Version 2.6.9.
Thank you for any advice!
Last edit: 9 years 8 months ago by Uber Gruber. Reason: better format
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #146806
by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't disable user profile pages
Do the links produce a 404 error or is the page rendered correctly?
Please Log in or Create an account to join the conversation.
- Uber Gruber
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
9 years 8 months ago #146811
by Uber Gruber
Replied by Uber Gruber on topic Can't disable user profile pages
Thank you Krikor again for your time!
Yes, the page is rendering correctly.
There are few things tho that maybe can help:
after the client changed his mind, I've disabled all other users and switched all articles authorship to the Super User.
The site has 2 categories, and each category has its menu link pointing to the respective items listing. Only one has enabled the show author option.
Now when I click on the author (right now is only the Super User) in that category, the items are shown only for that category, even if the Super User has authorship of all articles in the other category too, the url it's also built on that cathegory (.../category-name/authors/123-Super-User).
Maybe that's by design, unfortunately I'm quite a rookie with K2!
Hope I've explained my self clearly enough even if it's quite confusional by the look of it :P
Thank you!
Yes, the page is rendering correctly.
There are few things tho that maybe can help:
after the client changed his mind, I've disabled all other users and switched all articles authorship to the Super User.
The site has 2 categories, and each category has its menu link pointing to the respective items listing. Only one has enabled the show author option.
Now when I click on the author (right now is only the Super User) in that category, the items are shown only for that category, even if the Super User has authorship of all articles in the other category too, the url it's also built on that cathegory (.../category-name/authors/123-Super-User).
Maybe that's by design, unfortunately I'm quite a rookie with K2!
Hope I've explained my self clearly enough even if it's quite confusional by the look of it :P
Thank you!
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
9 years 8 months ago #146848
by Lefteris
Replied by Lefteris on topic Can't disable user profile pages
@Uber Gruber
The option for disabling user profiles affects just user profiles. It does not remove user pages. If you want to "hide" user pages you have to disable user links in the component and modules output.
The option for disabling user profiles affects just user profiles. It does not remove user pages. If you want to "hide" user pages you have to disable user links in the component and modules output.
Please Log in or Create an account to join the conversation.
- Uber Gruber
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
9 years 8 months ago #146858
by Uber Gruber
Replied by Uber Gruber on topic Can't disable user profile pages
That's what I thought. I've already removed the links from the codes, but as you could guess even if the link is not present on the website, the page is still available.
I've created a simple .htaccess rule to give a 404 to anything looking for the authors like this
Still, this way it's a system 404 apache page, not the template error.php page. Any suggestion on how can I send to the proper 404 page? (not a major issue tho).
Thank you for your time!
I've created a simple .htaccess rule to give a 404 to anything looking for the authors like this
RedirectMatch 404 ^.*/authors/.*
Still, this way it's a system 404 apache page, not the template error.php page. Any suggestion on how can I send to the proper 404 page? (not a major issue tho).
Thank you for your time!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #146874
by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't disable user profile pages
By default the page is created and it is viewable.
This cannot be done with a 404 redirect. I would use a 301 redirect to the homepage instead.
Finally make sure that all newly created users match the /authors/ pattern (if you are not using K2's sef or an seo extension)
This cannot be done with a 404 redirect. I would use a 301 redirect to the homepage instead.
Finally make sure that all newly created users match the /authors/ pattern (if you are not using K2's sef or an seo extension)
Please Log in or Create an account to join the conversation.