By Annie Maurice on Thursday, 14 March 2019
Posted in General Issues
Likes 0
Views 777
Votes 0
HI,

in my site, I have plan named 'Manifestez Votre Plein Potentiel'. With this plan I have 'apps' (with same name) who apply (add) 3 new groups on user.
I can see it in joomla User.
I use P8pbb to make synchronisation.
So I would like to know wich event is trigger when you apply changement on user.
I think this will help p8pbb team to debug that.

thanks
Hey Annie,

It seems you are using PayPlans JUsertype app for usergroup assignment to user.
onPayplansSubscriptionAfterSave trigger is used to change the usergroup foo user's.

Let me know if you have any query.
·
Thursday, 14 March 2019 12:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Do you use native JUser::save() method when you update user groups?
·
Friday, 15 March 2019 05:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Note I used in backend in page of user the assign plan button to assign the plan.
Note 2: When I go in user (joomla) and I save the p8pbb catch the event and do the job of synchronize user.
·
Friday, 15 March 2019 07:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Annie,

We are using below mentioned function to add the usergroup.

JUserHelper::addUserToGroup($userId, $group);


Let me know if you have any query.
·
Friday, 15 March 2019 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Must respect a certain order in plugin (like payplan before p8pbb or inverse)?
·
Saturday, 16 March 2019 06:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Annie,

Sorry for the delayed response due to weekend.

I didn't get your point correctly. Can you please explain me what exactly you want to achieve, so i'll be able to assist you.

Update us.
·
Monday, 18 March 2019 11:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I will re explain.

I have plan with Apps (JUserType). I use this apps to add many ACL user group when the plan is activated.
With that, the user (with active plan) will have many new group in Joomla.
Because I have p8pbb with plugin who react on event to synchronize user group joomla with user group phpbb, the user will have new group in phpbb.

So When I do that with only 1 group, this work well (your apps and p8p plugin) (at the end, joomla user and phpbb user have new group).
Bug When I have more then 1 groups, the others groups are not considered.
For me, that means, the user data sent in event to others plugins have not latest information of user.
Why, because, your apps work well (this mean all groups are added in joomla side), but the event who contains user data seam not have all information about groups.
into this context, the first group from apps (first save into JuserType apps) send data user to p8p plugin and p8p plugin add it into phpbb.
But others add group (this mean other event from save user), sent data user to p8p but the information not contain other groups.

Do you understand what I mean?

For the moment, my work arround of that, is to create many apps (JUserType) by each group I need to add. It is little bit heavy.
·
Sunday, 24 March 2019 01:55
·
0 Likes
·
0 Votes
·
0 Comments
·
After work with P8pbb plugin, we found the bug and new version of p8pbb fix the problem.

Very thanks for your support.
·
Monday, 25 March 2019 04:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Annie,

Sorry for the delayed response due to weekend.

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Monday, 25 March 2019 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post