Keyword

Add dropdown field to k2 user profile

  • Tibbe van Asten
  • Tibbe van Asten's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #132713 by Tibbe van Asten
Replied by Tibbe van Asten on topic Re: Add dropdown field to k2 user profile
No ideas on how to display the value of just one field from the User Extended Fields extention?

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

More
9 years 6 months ago #132714 by Lefteris
Replied by Lefteris on topic Re: Add dropdown field to k2 user profile
@Tibbe van Asten

Try this:
<?php
$fields = new JRegistry($user->plugins);
echo $fields->get('userExtendedFieldsbirthday'); 
?>

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

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

  • Tibbe van Asten
  • Tibbe van Asten's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #134173 by Tibbe van Asten
Replied by Tibbe van Asten on topic Add dropdown field to k2 user profile
Finally, I got it working in a K2 Users module! Thank you so much!!

In the K2 content module this is not working. Do you have an idea on that?

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

  • Tibbe van Asten
  • Tibbe van Asten's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #134305 by Tibbe van Asten
Replied by Tibbe van Asten on topic Add dropdown field to k2 user profile
Okay, I could not figure that out.
Can you give me an example?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #134345 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add dropdown field to k2 user profile
Sorry I accidentally mislead you.
This plugin is not rendered in that module.
You can use an extrafield if you want to show additional information in that module.

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

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

  • Tibbe van Asten
  • Tibbe van Asten's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 5 months ago #134352 by Tibbe van Asten
Replied by Tibbe van Asten on topic Add dropdown field to k2 user profile
So there is no way to show a user extended field in the k2 content module?
An extrafield is not a solution for me, because it's item-related and not user-related.

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

More
7 years 11 months ago #154588 by Kelsey Brookes
Replied by Kelsey Brookes on topic Add dropdown field to k2 user profile
Hi Krikor, Lefteris,

Lefteris wrote this earlier:
<?php
$fields = new JRegistry($user->plugins);
echo $fields->get('userExtendedFieldsbirthday'); 
?>

Which works perfectly in mod_k2_users - what do I need to replicate this functionality within com_k2 user.php?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154633 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add dropdown field to k2 user profile
You meant the profile.php file?

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