Support Forum
1) How can I get MyCred points to show up underneath a user's profile information on the forums? (In the spUserSection area). I'm using the reboot theme, so this should already be an implemented feature (I even double checked my theme files and it's there)
I've poured all through my options on the backend to see if maybe there was a toggle somewhere, but I'm just not seeing it. And, yes, I do have both the SP and WP MyCred plugins enabled.
2) I would like to suggest having MyCred points also displayed in the control bar on SP default themes (reboot, stacked, etc).
Kind of like this: http://prntscr.com/c1y02i
3) If I wanted to add MyCred point balances to other parts of my website, how would I go about doing this? In particular, I have a widget on my home page for logging in and out, and got it talking with SP so that the avatar syncs up, and clicking profile goes to their SP profile rather than the WP profile.
I would like to be able to have points also displayed on this widget when a user is logged in. Bonus points if I can also get unread message count to show up in this widget as well.
4) My community hosts and maintains Minecraft servers. We have a developer who knows how to write Minecraft plugins, which add additional functionality to our servers.
One of the features we are trying to implement across our entire website/community/network is a universal point system (MyCred)
Basically, we are going to have a shop on our Minecraft servers where players can exchange points for items or other in-game features.
We noticed that MyCred does indeed have an API for calling upon point balanced of users, so we understand how to implement that part.
The part that we are still trying to figure out, however, is how to actually sync up a user's Minecraft username/profile to their website's profile/point balance.
There would be no way for our custom Minecraft plugin to know which user's MyCred balance to pull from, since usernames used on the website and on Minecraft are completely different.
A user might have a username of Bob on the website, which has the points attached to it, but their Minecraft username might be John_123
We thought about just letting our players do something simple like running an in-game command, such as /register Bob
However, the problem with that is it leaves it open to malicious intent - nothing would prevent a completely different user from also typing /register Bob to sync their Minecraft profile to a random user's point balance.
So, what we need is some sort of system that ensures users only sync their own MyCred balances to their MC profiles. We thought about using a secret key of some sort that the user generates on their SP profile... but I don't see any sort of SP plugin or MyCred feature that does this. There is, however, something called a FeedKey that is on everyone's SP profile. Could that work?
Maybe we are missing something completely obvious, though.
Whatever method we use, though, it needs to be both secure AND simple. If users are required to do more than 2 or 3 steps to sync their profiles to their MC username, then chances are most people wont even bother, and therefore we wont get as much usage out of the point system as we would hope.
First up I see that while the myCred points are displayed in the topic view user section (i.e., beside a post) on a mobile display they are actually missing from the Reboot Desktop topic view template and this will be rectified in our next update. If you wanted to add that, however, the default code would be:
if (function_exists('sp_PostIndexMyCred')) sp_PostIndexMyCred('tagClass=spPostUserMyCred spCenter', __sp('MyCred '), __sp('MyCred'));
and the recommended location would be just after the equivalent template tag to display CubePoints - the display function sp_PostIndexCubePoints().
If you want to display MyCred points elsewhere then I believe the MyCred WP plugin does come with some options but we also supply a simple tag that can be used elsewhere in the forum pages - which is a function named sp_MyCred() 0 and full details on it's use is in our codex at - https://simple-press.com/docum.....tegration/
Not sure why you would be contemplating trying to use a user name to work with a user. The correct way is to use their user ID which will be common on any table that holds user data including, if I recall correctly, the myCred data.
YELLOW
SWORDFISH
|
If you wanted to add that, however, the default code would be:
Awesome. Worked like a charm.
Not sure why you would be contemplating trying to use a user name to work with a user. The correct way is to use their user ID which will be common on any table that holds user data including, if I recall correctly, the myCred data.
Yea, I saw that earlier when digging around with MyCred. It does show ID:# for each user.
However, even if we use that (and we really should since it's a static value), we still have to figure out how to associate the MyCred ID with a Minecraft UUID in a secure and simple manner.
I was thinking of perhaps having a randomized alphanumeric secret key generated somewhere on the user's SP profile, which they can then use to sync their Minecraft UUID to, so that our Minecraft plugin (this isn't a SP or WP plugin, it's completely different) knows whose WP profile to pull points from.
This is probably outside the scope of SP, but since SP is acting as a user's main profile area, I figured I would throw this out there to see if there's any decent solutions that would be easy to use by our players and users.
Yellow Swordfish said
Afraid I am not a gamer but is there a reason not to collect your users game ID in the profile?> >
It's funny how you can come up with a solution to something just by talking it out and putting ideas on 'paper'
Initially, my concern was that, while yes, we could just let our users input their Minecraft username in a custom field and collect that, but, that would leave it open to anyone putting in someone else's username and syncing their profile to someone else's Minecraft user.
But then I realized that we COULD do that, and by performing a two-way check, it would be secure.
Here's the solution:
Step 1: A user logs into the forums. They visit their profile and inputs their Minecraft username into a custom field. (Is there a way to retrieve information from a custom field remotely?)
Step 2: The user logs into our Minecraft server using the account which holds the username that they placed into that custom field.
Step 3: The user types a command in the in-game chat. The command must include their forum/website username. For example: /sync Tim_Burton
At this point, our Minecraft plugin does a few things. First of all, it takes note of the UUID that the command was ran from. It also takes note of the Minecraft username that is currently associated with that UUID.
Then, it checks the custom field attached to the username that was typed in the command. If the username in the custom field matches the username attached to the UUID that ran the command, then it syncs that UUID to the associated myCred ID.
This of course would depend on a few things, like actually being able to retrieve the myCred ID remotely, as well as being able to retrieve SP custom field info remotely. If so, then this should work pretty well, will be secure, and will be easy to use by our members.
1 Guest(s)