iamonlythird
Forum Replies Created
-
@gabriel
Should I be able to execute the following in the backend (custom plugin page in wp-admin):
<?php do_shortcode( '[mycred_history number="20"]' ) ?>Thank you, works great.
Btw, the 1.3 update was great!
My apologies, I found the functions just after I posted this. I believe that the reason why it was hard to find in the codex page was because of the multiple terms of points (“Points”, “Balance”, “Credit”).
So I ended up using the following code:
// Points current_user backend <?php echo mycred_get_users_cred( ); ?> // Rank current_user backend <?php echo mycred_get_my_rank(); ?> // Points front-end <?php echo mycred_get_users_cred(get_the_author_meta('ID')); ?> // Rank front-enbd <?php echo mycred_get_users_rank( get_the_author_meta('ID') ); ?>In terms of performance, it is better to use
$GLOBALS['post']->post_authororget_the_author_meta('ID')?Stellar documentation here, something that Cubepoints truly was lacking. Another reason to migrate here.
Just a typographical issue to note. On the mycred_history page, you may want to change instances of “Show current users” to “Show current user’s” which is the accurate grammar.
I will try this code out and report back in the coming days. Millions of thanks Gabriel.
I look forward to this update Gabriel, great choice to do this, it will come handy for many developers.
I see, thank you for informing me of this. Is it possible to make it not “downgrade” users to avoid admins/editors becoming contributors?
Thank you very much for this comprehensive response. I look forward to the next update of myCRED.
Regarding the date format fix, have you considered to make this the standard? Personally I experience it more readable and user friendly.
AMAZING! Allow me a couple of days working on other part of the site for integration until I try this code and see how it works. I will have questions.
Also, this plugin has probably the best support available, great job.
Thank you very much. If it came to the case that the only reasonable way to do this is for it to use the default WordPress roles, then that is absolutely fine. I look forward to hear more about this whenever you find the opportunity too.
I admit that I am a little bit vary about attempting this myself. Gabriel, do you have any plans to code a feature like this yourself for the next update?
Thank you for your time.
This is what I would call helpful. Thank you. Marking this as resolved. I will report back if I experience any problems.
Both if possible. For example, in my own site, I have a few custom capabilities that I have assigned to custom roles that I have created.
Excellent, thank you for the reply. I have a remaining question. I need to use a custom log entry, is that possible? For example, it should log “You edited a post.”