Keyword

Joomla K2 user extra fields

  • Lu Yee
  • Lu Yee's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114893 by Lu Yee
Joomla K2 user extra fields was created by Lu Yee
Hi,

I would like to add the fields "Website" , "Home address" to user profile, then at the front end user is allowed to do the editing. I managed to do so under the Joomla user component but not under K2. As for the user login, after they login it shows the default K2 user profile page which doesn't have the extra fields I wanted to have.

Can guide me how I should go about? Thanks!
Thanks!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114894 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Joomla K2 user extra fields
Hello Lu,

The files you want to edit are located in the K2's template folder. They are profile.php and register.php

For the login module you have to edit mod_k2_user and the userblock.php file.

These files are located either at your template's overrides folder (templatename/html/mod_k2_user and templatename/html/com_k2) or at the /components and /modules folders if you don't have overrides.

PS. There is a K2 plugin which offers similar functionality, maybe you should give it a try.
www.joomlaworks.net/extensions/free/user-extended-fields-for-k2

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

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

  • Lu Yee
  • Lu Yee's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #114895 by Lu Yee
Replied by Lu Yee on topic Re: Joomla K2 user extra fields
Hi,

Many thanks for your reply. I tried the K2 extension before, however we can't add new custom fields to it.
Is there any way I can do so? Other than the fields provided by the K2 extended fields.

Thanks again for your help. :)

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

More
11 years 4 months ago #114896 by Christian Matthew
Replied by Christian Matthew on topic Re: Joomla K2 user extra fields
I wanted to edit the fields period. I think there is too many. How can I remove and add fields that I want? thanks.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114897 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Joomla K2 user extra fields
In order to remove fields you need to override the plugin.

Create a folder inside yout template's overrides folder called userExtendedFields and inside that folder you can place the edited default.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.

More
11 years 4 months ago #114898 by Christian Matthew
Replied by Christian Matthew on topic Re: Joomla K2 user extra fields
i almost follow you... when you see create inside templates override folder... do you mean for k2? I don't believe I created a template overrides folder. I adjust all my templates with my sites template custom.css file.

sorry a little bit of a noob here. could you be a little more specific.

thanks so much

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114899 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Joomla K2 user extra fields

i almost follow you... when you see create inside templates override folder...


I mean inside your template's /html folder. You can find out more about Joomla!'s overriding procedure in this article
docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

If you are using a commercial template and you are worried about updates you can directly edit the plugin's files but you have to keep a backup of these patched files for the next time you update the plugin.

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

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

More
11 years 4 months ago #114900 by Christian Matthew
Replied by Christian Matthew on topic Re: Joomla K2 user extra fields
Krikor

If I use the k2 extended fields plugin will that allow me to remove fields I don't want? I much rather use a plugin for this...

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
11 years 3 months ago #114901 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: Joomla K2 user extra fields
@Christian Matthew

Where do you want to remove the fields? in the frontend display or backend ?

Frontend
If you don't key in the values at the backend (user page) , it will not show in the frontend. Eg: if you key in value only for the facebook and leave the rest blank, then only the facebook link will show in the frontend.

Backend
Need to do some "hack" to remove the text boxes, which is not advised.

K2 Rocks \m/

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

More
11 years 2 months ago #114902 by Murali Vallath
Replied by Murali Vallath on topic Re: Joomla K2 user extra fields
I am unable to locate the register.php and profile.php files.. they are not in the templates directory

Could you share the exact path?

Thanks

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


Powered by Kunena Forum