Youtube API V3 CMS Pro A Youtube API V3 CMS Pro by Hostrings

Table of Content

Introduction

Thank you for purchasing the app. If you have any questions that are beyond the scope of this help file, please feel free to message me via my user page contact form here. Thanks so much!

Useful Links

Customer Portal

Follow us on Codecanyon

Follow us on Twitter

Like our page on Facebook

Support

If you stumble upon an issue or if you need help you may contact via my Codecanyon Profile and I would be happy to help you.

Installation

This script is powered by Youtube's Data API version 3.0. So before installation, you will need to register with Google for an API key.

Google API Key

  1. Login with your Google Account at https://console.developers.google.com
  2. Follow images below

Setup

  1. Open includes > Config.php and fill in all the empty fields. The most important fields are: key and url. and open themes > default > index.php for the featured youtube video url, The rest of the fields are optional but make sure to fill them for better experience.
  2. Once all of that is done, save it and that is it.

Configuration

Set Your website URL, Name,

Open includes > Config.php file and made changes
"url" => "http://ytapipro.hostrings.com",
"url_aliss" => "http://ytapipro.hostrings.com",
'allowd_host' => array('http://ytapipro.hostrings.com'),

Set Logo

"site_name" => "Logo",
"msite_name" => "Mobile Logo",

Set Your Metadata and Google Verify for Homepage

"title" => "Write your website title for SEO",
"description" => "Write your website description for SEO",
"keyword" => "Write your website keyword for SEO",

Login Note

"loginnote" => "By uploading , you agree to be bound by all Pakistan's applicable laws and regulations. Any user promoting videos containing Religious Hatred contents will be banned and reported to Info@hostrings.com",

Google analytic, Webmaster

"Gverify" => "Add here Google Webmaster verification Code",
"ga" => "Add here Google Analytics ID",

Youtube API

"key" => "YourGoogleAPIKey",

Set Your Socail Media Pages

Open includes > Config.php file and made changes
"fbpage" => "https://www.facebook.com/hostrings", //Facebook Page 
"tw" => "https://www.twitter.com/hostrings", //Twitter Page 
"gp" => "https://plus.google.com/+hostrings",   //Google Plus Page

SET Menu Trending

Open includes > Config.php file and made changes
"Channel1" => "UCvmcmZrQkM6N9wYvNPjyV0w",
"Menulabel1" => "Pakistani Music",
"Channel2" => "UCX52tYZiEh_mHoFja3Veciw",
"Menulabel2" => "Indian Music",
"Channel3" => "UCOsyDsO5tIt-VZ1iwjdQmew",
"Menulabel3" => "Punjabi Music",
"Channel4" => "UCGkk5lH1ODiE1ep4P533SJQ",
"Menulabel4" => "Bollywood News",
"Channel5" => "UCWTTlJ4iR02TN4lqN_gyDLA",
"Menulabel5" => "ARY Digital",
"Channel6" => "UCEeEQxm6qc_qaTE7qTV5aLQ",
"Menulabel6" => "HUM TV",

Trending Home Title

Open includes > Config.php file and made changes
"TrendingHometitle" => "Trending ( Pakistan )",

Featured Home Page Video

 "featuredid" => "c19t5ORk8Xo", // Insert YOUR Featured Youtube Video ID here
    "featuredtitle" => "'Baaton Ko Teri' FULL VIDEO Song", // Insert YOUR Featured Youtube Video Title here
    "featuredposted" => "Posted 4 hours ago", // Insert YOUR Featured Youtube Video Posted here
   "featuredduration" => "04:06", // Insert YOUR Featured Youtube Video Duration here

featured 3 videos

  "featured3" => "UCq-Fj5jknLsUf-MWSy4_brA", // featured 3 videos
    "featured3" => "UCq-Fj5jknLsUf-MWSy4_brA", // featured 3 videos

1st Category Home Page Video

   "onecatename" => "Trailers", // Insert YOUR 1st Category Name
    "onecatesearch" => "UCYCEK7i8Uq-XtFtWolofxFg", // Insert YOUR Search term for More in category One
    "onecatevideos" => "UCYCEK7i8Uq-XtFtWolofxFg", // Insert YOUR third Category Name

2nd Category Home Page Video

  "twocatename" => "Islam", // Insert YOUR 2nd Category Name
    "twocatesearch" => "UCJ37YA_iAzyMwWekDZmgE1g", // Insert YOUR Search term for More in category One
    "twocatevideos" => "UCJ37YA_iAzyMwWekDZmgE1g", // Insert YOUR third Category Name

3rd Category Home Page Video

   "thrcatename" => "Technology", // Insert YOUR third Category Name
    "thrcatesearch" => "UC6jsCi_HusocFK0SVRPbbiQ", // Insert YOUR Search term for More in category One
    "thrcatevideos" => "UC6jsCi_HusocFK0SVRPbbiQ", // Insert YOUR third Category Video Search term Name

4th Category Home Page Video

   "fthcatename" => "Zaid AliT", // Insert YOUR fourth Category Name
    "fthcatesearch" => "UCVBXum_ntfgHgHCOYtGOmEw", // Insert YOUR Search term for More in category One
    "fthcatevideos" => "UCVBXum_ntfgHgHCOYtGOmEw", // Insert YOUR third Category Name

Most Viewed Category Home Page Video

  "popularvid" => "Most Viewed", // Insert YOUR Most viewed Category Name
    "Homepopularvideos" => "Pakistan+News", // Insert YOUR third Category Name

Advertisement

Open includes > Config.php file and made changes

You can advertisments by simply adding your adcodes in the following fields. Each of the fields below is associated with a specific size.

"ad728" =>'Your Adcode',
"ad468" => 'Your Adcode',
"ad300" => 'Your Adcode',

ADDthis Widget

"addthis" => "http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5293abdb1da808c6",

Your Footer Copyright

Open includes > Config.php file and made changes
"footercopyright" => "2014-2015, All Rights Reserved",
"footercopyright2" => "By using this site you are agreeing to our terms of service",

Comments

The default commenting system is Facebook because it doesn't require any extra info, though it is highly recommended to add your APP ID to track your users. If you want to enable Disqus then simply add your Disqus username to the field below to enable it.

"comment" => array( // Facebook is default
    "facebook" => "YOURAPPID", // Insert YOUR APP ID here
    "disqus" => "YOURDISQUSUSERNAME" // Insert your disqus username here
),	

Registration and Login in TVile Pro

Open auth > login.php file and made changes
$client_id = '3223457504882-s9hpsok0e53quvgk1kmbmn91u0aqpqre.apps.googleusercontent.com';
 $client_secret = 'jAem3230JeKJnrDGVe2gxp-f';
 $redirect_uri = 'http://ytapipro.hostrings.com/auth/login.php';
header('Location: http://ytapipro.hostrings.com/'); 

Upload Video in TVile Pro

Open auth > upload_video.html file and made changes
data-clientid="329887504882-s9hpsok0e53quvgk1kmbmn91u0aqpqre.apps.googleusercontent.com"

Download Video From Youtube

Open download folder > config.php file and made changes
$SCRIPT_URL = 'http://ytapipro.hostrings.com/download/'; // need to end with /"

Sitemap Generator

Open Generate URL http://www.yourdomain.com/generate
Just change all url and generate sitemap