FWTube: Forced to Watch an Embedded Youtube Video (Miscellaneous)

FWTube: Forced to Watch an Embedded Youtube Video (Miscellaneous)

Notes

This is the PHP Version of my FWTube Wordress Plugin.

Overview

Easily hide partial or all of your premium content from your users until they finished watching an embedded Youtube video.

Features

  • Suitable for: landing page with free giveaway, learning site, site with freemium content, and much more…
  • Your premium content will be hidden until user  finished watching your Youtube Video
  • Hide partial or all of your content in any page or post
  • Hide anything you want from your post or page
  • Your content won’t show in Source View
  • Content will stay hidden if user deactivate javascript or cookie
  • Set your video to autoplay
  • Remove the Information bar or Control bar from the Youtube Player
  • You can change the message text and format to your likes
  • Easy to setup, less than 5 minutes to setup.
  • Just add 3 lines of code.
  • Costumizable message

Requirements

Wordpress 4.3 or newer (older versions may work but they have not been tested).

Limitations

  • FW-Tube may not work together with cache system (plugin, CDN, cloudflare, etc).

Inserting FWTube To Your Code

<em><?php include "inc/fwtube.php"; ?>
<html>
 <head>
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  <script type="text/javascript" src="assets/js/jquery.cookie.js"></script>
 </head>
 <body>
  Your regular content

  <?php $FWTUBE['id'] = "zmr2I8caF0c";  // YOU CAN OVERRIDE THE YOUTUBE ID HERE ?>

  <strong><?php if (fwtube_is_unlocked()){ // START HIDDEN CONTENT ?></strong>

   <p>Your premium content</p>

  <strong><?php } ///////////////////////////// STOP HIDDEN CONTENT ?></strong>

  Your regular content
 </body>
</html>
</em>

Looking for something else?

I have created a few items in CodeCanyon that you may want to take a look:



If you have an idea for a website/plugin or you want something to be made, don’t hesitate to contact me.


 

Flag Counter

CodeCanyon new PHP Scripts items

Related Posts