A
A
Alexey Usov2016-03-29 19:16:15
CMS
Alexey Usov, 2016-03-29 19:16:15

How to implement a progress bar linked to a user?

I have a project on "Research of the Samara region". The project is on ModX. I have record blocks, they contain information about a specific place. I need to implement learning progress. Let's just say that there is a percentage indicator (progress bar) in the header. The user, having entered a certain record, clicks on the "explore" button and the progress bar is replenished by a certain value. Synchronization of the study must be with each user being authorized.
I saw this technology on one of the sites - tyler.com (not advertising)
1. 9c9ac963b4fc45af833e6f31a9d10497.JPG
We see that the user is authorized.
There is an indicator.
And there are blocks to mark.
2. 4226142818084f84ae6605b7beff7335.JPG
Press the button, wait.
3.10d49be0c33741e99e2a82818f003416.JPG
The mark appeared, the slider moved. The result is saved. We will have these 4% on all pages and for this particular user.
Here is the question. How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DuD, 2016-03-29
@alekseenka

Add the user id to this progress bar's calculations.
Speaking of primitives. then you can create some kind of table with the fields user_id,% id of the investigated object%.
And calculate on it how much a particular user has explored.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question