rpetitto
Forum Replies Created
-
Forum: Plugins
In reply to: [Democracy Poll] myCRED HookI figured it out. Never defined $user_id. Rookie mistake…
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED Hook@samnajar, glad to hear partial points is working for you. I’m still working on a feature that allows for retrying an activity. Problem becomes is since there isn’t a native option for logging number of attempts, theoretically users can get partial credit infinitely. The best I’ve been able to come up with so far is to award zero pts until they earn 100%, but haven’t been able to combine that with the partial points feature. My test configuration awards partial points on first attept and then 0 until they get 100% whereby they’ll eaen full points…not ideal as they earn more points than the activity is worth.
The only way to counteract this is to subtract their partial point score when they press retry, but since the H5P activities are all embedded, I don’t believe there is a “retry webhook/action” to tap into to make this a reality.
@icc0rz, is there a retry reference or hook I can take advantage of within the plug-in to make this happen?
When I come out with version 0.4, I’ll be sure to post an update.
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookHey there. Yeah that error must be an old one…I just updated the plugin to version .3 and added a couple options. Delete and reinstall to see if they work for you.
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED Hook@samnajar, this is certainly doable by altering the code on lines 71-77 of mycredh5p.php. Let me know exactly how you want the plugin (points for attempt, partial points for number correct, able to retry for full points, etc.) to function and I’ll send you the altered code.
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookStrange…I’ll take a look at the code, but I tested this morning and it seems to be working as expected on my end.
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookI was going to say the same thing as @icc0rz.
icc0rz…does the h5pmod plugin need to be installed?
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookI found the error…had a misplaced php closing tag. Please redownload/install to see if it fixes the issue.
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED Hook@iroller. I’ll take a look. Mind sharing the URL your website for inspiration?
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookMy pleasure, @iroller! It’s been fun learning how to make custom myCRED plugins. Are there other features you’d like the plugin to have?
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED Hook@mobetman2, I just updated the plugin. Added option to award myCRED equal to points earned in the activity!!!
https://github.com/rpetitto/mycred-h5p/
Can you check to see if it works for your site?
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookPhenomenal! Thanks for the revision. I’d love to see if we could even work it so we can assign different point values for different activities OR different point values for different criteria (dynamic points based on total points of activity, points for 100%, negative points for failed activities, etc.)
Thoughts?!
Forum: Plugins
In reply to: [BuddyPress Compliments] Request: Replace “Favorite” ButtonDone and done!
Forum: Plugins
In reply to: [BuddyPress Compliments] Request: Replace “Favorite” ButtonWorked like a charm! Can’t wait for my users to check it out!
Forum: Plugins
In reply to: [BuddyPress Compliments] Request: Replace “Favorite” ButtonYes! This is almost perfect. Last thing (I know I said that last time…):
When I send a compliment from the sidebar widget, it redirects me to the receiver’s profile page. Is there a way to prevent that? I’d prefer to send a compliment from the sidebar and then stay on my current page.
Thanks so much for all your help!
Forum: Plugins
In reply to: [Interactive Content – H5P] H5P myCRED HookJust forked the plugin to include preferences to customize the value awarded per activity!
target=”_blank”>https://github.com/rpetitto/mycred-h5p