0,00 USD

No products in the cart.

Friday, March 5, 2021
0,00 USD

No products in the cart.

How to Award a MyCred Badge for Clicking on a Link

Home » WordPress and Blogging » WordPress Tutorials » Plugins » Badges Points and Gamification » How to Award a MyCred Badge for Clicking on a Link
0
(0)

One thing I’ve been doing recently is playing around with trivia and quiz plugins. One thing I wanted to achieve was to award a badge on completion of a quiz. What follows is what I found out about how to award a MyCred badge for clicking on a link.

There are several options for awarding badges in WordPress. Foremost among these are MyCred and BadgeOS. I was using MyCred for fun as it integrates with the comment system I’m using. Unfortunately, it doesn’t have integration with most trivia quiz plugins, and I don’t need LearnDash (though I wish I did!)

I couldn’t easily offer a badge on completion of a quiz, so I wanted to place a link that would reward a badge if clicked on successful completion of a quiz.

There’s an option for that right in MyCred’s badges addon, but if you select it, anoter form field opens up below.

It opens up with no explanation of what to put there. But if you put a link in it doesn’t work. Additionally, there’s no explanation in MyCred’s Badges documentation about link clicks for badges. I posted it to the MyCred forums but figured it out before I got an answer. What this space wants is an ID.

First, go to your MyCred Badges panel and add a new badge. Here’s what you’ll see (minus my additions):

How to award a mycred badge for clicking on a link

Choose your points type (mine here are “trivia beans”), award 1 time, and “link click.” That space below link click? It wants a unique ID that you set in your mycred_link shortcode. You can add an image for your badge and a default image to show if it hasn’t been earned (just to say “nyah nyah nyah” to people who haven’t earned it yet. Because they want your trivia badge so bad.) If you want to also give them points, you can do so in the “rewards” field.

Wherever you want them to click this link, you can put the mycred_link shortcode. If you want to award a badge for it, you need to add the ID field as in the example below (id=”5678″) This ID is what you’re putting in your badge area to tell it to award the badge when the link is clicked.

Here’s an example of a shortcode I used in this way:

[mycred_link amount=0 ctype="trivia_beans" id="5678" href="https://www.myfakesiteurl.com/badge-awarded/" target="_blank"]click here to get your badge.[/mycred_link]

Hope this helped and saved you the hours of frustration that I had figuring this out.

How many hot cups of coffee does this post or page deserve?

Click on an icon to rate it.

Average rating: 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Care to share?

We are sorry that you found this post to be like a weak cup of decaf.

Let us improve this post!

Tell us how we can improve this post?

Cheryl
Cherylhttps://www.caffeinejournal.com
Cheryl is a former Occupational Therapist and WordPress enthusiast who became a writer in some parallel universe and occasionally, but infrequently, publishes things in this one. She writes two blogs (or is it three) which she won't quit because she knows that blogs, in her case, are like a hydra and if she cuts one off two more will take its place. When she's not doing that, she enjoys hiking, cycling, kayaking (formerly fast, now ebike), messing around with Adobe illustrator, making assorted things, meditating (though she wouldn't call that "like," and reading. She normally doesn't speak about herself in the third person, but she sometimes uses "we" in the royal sense while writing this blog. She lives in Poulsbo, WA with her spouse, her youngest adult daughter, a very old mutt, and a Siamese cat.

4 COMMENTS

Subscribe
Notify of
guest
4 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

You may also be interested in:

Adding Google Analytics to WordPress

Zip has installed an SEO plugin. So he probably wants to be able to find out how many visitors are actually coming to his website and what pages they are viewing. In this post, he'll install Google Analytics using a plugin so he can start viewing analytics data for his new website.

How to Use Yoast to Configure Your Post for SEO

Zip's added the Yoast SEO plugin to his blog. Let's look at how he can optimize a post (or page) for search engine optimization using the Yoast plugin as well as some things to keep in mind when using this helpful plugin.

Sloth Installs an SEO Plugin (Why You Should Use an SEO Plugin and How to Configure Yoast SEO)

Zip has completed basic design work on his blog. Next, he's going to move on to Search Engine Optimization. In this post, we briefly look at some of the plugins available to help with SEO, and install and configure the Yoast SEO plugin.
Share via
Get Caffeinated!
Coffee Image for Email Subscribe

OK, we can't send you caffeine--or even coffee-- but we can send you new content. Subscribe to our email list and get new posts delivered to your inbox. If you don't specify preferences, you'll be signed up for a weekly digest of new posts in all categories, as well as occasional promotional emails and surveys. However, if you would like to customize the frequency and type of content you receive, you can sign up here.

Liked it? Follow us on social media!
Thanks for sharing!
If you found this post worth sharing, consider following us on social media (if you don't already).
And if you have something you would like to share, consider submitting a post. Find out more here.
Send this to a friend