User Credits - Global Variable?

Hey guys,

Long story short I’m planning to create some kind of community website with profiles where a user can have credits which could be used to promote stuff.

My question is, can I assign a variable to a user which can be changed based on different factors? Take the following scenario for example:

User1 has 10 credits. Someone accesses their profile and they get 5 credits. User1 clicks “Promote profile” and 5 credits are substracted from their account.

1 Like

Yes, you can create a custom field in the user file. Then you can use the Kirby API to update this field.

1 Like

Ah thanks, I thought it’s some special science behind it :slight_smile: Thanks for so much help with my noobie questions :slight_smile: