WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Pro-Quiz
Facebook - Social Sharing (5 posts)

  1. Oaksey
    Member
    Posted 1 year ago #

    Hi

    I need to integrate a social share function to the quiz results page, so that a user would be able to post the results onto their facebook wall?

    I would like some custom text and the percentage/score that they have achieved after taking the quiz?

    Is this possible or can anyone point me in the right direction?

    Cheers - Oaksey

    http://wordpress.org/extend/plugins/wp-pro-quiz/

  2. lewiscornwell
    Member
    Posted 1 year ago #

    I would also like this functionality

  3. Oaksey
    Member
    Posted 1 year ago #

    Hey Lewiscornwell

    I have come up with a quick work-around for the social share for posting your score to Facebook if your interested? Until there is a better work around/fix...

    I turned on the 'Activate graduation' in the quiz results text (which shows a different message depending on your score range) and I then inserted a image which says on it 'share to Facebook' then on this image I inserted a hyperlink to the Facebook sharer URL which I altered to my own message and website:

    https://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://WWW.YOURWEBSITE.COM/QUIZ/ADDRESS/&p[images][0]=http://WWW.YOURWEBSITE.COM/IMAGES/FACEBOOKSHARE.JPG&p[title]=I+just+scored+between+0%+and+20%+in+the+quiz!+Try+the+quiz+out+for+yourself

    I then repeated the image and link for each of my 5 graduations, 0%-20%, 20%-40%, 40% - 60%, 60% - 80% and 80% - 100%

    Hope this helps a little!

    I would assume you could also adopt the same process for posting to twitter if you find out the twitter share URL...

  4. snaptin
    Member
    Posted 1 year ago #

    It's pretty straight-forward to alter the results message (if you must edit the source, you'll find it in lib/view/WpProQuiz_View_FrontQuiz.php) so adding a Facebook share button is not a problem. However, getting hold of the Percentage (or score) variable in order to share *is* more tricky.. Anyone had any experience making the quiz variables accessible?

  5. Rich
    Member
    Posted 5 months ago #

    I too would like this functionality. Anyone got any ideas?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.