K
K
koscsshtml2021-02-03 17:12:40
MODX
koscsshtml, 2021-02-03 17:12:40

Implementing a scoring system on Modx?

Are there any solutions for Modx?
The bottom line is that there is a user, for certain actions on the site he receives points. Points are saved in the user's personal account and added up with each new completed task. Or is there a variant of ready-made solutions for other CMS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Zolin, 2021-02-04
@artzolin

On any CMS, this will be self-written functionality. For WordPress, I will tell you what to do update_user_meta()for the “completed task”

A
Arthur Sh, 2021-02-04
@Shev_Art_V

There is no ready-made functionality at your request and cannot be on any CMS or in nature at all, because you described an abstract task that is solved using js and some server-side programming language, for example, if we are talking about modx, php. The sequence is as follows
1. Using js on the page, it catches the desired event
2. Send an Ajax request to the server
3. On the server, you receive and process it with a script.
4. Write data to the database (here you can either create your own table, or write from the modUserProfile object in the extended field, or expand this table)
5. Return the answer that the points have been accrued.
You will need to know some js, some php and some modx API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question