Keyword

Creating individual user pages

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133800 by oorzaak
Creating individual user pages was created by oorzaak
Hi,

I'd like to create a menu item that will show, for registered and logged-in users, their individual K2 and Joomla user details and a blog view of their K2 items. So I want to have one menu item that will accept the user id of a logged-in user as a parameter.

I've read several forum posts:

getk2.org/community/English-K2-Community/179671-How-to-configure-K2-for-multiple-user-blogs
getk2.org/community/English-K2-Community/199162-Menu-Item-Link-to-K2-Users-Blog#199197

Yet I do not understand how to transfer the user id either to a menu item (K2 user blog) or to a module (K2 user module). Hope this is possible at all.

Kind regards, Frits

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133801 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Creating individual user pages
You can use the mod_k2_user module. You can also enable it only for registered users.

These links you need are there by default.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133802 by oorzaak
Replied by oorzaak on topic Re: Creating individual user pages
Thanks. I just found out why I didn't see right away: I tried the k2_users module instead of k2_user module.

:whistle:

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133803 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Creating individual user pages
It happens to the best of us Frits, no worries :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133830 by oorzaak
Replied by oorzaak on topic Creating individual user pages
Hi,

The K2_user module provides a very useful list of links for user related views. When trying to refine it to our needs I came across some questions.

Some information to start with: I created a menu item with an article in it; with loadposition the K2_user module is shown inside this article. So the module has a menu item. And I created a child menu item for editing the user account details. This is reflected nicely in the breadcrumb.

Question 1: it seems that, when selecting the user blog view from the module, the default K2 template is used and not my template override for this view. I cannot find an option for the module to use my override, would this be possible somehow?

Question 2: when selecting the user blog view from the user module, there is no menu item related to this view. This works fine but the lack of a menu item breaks my breadcrumb. Would there be a way to associate a menu item with this view?

Question 3: the K2_user module shows a count of the comments that were submitted by the user. However there is no listing of there comments, which makes it different from the other links in the module. I think the comments module does not provide a listing of the comments by a specific user either. Or did I miss something?

Kind regards, Frits

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133856 by Krikor Boghossian
Replied by Krikor Boghossian on topic Creating individual user pages
Question 1: Map that user into a menu item and you will have the option to use another K2 User (blog) menu item.

Question 2: Yes, this is the same actually as the above question.

Question 3: This listing is only present for moderation. Not for the 'public' to see. The latest comments module does not indeed offer this functionality. You need to look for an extension at the JED.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #133857 by oorzaak
Replied by oorzaak on topic Creating individual user pages

Krikor wrote: Question 1: Map that user into a menu item and you will have the option to use another K2 User (blog) menu item.


The problem is that I have a few hundreds of users so I will not be able to map them all to individual menu items.


Frits

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133861 by Krikor Boghossian
Replied by Krikor Boghossian on topic Creating individual user pages
Then you need to edit the default template of K2 and the user.php file.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

This will enforce the new template to all users.

As for the breadcrumbs and urls; you can create a new K2 category menu and leave it blank. All the orphan tags and users will be rendered through this menu item.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago - 9 years 10 months ago #133864 by oorzaak
Replied by oorzaak on topic Creating individual user pages

Krikor wrote: Then you need to edit the default template of K2 and the user.php file.

Just to make sure: you mean in the /components/com_k2 folder?

About the menu: it works indeed, that's quite nice!

Frits

---

Edit: Just found out that the solution for the menu item also solved the template override issue. Because now there is a menu item in which the sub template can be set.
Last edit: 9 years 10 months ago by oorzaak.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #133869 by Krikor Boghossian
Replied by Krikor Boghossian on topic Creating individual user pages
Not really. You should use overrides.
The post I sent you explains how you can override the template of K2.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum