- Messages
- 20
- Reaction score
- 0
- Points
- 26
Pahingi naman po ng opinion nyo sa tamang implementation ng gamification system.
Drupal 8 (CMS) po gamit ko tapos nag create ako ng custom badge entity. Sa badge entity meron nang badge title, thumbnail, threshold at groupings. Tapos sa user entity, nag create ako ng activity at user badge fields. Ngayon yung problema ko na lang yung pag a-assign ng badge sa user.
Sinubukan ko yung badge at user badge contributed modules kaso medyo buggy pa kaya nag create na lang ako ng custom badge entity.
Ganito po yung sample contribution by user activities:
[thead]
[/thead]
[tbody]
[/tbody]
Ganito po yung sample levels for user badge:
[thead]
[/thead]
[tbody]
[/tbody]
Naka gawa na ako ng class para sa pag ha-handle ng addBadge at removeBadge sa user field, kaya lang hindi ko alam kung tama pinag gagawa ko kasi first ko lang din gumawa ng ganitong feature.
Pano po kaya tamang approach sa pag add, remove at check ng badge kung added na sa user?
Halimbawa, yung booster badge dapat isang level lang ma add sa user para iwas duplicates.
Eg. Kung naka pag gain na sya ng Booster Level 2 badge, dapat ma delete na yung previous Booster Level 1 badge.
Yung pag a-add ng badge sa threshold ko lang din binabase. May example add badge akong inilagay sa
Di pa po pala working ng maayos yung sa
kasi multiple badges yung na dadagdag/tatanggal.
Ito po yung nagawa ko sa ngayon.
https://bitbucket.org/madelyncruz/xxx_gamification/src/master/
Patulong po please baka may mai-recommend kayo na best-practice or gamification framework na pwedeng magamit.
Thank you in advance guys!
Drupal 8 (CMS) po gamit ko tapos nag create ako ng custom badge entity. Sa badge entity meron nang badge title, thumbnail, threshold at groupings. Tapos sa user entity, nag create ako ng activity at user badge fields. Ngayon yung problema ko na lang yung pag a-assign ng badge sa user.
Sinubukan ko yung badge at user badge contributed modules kaso medyo buggy pa kaya nag create na lang ako ng custom badge entity.
Ganito po yung sample contribution by user activities:
Contribution | Activity Badge | Level 1 | Level 2 | Level 3 |
---|---|---|---|---|
Create events | Booster | 10 | 25 | 50 |
Post a blog | Thinker | 5 | 15 | 45 |
[thead]
[/thead]
[tbody]
[/tbody]
Ganito po yung sample levels for user badge:
User Badge | Threshold |
---|---|
Enthusiast | 2 level 1 activity badges |
Supporter | 3 level 2 activity badges or 2 level 3 activity badges |
[thead]
[/thead]
[tbody]
[/tbody]
Naka gawa na ako ng class para sa pag ha-handle ng addBadge at removeBadge sa user field, kaya lang hindi ko alam kung tama pinag gagawa ko kasi first ko lang din gumawa ng ganitong feature.
Pano po kaya tamang approach sa pag add, remove at check ng badge kung added na sa user?
Halimbawa, yung booster badge dapat isang level lang ma add sa user para iwas duplicates.
Eg. Kung naka pag gain na sya ng Booster Level 2 badge, dapat ma delete na yung previous Booster Level 1 badge.
Yung pag a-add ng badge sa threshold ko lang din binabase. May example add badge akong inilagay sa
Code:
xxx_gamification/src/master/src/EventSubscriber/FlaggingSubscriber.php
Di pa po pala working ng maayos yung sa
Code:
xxx_gamification/src/master/src/EventSubscriber/FlaggingSubscriber.php
Ito po yung nagawa ko sa ngayon.
https://bitbucket.org/madelyncruz/xxx_gamification/src/master/
Patulong po please baka may mai-recommend kayo na best-practice or gamification framework na pwedeng magamit.
Thank you in advance guys!
Last edited: