- Posts: 38
COMMUNITY FORUM
Adding Joomla users to K2 group
- oorzaak
-
Topic Author
- Offline
- Junior Member
I'm having two issues with adding Joomla users to K2 groups. I read this page of the K2 documentation but I this doesn't help: getk2.org/documentation/tips-a-tricks/201-allowing-users-to-submit-content
First: I have only one K2 user group, it's called Registered. I want new Joomla users to be added automatically to this user group. In Joomla core user administration they may have different user groups but in K2 they may have the same rights. As I think of it now, I could create different groups in K2 and grant them the same rights. However: the main question is: how can I assign a new Joomla user to a K2 group automatically, as I fail do do so until now.
Second: I already have some Joomla users in my administration. I tried to batch assign them to the K2 user group, as described on the documentation page that's mentioned above. This results in an error message:
1136 Column count doesn't match value count at row 1 SQL=INSERT INTO #__k2_users VALUES ('', 1006, 'This email address is being protected from spambots. You need JavaScript enabled to view it.', '', '', '', '', 1, '')
In which I removed the original prefix of my database and changed the e-mail address of the user.
Joomla 3.3.6, K2 2.6.8
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
1. Go to K2 parameters page. There you can set the default K2 user group for new users. Once you do this, after a user registers to your site will be assigned automatically to the specific K2 user group.
2. This has already been fixed for the next release. The commit which fixed that is github.com/joomlaworks/k2/commit/ddc4ca8557a575ee141a0b7af7b9d45537351ef0 .
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
Thanks for your reply.
1.: I already set a group before I created this topic, but it won't work. No group is assigned to new users.
2. I've replaced the code as indicated and this is ok now.
For a moment I hoped that issue 1. would be solved as well after fixing issue 2, so I tried again but this didn't help.
Kind regards, Frits
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
For instance, I set up the Joomla core registration procedure to (a) send a mail to the user asking them to confirm their subscription and (b) to send a mail to a moderator asking them to review the subscription and activate (or refuse) the user. With K2 profiles enabled these mails are not being sent. Is it possible to have these mails with K2?
Kind regards, Frits
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
Lefteris Kavadas wrote: These emails will also be sent even if you have the K2 profiles enabled.
Unfortunately, at present they are not being sent, as a result of enabling K2 profiles.
Kind regards, Frits
Edit: when submitting the subscription form, the resulting on-screen message is different too:
"Your settings are saved"
Frits
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
I think "registration" is the correct name indeed, not "subscription", sorry about that. I refer to the form that is generated by Joomla core on this url:
/index.php?option=com_users&view=registration
With K2 profiles disabled, this registration form generates the mails as described and the procedure of confirmation and review as described.
With K2 profiles enabled:
- the form is extended with K2 profile fields, which is not a big problem but not something I inteded on initial user registration;
- the mails are no longer sent and the procedure is no longer followed.
Hope this makes my topic clear.
Frits
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
Lefteris Kavadas wrote: Is the form submitted when you click the button ? Do you get any message on the next page?
Yes, the form is submitted and I get this message as stated in an earlier post:
"Your settings are saved"
Which is not the message that I get with K2 profiles disabled.
Lefteris Kavadas wrote: Can you see the new user listed in the User Manager in administration?
Yes, a new user is created, this user is not Enabled and also not Activated.
Lefteris Kavadas wrote: What do you mean when you say "procedure is no longer followed"
I mean that the registration procedure stops at this point, when we have a new user that has yet to be enabled and activated. Because no mails are being sent, the user will not confirm his registration, and neither will an admin activate the user.
Kind regards, Frits
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
Lefteris Kavadas wrote: Just tested and it works fine for me. Do you have any other user plugins installed/enabled?
Hi Lefteris,
In a copy of the site (on a sub domain, so it's on the same server) I disabled and later completely removed these extensions:
- MioTransfer (which I used to import users from a source outside Joomla);
- ChronoForums (Forums, not Forms).
Also I disabled the Joomla core user profile fields. These are the extensions of which I would exepect that they have a relation with user management.
Yet I still have the same issue. Then also disabled NoNumber extensions, still the same.
Also I thought of the following: in order to test the mails I created and deleted a user with the same details over and over again. So I thought that maybe somewhere along the line these details were not fully removed, resulting in a user that already exists. However, using other details did not solve it either.
What I did not yet try is rebuilding the site from scratch, installing K2 as the very first extension and then testing before adding each next extension. But that doesn't sound very inviting to me at the moment, I must say.
Maybe there are some other suggestions that I could try first?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
User - Joomla (enabled)
User - K2 (enabled)
User - Profile (disabled) / Joomla core user profile fields
User - Contact Creator (disabled) / I do not know this plugin but it's disabled
I think that I understand what you mean, but so far I cannot find which plugin would be doing this.
Frits
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- oorzaak
-
Topic Author
- Offline
- Junior Member
- Posts: 38
No, though I did make some overrides on other views and in the process I copied all template files to my override location. I removed the files that I did not override but this makes no difference.Lefteris Kavadas wrote: Are you using a template override for the registration form?
Link to the (development) location of the registration page: opt02.oorzaak-develop.nl/login?view=registration
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.