Skip to main content
Topic: Updating user's group (Read 2307 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Updating user's group

I've a question about updating user's group. I'm integrating a shop that's integrated with paypal ipn, that's going to be integrated into ElkArte (makes sense). Are there any precautions, when updating the group field in database? This would be equivalent to - payment validated, give this user a Premium status. For obvious reasons I wouldn't force to change it if a user has already a "higher rank".

Will this require only changing id_group from elkarte_members table? Or should I add it to additional_groups?

PS. I'm still finishing up the shop, so this isn't urgent yet.


Re: Updating user's group

Reply #2

Welp, he does have a point, that topic is from 3 years ago O:-)
~ SimplePortal Support Team ~

Re: Updating user's group

Reply #3

This seems to be what I needed and it looks like all logical issues are included in that as well :D Thanks!

Re: Updating user's group

Reply #4

Hmmm, I got to the add members to group phase, however there is some weird paypal behaviour. If I require once the SSI.php in my ipn.php, the paypal ipn won't get verified and won't receive the handshake.

Re: Updating user's group

Reply #5

Well... it's difficult to guess.
Elk itself uses SSI for subscriptions.php, so it should work.
It may be almost any thing, so some more context would be useful, for example what code are you using for your IPN?
Bugs creator.
Features destroyer.
Template killer.

Re: Updating user's group

Reply #6

Ehhhhh, next time please remind me to use ssi_shutdown() at the end. Everything gets verified now :D

 

Re: Updating user's group

Reply #7

lol
Bugs creator.
Features destroyer.
Template killer.