Notes
This is the PHP Version of my FWTube Wordress Plugin.
http://codecanyon.net/item/fwtube-forced-to-watch-an-embended-youtube-video/11252303
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.
- Customizable message
- Cross browser
Requirements
– PHP 5.x
– Basic knowledge writing in PHP
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.
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = FWTube: Forced to Watch an Embedded Youtube Video
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/fwtube-forced-to-watch-an-embedded-youtube-video/11456502″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy FWTube: Forced to Watch an Embedded Youtube Video from the The Developer ( wicakhp ) website. Thank you.
Download = FWTube: Forced to Watch an Embedded Youtube Video-[Updated].zip