Top Scorer Functionality?
-
Hi, first of all thank you for this great plugin !
however, I have a question.
Is there a functionality of Top Scorer of the quiz for logged-in users?
-
Hi Lionel,
glad you are still enjoying HD Quiz.Unfortunately, there is no leaderboard built into HD Quiz as there is no tracking of an individual’s score.
Please contact me if this is a ‘must have’ for you and we’ll talk about a custom solution.
Hi,
This is our future plan. Right now we are in the beginning phase of our site. Will definitely contact you when we need.
But here’s another issue. When the quiz is completed and we share the results via facebook. No contents are showing right now.
In twitter, it’s working but on facebook, the results are not being shown during sharing.
Here’s the quiz link. Can you have a look please?
It looks like you are using the default Facebook share button, which has only very limited default functionality. Works the exact same as the share buttons created by the Custom Share Buttons with Floating Sidebar plugin you are using.
What you need, is to setup the advanced share button. Instructions can be found here: https://harmonicdesign.ca/hd-quiz-create-a-facebook-app/
This will show you how to setup a Facebook App. Once done, you can go to the HD Quiz options page and enter the Facebook App ID. This will allow the plugin to send custom information, such as quiz results, to Facebook.
Hello,
I followed exactly the same instructions you provided. Now it’s sharing error message while sharing.
Can’t Load URL: The domain of this URL isn’t included in the app’s domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
Here’s the Screenshot of the my Facbook APP
https://pasteboard.co/1K3HiUZN.pngafter settings, I also added APP ID in HD Quiz Options page
Still error.
Hello Lionel,
One thing you need to know is that domains are finicky. https://www.domain.com is a different domain than https://domain.com, which is a different domain than https://domain.com
Looking at your provided screenshot (thanks for providing!), I see that you entered the domain differently in the App Domains and the Site URL.
https://pasteboard.co/1KRjk1k5.png
Please try ensuring that they are identical. Also note that you can place multiple variations of your domain in there as well, so it might be a good idea to place all of the following into the APP DOMAIN section.
educationdiet.com
https://educationdiet.com
https://www.educationdiet.com
https://educationdiet.com
https://educationdiet.com
https://www.educationdiet.comThank you for your reply.
But I couldn’t add more than two APP DOMAINS. I can copy and paste in the field but when I hit the Save Changes button. It reverts back to 2 app domains. Does facebook has a limit to this?
Hmm.. looks like Facebook has changed their policy. I’ll look into a fix and push an update!
Hello Lionel,
I believe I have tracked down the problem. Facebook has changed the way they deal with cross domains which has screwed thing up for a lot of developers!Luckily after a ton of testing, I believe I have found a roundabout solution.
Please try the following and let me know if it works for you.
Edit result.php
and replace line 90 (the facebook button) with the following.
<a href ="https://www.facebook.com/v2.4/dialog/share?app_id=<?php echo $fb; ?>&caption=<?php echo $captionText; ?>&description=<?php echo 'I scored '.$total.'/'.$total_Questions.' or '.$total_Percent.'%. Can you beat me?'; ?>&href=<?php echo $quAddress; ?>&locale=en_US&mobile_iframe=false&name=<?php echo $quTitle; ?>"><img onclick="" style="cursor:pointer" id ="fbShare" src="" alt ="Share your score!"></a>
What this does is replace the Facebook javascript generated URL parameters with my own. This way I can remove the extra junk caused by facebook trying to force unnecessary domain verification.
Hi,
I replaced<a href = "https://www.facebook.com/sharer/sharer.php?u=<?php echo $quAddress;?>&title=<?php echo $quTitle;?>"><img id ="fbShare" src="" target ="_blank" alt ="Share your score!"></a>
with your above code:
<a href ="https://www.facebook.com/v2.4/dialog/share?app_id=<?php echo $fb; ?>&caption=<?php echo $captionText; ?>&description=<?php echo 'I scored '.$total.'/'.$total_Questions.' or '.$total_Percent.'%. Can you beat me?'; ?>&href=<?php echo $quAddress; ?>&locale=en_US&mobile_iframe=false&name=<?php echo $quTitle; ?>"><img onclick="" style="cursor:pointer" id ="fbShare" src="" alt ="Share your score!"></a>
But the same issue, no change. ?? Is there any other solution ?
I believe you replaced the wrong line ??
The correct line would not have had a link surrounding it. I believe you replaced the ‘non app’ version of the sharer.
The correct line to replace is much further down, on line 90.
Should look like this:
<img onclick="shareOnFB();" style="cursor:pointer" id ="fbShare" src="" alt ="Share your score!">
WOW !! Great , finally that worked. But in my updated version of the plugin that was not in line 90. ?? I replaced :
<img onclick="shareOnFB();" style="cursor:pointer" id ="fbShare" src="" alt ="Share your score!">
above code, and it finally worked !!
Great plugin, but however, I have discovered another unusual issue on this plugin when after clicking the finish button. I don’t know if it was developed that way by the Plugin Author but in most of the case, it’s not that standard. I will post in my next Support Topic.
Thank you again ??If they where to add support for myCRED they have leaderboards (Top Scorer), ranks and more:
??
- The topic ‘Top Scorer Functionality?’ is closed to new replies.