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

Foliovision

Making the web work for you

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 Feedburner Replacement › Bug reports › Is it possible to create an integration for mycred?

  • Amir Emami 5 years 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 5 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 5 years ago

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

    Thanks

    Amir Emami 5 years ago

    any news?

    Martin 5 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 5 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 5 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 5 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 5 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?



Related Posts

  1. YouTube Playlist Integration and Other New Features

  2. 37signals suite review: Is it worth upgrading? First fix the suite integration and syncing guys…

    37signals suite review: Is it worth upgrading? First fix the suite integration and syncing guys…

  3. How to create video playlists

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 © 2021 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. +1 518 412 4600