Title: Top Scorer Functionality?
Last modified: September 1, 2016

---

# Top Scorer Functionality?

 *  Resolved [Prabin](https://wordpress.org/support/users/prabin04/)
 * (@prabin04)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/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?
 * [https://wordpress.org/plugins/hd-quiz/](https://wordpress.org/plugins/hd-quiz/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7479995)
 * 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.
 *  Thread Starter [Prabin](https://wordpress.org/support/users/prabin04/)
 * (@prabin04)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480007)
 * 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?
 * [http://www.educationdiet.com/educate_quiz/geography/](http://www.educationdiet.com/educate_quiz/geography/)
 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480070)
 * 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/](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.
 *  Thread Starter [Prabin](https://wordpress.org/support/users/prabin04/)
 * (@prabin04)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480086)
 * 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**
    [http://pasteboard.co/1K3HiUZN.png](http://pasteboard.co/1K3HiUZN.png)
 * after settings, I also added **APP ID** in **HD Quiz Options page**
 * Still error.
 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480110)
 * Hello Lionel,
 * One thing you need to know is that domains are finicky. [http://www.domain.com](http://www.domain.com)
   is a different domain than [http://domain.com](http://domain.com), which is a
   different domain than [https://domain.com](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.
 * [http://pasteboard.co/1KRjk1k5.png](http://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
    [http://educationdiet.com](http://educationdiet.com) [http://www.educationdiet.com](http://www.educationdiet.com)
   [http://educationdiet.com](http://educationdiet.com) [https://educationdiet.com](https://educationdiet.com)
   [https://www.educationdiet.com](https://www.educationdiet.com)
 *  Thread Starter [Prabin](https://wordpress.org/support/users/prabin04/)
 * (@prabin04)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480128)
 * Thank 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?
 * [http://pasteboard.co/1OG0dzIm.png](http://pasteboard.co/1OG0dzIm.png)
 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480147)
 * Hmm.. looks like Facebook has changed their policy. I’ll look into a fix and 
   push an update!
 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480159)
 * 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.
 *  Thread Starter [Prabin](https://wordpress.org/support/users/prabin04/)
 * (@prabin04)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480162)
 * Hi,
    I replaced
 * `<a href = "http://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 ?
 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480163)
 * 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!">`
 *  Thread Starter [Prabin](https://wordpress.org/support/users/prabin04/)
 * (@prabin04)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480164)
 * 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 🙂
 *  [bigkahunaburger](https://wordpress.org/support/users/bigkahunaburger/)
 * (@bigkahunaburger)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480176)
 * If they where to add support for myCRED they have leaderboards (Top Scorer), 
   ranks and more:
 * [http://mycred.me/](http://mycred.me/)
 * 😉

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Top Scorer Functionality?’ is closed to new replies.

 * ![](https://ps.w.org/hd-quiz/assets/icon-256X256.gif?rev=2936040)
 * [HD Quiz](https://wordpress.org/plugins/hd-quiz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hd-quiz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hd-quiz/)
 * [Active Topics](https://wordpress.org/support/plugin/hd-quiz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hd-quiz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hd-quiz/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [bigkahunaburger](https://wordpress.org/support/users/bigkahunaburger/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/top-scorer-functionality/#post-7480176)
 * Status: resolved