• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Is it possible to create an integration for mycred?

Foliovision › Forums › FV Player › Requests and Feedback › Is it possible to create an integration for mycred?

  • Amir Emami 9 years, 2 months ago

    Hi
    I like your plugin a lot and I bought your license. I want to know can you make an integration for mycred which let users gain points by watching videos?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Lucia 9 years ago

    Hi amiremami!

    We’re glad you like out player. We will look at it and discuss with our team.

    Thanks,

    Lucia

    Amir Emami 9 years ago

    Hi Lucia
    I want to know any news came out about the mycred extension?

    Thanks

    Amir Emami 9 years ago

    any news?

    Martin 9 years ago

    Hello amiremami.

    sorry about the delay.

    You can script around FV Flowplayer to have an Ajax call running at the end of each video. does myCRED provide any hooks which could be initiated using Ajax? If no, then it would also require some extra PHP code. Such code can be seen here: https://gist.github.com/gabrielmerovingi/5536bdf423ca6c5c79e3

    Do you have access to myCRED support to ask them how to trigger their hooks using JavaScript in some good way?

    Thanks,
    Martin

    Amir Emami 9 years ago

    Hi Martin
    Really thanks for your reply and help. I contacted Mycred founder, Gabriel and explained the issue. Here is Gabriel’s answer:

    Yeah you probably would be best of creating a custom hook that handles that ajax call and acts upon it.

    Here is a skeleton hook I wrote for this that could get you started.
    You would need to build the AJAX call handler and update the hook ajax handler to intercept these calls and act.

    We would need a unique identifier for each video that a user watches and I am not sure what kind of ids FV uses. YouTube uses alphanumeric ids while Vimeo uses pure numbers. I have added in some inline documentation in the hook to point out where you need to add code. It’s basically the run() and ajax_handler() methods that needs to be completed.

    http://pastebin.com/KdifADuv

    Thank you so much

    Martin 9 years ago

    Hello amiremami.

    thank you for the input from myCRED developers.

    I can see how this could work and it’s not a huge job. Flowplayer has a hook to detect video end, but it means user can just skip to the end of the video. But there is a way of tracking that, we done that for our improved Google Analytics tracking.

    I can see how we can improve our documentation for use face like this, but I’m not sure how we can add an feature like this to our plugin since it also requires custom code in myCRED, we will have a look in our team.

    Thanks,
    Martin

    Amir Emami 9 years ago

    Really appreciate your support and help Martin.

    I want only add one thing:

    “but I’m not sure how we can add an feature like this to our plugin since it also requires custom code in myCRED”

    Usually authors make the mycred compatibility feature as a separate plugin. (exactly same as your fv player pro which is separate from the main, I mean separate files)

    And anyone need mycred compatibility can download from mycred site. For example here:
    http://mycred.me/about/supported-plugins/#custom-builds

    Disclaimer: I am not related to mycred in any way.

    Thanks again

    Martin 9 years ago

    Hello amiremami,

    here’s a sample code for FV Player which detects if the user really watched the video to the end (seeking to the end won’t suffice) and then sends the post ID using Ajax: https://gist.github.com/foliovision/2c266598333ecbd1f151

    If you know PHP and JavaScript it should be possible for you to link it all together

    Thanks,
    Martin

Viewing 8 replies - 1 through 8 (of 8 total)
Reply To: Is it possible to create an integration for mycred?



Please Sign in or Register to upload files.

Related Posts

  1. mycred integration is possible

    mycred integration is possible

  2. YouTube Playlist Integration and Other New Features

  3. Just Purchased: Your license key is incorrect. Please check your license.

    Just Purchased: Your license key is incorrect. Please check your license.

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!