Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Help sa gamification system

Status
Not open for further replies.

mckwebdesign

Novice
Advanced Member
Messages
20
Reaction score
0
Points
26
:help: 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:

ContributionActivity BadgeLevel 1Level 2Level 3
Create eventsBooster102550
Post a blogThinker51545

[thead]

[/thead]

[tbody]

[/tbody]

Ganito po yung sample levels for user badge:

User BadgeThreshold
Enthusiast2 level 1 activity badges
Supporter3 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
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!
 
Last edited:
Status
Not open for further replies.
Back
Top Bottom