COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Can't view user profiles unless a published item is assigned
Can't view user profiles unless a published item is assigned
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
If I publish users from a usergroup with the K2 Users module, clicking the link through to their full user profile drops me back to the home page.
Unless I also have an article published and assigned to them - then I can click through to the user.
What am I missing?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Actually this was introduced in 2.7.0 as a spam blocking mechanism.
Users would register, fill their info with Cyalis and Viagra links, display their page which would hurt your site.
Now a user cannot have a page unless he has posted something.
I can send you the commit that blocked these pages if you are interested.
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
If I can get an answer on this one: www.joomlaworks.net/forum/k2-en/37358-add-dropdown-field-to-k2-user-profile?start=10#154588
Then I'll continue to use user profiles and need that update. Otherwise I'll need to switch to using articles for user pages.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Think extrafields, galleries videos etc.
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
-
Topic Author
- Offline
- Elite Member
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Alexander
-
- Offline
- New Member
- Posts: 3
Very necessary.
Please Log in or Create an account to join the conversation.
- Alexander
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Elite Member
- Posts: 169
if(count($items) == 0 && $task == 'user') {
$mainframe->redirect(JUri::root());
}
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please look at this commit:
github.com/getk2/k2/commit/922a7f403b5c0028250e7ab9831b86c4c93cffbd
Please Log in or Create an account to join the conversation.
- Alexander
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Filip
-
- Offline
- New Member
Therefore, I think it would be best to keep this option, but to make it as parameter in K2 config, so this parameter would enable / disable linkage at global K2 extensions level.
Unitl then, it would be good to add an extra message when user is redirected to homepage why it happened, such as: "This user has no published items and you can not visit his / her profile page."
I presume answer would be "already done" with link to dev version @git as usually is :)
Thank you once again for K2!
Cheers!
never walk alone
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Thank you for reporting this.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Can't view user profiles unless a published item is assigned