Keyword

Can't view user profiles unless a published item is assigned

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 2 weeks ago #154587 by Kelsey Brookes
I've never actually used the K2 User Profiles previously and have run into a bit of an odd issue that is no doubt due to my own ignorance.

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 weeks ago #154596 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't view user profiles unless a published item is assigned
Hello Kelsey,

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
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 2 weeks ago #154626 by Kelsey Brookes
Ah - thanks Krikor... well it depends...

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 weeks ago #154637 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't view user profiles unless a published item is assigned
I would opt in for items, you have waaay more control over them.
Think extrafields, galleries videos etc.

Please Log in or Create an account to join the conversation.

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 2 weeks ago #154662 by Kelsey Brookes
You're right. I played around with both and have come to the conclusion that it's easier to muck around with items instead.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 weeks ago #154678 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't view user profiles unless a published item is assigned
Nice to hear that we agree on the issue Kelsey :)

Please Log in or Create an account to join the conversation.

More
9 years 1 week ago #154820 by Alexander
Can you write how to disable this new feature?
Very necessary.

Please Log in or Create an account to join the conversation.

More
9 years 6 days ago #154914 by Alexander
Please, can you write how to disable this new antispam feature?

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
9 years 6 days ago #154930 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Can't view user profiles unless a published item is assigned
At file components/com_k2/views/itemlist/view.html.php
if(count($items) == 0 && $task == 'user') {
$mainframe->redirect(JUri::root());
}

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 6 days ago #154931 by Krikor Boghossian

Please Log in or Create an account to join the conversation.

More
9 years 6 days ago #154932 by Alexander
thanks alot!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 6 days ago #154942 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't view user profiles unless a published item is assigned
You 're welcome Alexander.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #157891 by Filip
I understand protection, that's fine and good to have, but what if I want to show author's name (for example in Comments module, Latest comments, I want comment authors to be seen there). There's no option as in Top Commenters to disable link to user page and show just name... You (developers) need to go through all possible places where link is created instead of plain unlinked username / name of author if you want to enable author's names but disable links if no items are published by that author.

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #157898 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't view user profiles unless a published item is assigned
Actually you presumed correctly, the global option has been implemented in the DEV version. however I have to check the links on the modules.
Thank you for reporting this.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum