“YouTube CMS” Documentation by “WPsup” v1.0


“YouTube CMS”

Created: 4/7/2015
By: George Mirza
Email: admin@wpsup.com

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


Table of Contents

  1. Install
  2. Usage
  3. Setup CronJob
  4. Ads Setup
  5. Getting YouTube API KEY

A) Install - top

To Install YouTube CMS you should first of all upload script files to your host.
Then you have to create a new Database with user that has all permissions.
After you Upload the files and create the database then you can run the Install file.

Upload Script Files :

After Purchase the script and download the purchased zipped file. You should unzip the file :
The unzipped file will result two folders :

Upload the script folder contents to your host.

Create Database

To Create Database login to your cpanel.
Search for Mysql Database.

By clicking on Mysql Database Link you will go to the Database Managment.

First : Create a New Database
Second : Add a New User
Third : Add a User to Database

Edit config.php Variables

Open config.php file which is located at : include folder.

		$db_config = array(
			'host' => 'localhost', // the database host
			'user' => 'db_username', // the database user
			'pass' => 'db_password', // the database password
			'name' => 'db_name' // the database name
		);
		

Change the values inserting your values.
for example :
'user' => 'db_username'

The value is db_username and this is what to change. the phrase after =>

Run Install File

To Install the Script Database and Primary Setting go to :
http://www.yoursite.com/install.php
And follow the instructions there.


B) Usage - top

Dashboard

Index Page display videos simple statistics per month. and you can choose the year and the month to display their statistics.
Also the Index Page display the cronjon command that it can be used in cpanel to make the script import videos automatically.

Categories

Categories Page display categories inserted by admin and you can add, edit and delete each category.
Also you can drag and drop categories to reorder them.

To Add a category you must insert the category name.
If you checked the option (Display Category in Menu) The category will appear in the main menu located at the top of front-end.
If you checked the option (Display Category in Home Page) The category will appear as a videos section in the homepage located at the front-end.

channels

channels Page display the channels that the script imports videos from. you can add, edit and delete channels.
In addition you can also Import videos manually to each channel.

To Add a channel you must insert the channel url

The channel url is located at the youtube as :
https://youtube.com/user/username
the username is alphabetical with numbers and don't contain spaces
If you checked the option (Auto Update channel ?) means that this channel will be included in the cronjob Importing atomatically. If not, then you should Import the videos for this channel manually.

Videos

Videos Page Display published videos in addition to deleted videos and you can search for video(s).
Also you can delete multi-videos and restore them later In addition to option of deleting them permanently.

To Add a single Video (Not related to existing channel) You Must Insert the Video link.

the youtube video url can be found at youtube.com as :
https://youtube.com/watch?v=O23Bitu43
Insert the Video link and click the fetch details button to fetch the video details.

Search YouTube & Import

You can search youtube.com for a videos that related to query word and you will get results that you can Import to your site.

Pages

Pages Page Display custom content published by user such as (About Us, DMCA .. etc).
You can Add, Edit and Delete pages.
Also you can drag and drop pages to reorder them.

To Add Page Simply Insert the title and content.

Links Page Display custom links published by user.
You can Add, Edit and Delete links.
Also you can drag and drop links to reorder them.

To Add link you must insert the link title and URL.
You can choose how to open the link (same page or new page).
You can also add rel=nofollow to the link.

Setting

Setting help you moderate all the script details and maintenance.

General Setting

General Setting contains the SEO setting which allow you to choose the site title,keywords and description.
Also you can choose the site template (Theme) from general setting.

Theme Setting

Theme setting contains the display videos numbers (homepage,category,channel,related,featured videos,random video widget).
Also it has an option to Enable/Disable the LazyLoad function.

Clear Cache

Smarty Templates Engine creates Cache files to speed the loading of the site pages.
You have the ability to clear this files (if needed).

Optimize Database

Sometimes the Database has overhead.
You have the ability to Optimize the database and remove the overhead.

Remove Old Videos

You can remove old videos having many options to do that.


C) Setup CronJob - top

To setup Cronjob login to your cpanel.
Search for : Cron Jobs.

By clicking Cron Jobs link you will get the cron jobs setting page.

Select the period from common setting for example (Twice Per Day) which means that the cron job will work two times every day.
Then Insert the Command that is responsible for Importing videos from feed channels.


php -q /home/YOUR-ACCOUNT/cron.php


Replace YOUR-ACCOUNT with yours.
You can find it in cpanel at the lest sidebar (as the following image) Where the account name is the underlined.


D) Ads Setup - top

The Ads are stored in files not in database.
You can find the ads at the folder ads which conyains 3 files :

Open the files and place your code in it (recommend to choose a responsive code from google adsense).


E) Getting Youtube API KEY - top


Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.

George Mirza

Go To Table of Contents