Import new content from various video sites into WordPress for unlimited amounts of fresh search engine food to update your niche blog all day, every day.
How does it work?
Each Video Pornster feed is a query for a channel, playlist, keyphrase, etc. that is sent to the video site’s API. The API returns the results of the query, and Video Pornster creates a post for each video returned, including comments, tags, categories, statistics and it even imports the featured image. Your theme handles the rest.
These video feeds can be scheduled to run in the background to continually look for new video content, letting your site build itself automatically.
Yes, Video Pornster includes advanced processing, so you can spin content, translate languages, remove text or links, have full control of the content layout, and more. You can save as any user, any post type, any status, any format, and any taxonomy.
Installation
Video Pornster is a WordPress plugin so this guide assumes you have a basic understanding of WordPress.
Download the Video Pornster zip file from Envato to your computer.
From the WordPress admin menu, select Plugins -> Add New.
Click on the 'Upload Plugin' button at the top.
Select the Video Pornster zip file you downloaded and click 'Install Now'.
Enter the server's FTP details to upload and install the zip file.
After sucessfully uploading, click on 'Activate Plugin'.
The Video Pornster menu will now appear in the WordPress admin menu.
Plugin updates will automatically show on your WordPress Updates page.
Quick Start
For those familiar with WordPress and plugins. Let's quickly import the highest rated 10 amateur videos from YouPorn.
Install and activate the Video Pornster plugin on your WordPress site.
From the admin menu, Go to Video Pornster -> Main Settings and validate the plugin with your purchase information.
Click Make Video Feed to build your first YouPorn query. YouPorn is the default video site, but you can switch to others.
Change the number of videos to import to 10.
Click on the 'Amateur' category.
Change Sort by to 'mostviewed' to get the most viewed Amateur videos.
We will leave the other tabs to their defaults.
For this example we are just going to manually query this feed to import some videos.
Scroll down and click the Import YouPorn Videos Now button.
It will take a few seconds for YouPorn to respond and the results to be processed and each post draft created.
You should see some admin messages similar to:
Note that API queries do not 'remember' your previous queries.
If you click the Import YouPorn Videos Now button again right now, YouPorn should return the exact same 10 results.
However Video Pornster will automatically skip videos it has already imported to avoid duplicates.
If you want to import the next batch of 10 instead, you can change the QueryBehavior to continuous.
Results are imported as standard WordPress content, so you can preview, edit, publish or delete these results by clicking 'Posts' in the main dashboard.
As standard WordPress content, these posts will be easily compatible with other plugins and standard themes. If using a premium theme, we may need to connect Video Pornster to their custom meta fields, if used. See the Premium Theme Support section.
Now you can explore all the options and flexiblity with Video Pornster!
Main Settings
Purchase Email - Your email used when you purchased the plugin.
Order ID - The Order ID of the purchase, shown on the screen and in your purchase email. Note this is NOT the CCBill transaction ID.
Google Translate API Key - The Google Translate API is now a paid service. If you have an API key you can enter it here to translate video titles and descriptions.
MS Azure Translate API Key - The MS Azure Translate API is a free/paid service. If you have an API key you can enter it here to translate media titles and descriptions.
Content ID Blacklist - The plugin will not import a video if its ID is in any existing post. In addition, the plugin will not import any video IDs in the blacklist. Place each video ID on a single line.
Automatically add permanently deleted video IDs to the blacklist? - If checked, Trashed posts that are permanently deleted will have their video IDs added to the blacklist so they are not imported again. If you're unsure, you can check each posts custom meta field 'VideoID' for examples.
Default timeout for requests - In some cases, the remote API can take longer than the default 5 seconds to respond. This allows you to increase the time to wait for a response, if desired.
Check for Beta Updates? - If you want to help test bugfixes or new features, or you have contacted support and there is a bugfix or new feature for you to test. If this box is checked, when WordPress checks for updates every 12 hours it will check for Video Pornster beta releases instead of official updates. You can also force WordPress to check for updates on the Dashboard -> Updates page or Plugins page.
Make Video Feed
A video feed is comprised of Feed Details, Build the Query (unique to each video site), Process the Results returned into Post Templates and Create the Posts with the finished data. These 5 sections are broken down below.
Quick usage note: most circumstances break down into these several concepts:
Request all videos from a search term/category/pornstar/etc. - Set Videos to Request to -1 and the feed will import all results returned from the query. Can use lots of time, resources and quota depending on number of total videos. After doing this once, you should consider concept 3.
Request all videos from a search term/category/pornstar/etc. but only X at a time - Set Videos to Request to X and set Query Behavior to Continuous. This will only import videos that you have not imported before, until all results from the query have been imported. After that, you should consider concept 3.
Request only new videos added to a search term/category/pornstar/etc. - Set Order Videos by to date (or similar), set Query Behavior to Strict and compare the Scheduler time to how many videos might be added in that time. For instance, if the Scheduler is set to run every 24 hours, how many new videos could be added to the search term/category/pornstar/etc. in that time? I recommend a number between 5 and 50, which will save much in time, resources and quota.
Make Video Feed
Build ContentFeed Query
This declares the content feed URL and how to parse it for import. It must be simple text, with one video result per line.
These are typically .txt or .csv files a sponsor program might supply. You only need to match the fields and Video Pornster will import them to be available in the Post Templates for the theme to use.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Field Separator - The character that separates each field in each line. This is ususally a bar ( | ) or comma ( , ).
Content Feed URL - The URL from the sponsor site. Example.
Fields - Match each field of a line with its data. Example line with bar ( | ) separator:
http://gallys.18eighteen.com/flvs_content/AvaParker_34215_1280x720_2600_T01.mp4|http://cdn.scoreuniverse.com/modeldir/data/posting/58/046/posting_58046_x_xl.jpg|Sweaty Slit|Ava is dressed up in a tiny workout outfit that looks more like underwear than athletic apparel. She keeps her body petite and tight by working out, but today she's not feeling it. She'd rather give her pussy a workout. First she warms it up by opening and closing her legs and stroking her slit. Once her clit is throbbing and her meaty lips are sticky with her girl goo, she goes to town finger-banging her little hole. Maybe she's thinking about fucking her trainer or sucking cock in the gym sauna. But one thing is for sure, you'll work up a sweat jacking to this tiny redhead.
The fields for the above would be
Field 1 - Embed Code
Field 2 - Image
Field 3 - Title
Field 4 - Desc
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Make Video Feed
Build GayTube Query
This builds the query that will be sent to the GayTube API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - GayTube supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at gaytube.com's search query box. Multiple keyphrases will return results that match all terms.
Time Period - Limit the search to this time period.
Order By - Change the default result set ordering.
Category - The category list available for GayTube, pulled dynamically from the API.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Video Image
Import featured image - If enabled, the video image is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build GotPorn Query
This builds the query that will be sent to the GotPorn API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
GotPorn has an API that can be used for searching for keyphrases or specific videos, but it does not support any filters. They also have a content feed that supports filters, but it does not support keyphrases.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - GotPorn supports searches, a content feed and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at gotporn.com's search query box. Multiple keyphrases will return results that match all terms.
Orientation - Determines the type of category. Caution: GotPorn uses 'amateur' category for straight, gay and shemale. It is up to the user to know which orientation matches which category, as otherwise GotPorn does distinguish between them, nor provides a way to do so. For instance, requesting Gay Cheerleaders would return an error (last I checked).
Upload Date - Filter the videos by their upload date.
Order By - How to order the video results.
Categories - The category list available for GotPorn, pulled dynamically from the API.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Make Video Feed
Build PornHub Query
This builds the query that will be sent to the PornHub API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - PornHub supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at pornhub.com's search query box. Multiple keyphrases will return results that match ANY terms.
in Category - The category list available for PornHub, pulled dynamically from the API.
with Pornstar - The pornstar list available for PornHub, pulled dynamically from the API.
Time Period - Filter videos by their upload date.
Order By - How to order the video results.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build PornTube Query
This builds the query that will be sent to the PornTube Export page to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Date Added - Filter the videos by their upload date.
Video Duration - Filter video results by this duration.
Sort By - How to order the video results.
Categories - All the categories found on PornTube at the time of this writing. They have no category export feature. :(
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build PornerBros Query
This builds the query that will be sent to the PornerBros Export page to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Date Added - Filter the videos by their upload date.
Video Duration - Filter video results by this duration.
Sort By - How to order the video results.
Categories - All the categories found on PornerBros at the time of this writing. They have no category export feature. :(
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build RedTube Query
This builds the query that will be sent to the RedTube API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - Supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at redtube.com's search query box. Multiple keyphrases will return results that match all terms.
in Category - The category list available for PornHub, pulled dynamically from the API.
with Pornstar - The pornstar list available for PornHub, pulled dynamically from the API.
Time Period - Filter videos by their upload date.
Order By - How to order the video results.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build SpankWire Query
This builds the query that will be sent to the SpankWire API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - Supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at spankwire.com's search query box. Multiple keyphrases will return results that match all terms.
in Category - The category list available for PornHub, pulled dynamically from the API.
with Pornstar - The pornstar list available for PornHub, pulled dynamically from the API.
Time Period - Filter videos by their upload date.
Order By - How to order the video results.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build Tube8 Query
This builds the query that will be sent to the Tube8 API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - Supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at tube8.com's search query box. Multiple keyphrases will return results that match all terms.
Orientation - Limit the search to this type of videos.
Order By - How to order the video results.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build YouPorn Query
This builds the query that will be sent to the YouPorn API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - Supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at youporn.com's search query box. Multiple keyphrases will return results that match all terms.
in Category - The category list available for PornHub, pulled dynamically from the API.
with Pornstar - The pornstar list available for PornHub, pulled dynamically from the API.
Time Period - Limit the search to this time period.
Order By - How to order the video results.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build xHamster Query
This builds the query that will be sent to the xHamster Content Export page to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Time Period - Limit search results to this time period.
Order By - How to order the video results.
Rating more than - Minimum rating for results.
Categories - All the categories found on xHamster at the time of this writing. They have no category export feature. :(
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video Metadata
Import Category - Import video channels into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build xTube Query
This builds the query that will be sent to the xTube API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Type of Request - Supports searches and requesting specific videos.
Search Terms - Enter any keyphrases just as you would type at xtube.com's search query box. Multiple keyphrases will return results that match all terms.
in Category - The category list available for xTube, pulled dynamically from the API.
with Pornstar - The pornstar list available for xTube, pulled dynamically from the API.
Time Period - Limit the search to this time period.
Order By - How to order the video results.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video URLs - A list of video URLs and/or IDs to import.
Video Metadata
Import Category - Import video category into this taxonomy.
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Import Pornstars as Tags - Pornstars will be saved in the custom meta field 'VideoPornstars' and be available in Post Templates with %VideoPornstars%. Set this option to Yes if you also want Pornstars to be treated and saved as WordPress tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Video Comments
Comments to Request - Will import video comments as WordPress comments attached to the created post for each video. A value of '-1' will request ALL comments.
Make Video Feed
Build xVideos Query
This builds the query that will be sent to the xVideos API to retrieve videos.
If the results are missing details, VP will attempt to scrape them off the video html page.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
API Request
Videos to Request - Number of videos to request for each query. You can enter -1 to request all available results. This is useful when first populating your site.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Video Metadata
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags.
Video Image
Import featured image - If enabled, the selected video image size is to be imported as the featured image.
Make Video Feed
Build the Query for RSS feeds
This builds the query that will read the RSS Feed to retrieve entries.
Name of Feed: - Displayed in the 'Show Video Feeds' summary for ease of use.
Feed Status: - Only Active feeds will be queried by the Scheduler.
Feed Request
Entries to Request - The only limit is from the length of the RSS feed.
Feed Url - The URL of the RSS feed.
Filter Only These Categories - Only items in the RSS feed that match the field with one of these entries will be considered. Separate categories with a comma. Note: BE SURE the RSS feed uses fields or nothing will match.
Query Behavior - By default, API queries are STRICT - if the request is for 10 videos, the API will return a maximum of 10 videos. Then Video Blogster will process those 10, skipping/updating duplicates already imported and creating new posts for the rest. However, Video Blogster allows for CONTINUOUS queries. This means Video Blogster will keep processing query results until the exact number of videos requested are imported into new posts, not including any duplicates previously imported.
Entry Metadata
Import Tags - Import video tags into this taxonomy. If Yes, there are options for minimum tag length and to ignore certain tags. Although RSS feeds label them as categories, they are generally used as tags and so are imported as such.
Entry Image
Import featured image - If enabled, the image will be imported from the RSS item's thumbnail field. If it does not exist, the image will be extracted from the item content, if available.
Valid RSS feeds are generally in two flavors:
The first has all images and content in each RSS feed item's <description> field. Video Pornster imports this straight into the %VideoDescription% template tag. In this case, your post content template can be as simple as:
The second has the RSS feed item's <description> field but images and content in the <media> fields. Video Pornster will check <media:content> fields and import recognized video files into the %VideoEmbed% template tag. In this case, your post content template using the default WordPress player shortcode could look like:
Note: If the video files supplied in the RSS feed are missing an extension (such as video/quicktime) then you will have to provide it if WordPress is to recognize the video file.
IMPORTANT! Know the RSS feed style you wish to import. You can load the RSS feed URL in your browser and look for the <media:content> field to see if you need the Wordpress player shortcode. I know this is a bit of a pain, but it allows maximum flexibility.
Process the Results
The content returned from the SOURCE will then be processed using these rules.
Content Exclusion Rules
Skip content that DOES NOT contain one of these keyphrases - If your query is too loose, the source media site might return results that aren't exactly what you want. Strict matching takes a comma-delimited list of keyphrases, and skips any content that doesn't have at least one of them in its title, description, or association (like user or channel name).
Skip content that DOES contain one of these keyphrases - Negative matching takes a comma-delimited list of keyphrases, and skips any content that has at least one of them in its title, description, or association (like user or channel name).
Skip if views less than - Content with less than this many views will be skipped and not imported. Note that the media site might not supply the number of views (Spotify). Currently the max value you can enter is 16777215.
Skip if date older than - Date can be in absolute formats "Y-m-d H:i:s" or relative formats. Examples:
2014-12-25
7 days ago
6 months ago
Skip if duration less than - Skip content whose duration is less than this many minutes.
Skip if duration greater than - Skip content whose duration is more than this many minutes.
Skip if no image? - In very rare cases the API might return broken images. If that happens, you can skip importing that content.
If content previously imported? - If the API returns a video that has already been imported, that post will be updated with the current, processed video data. This means three important things:
The metadata for views, likes, ratings, etc will be updated.
The post name, title, content, tags, categories, etc may be updated. For instance if you've changed your post content template those changes will be reflected in the updated post content with the current metadata.
New comments may be imported.
Content Filters
Translation Service - Google Translate and MS Azure is supported. Both require an API key in Main Settings.
Translate into Language - Translates both the content title and content description. Note that translation services may have trouble if the content uses html tags.
Remove Description URLs - Removes any URLs found in the content description.
Remove Comment URLs - Removes any URLs found in the content comments.
Linkify Description URLs - Linkify any URLs found in the content description.
Linkify Comment URLs - Linkify any URLs found in the content comments.
Remove these Chars from Title: - Any of these characters will be stripped from the title. Do not separate the characters with spaces or commas or those will be stripped as well.
Max Title Chars - Cuts long titles down to size, finding the closest word or phrase boundry.
End Title at Phrase - Cuts long titles down to size, finding the closest word or phrase boundry. Useful if source always appends their name to the title or similar.
Max Desc Chars - Cuts long descriptions down to size, finding the closest word or phrase boundry.
End Desc at Phrase - Cuts long descriptions down to size, finding the closest word or phrase boundry. Useful if source always appends their description with 'Subscribe to my channel!' or similar.
Desc Sentences to Remove - Removes the first X sentences from the description. Useful if source always prepends their description with 'Welcome to my channel!' or similar.
Remove any Sentence with - Remove any sentence with these phrases. Useful for sources that spam certain things like 'Click Here' or 'support my channel'. Separate phrases with commas. 256 char limit.
Replace phrases in title and/or description - One rule per line with spintax support. Case sensitive. Matches on word boundries only, so that 'visit' will not match 'visitation'. Examples:
Click Here=>{Click this link|Visit our site|Check us out} - Will replace 'Click Here' with 'Click this link' OR 'Visit our site' OR 'Check us out'.
www.sourcesite.com=>www.mysite.com - Will replace 'www.sourcesite.com' with 'www.mysite.com'.
Some Phrase=> - Will replace 'Some Phrase' with nothing, removing it completely.
Spin Content with - Will only show detected and supported spinner software, like Spin Rewriter.
Spin Title - Will spin the content title.
Spin Description - Will spin the content description.
Spin Captions - Will spin the content captions, if applicable.
Apply changes to existing videos? - This option will only show on existing content feeds. If checked, all previous content/comments imported from this feed will be processed again with the originally imported data (It does not re-import). This is useful if you just want to change some templates or custom meta fields for content that has already been imported for this feed. You may also mark post(s) to not be processed again by adding a custom field named 'VideoSkip' to the post with any value. The free plugin Custom Field Bulk Editor is recommended for mass editing.
The Post Templates
Processed content will then be used to build each post. Template tags will be replaced with content info.
Post Title
Post Title Template - This is the title of the post, where any template tags will be replaced with information from the video.
If Title a Duplicate? - If the post title would match an existing WordPress post title, then the import can be skipped. This can be useful if, for instance, someone uploads the exact same video under multiple YouTube accounts (against their TOS) in order to spam.
Post Body
Post Body Template - This is the body of the post, where any template tags will be replaced with information from the video. Most themes use Post Body but some premium themes will use custom meta fields for content data instead. KSES is toggled off so you can use 'evil scripts' like iframe ads. You may also use spintax for more variations.
Post Custom Meta Fields
Post Custom Meta Fields - Define your own meta data using a meta name and value, with template tags supported. This is useful if your theme or plugin requires it's own custom meta data, and this allows Video Blogster to fill out those fields automatically when the post is created.
To insert an array, WordPress requires it must be serialized into a json string. For instance array(100,101) would be stored as a:2:{i:0;i:100;i:1;i:101;}. If you needed to store array(%VideoURL%,%VideoEmbed%) it would be stored as a:2:{i:0;i:%VideoURL%;i:1;i:%VideoEmbed%;}. Video Blogster will then replace the template tags with the content values with each content imported.
Post Image
Post Image Template - The desired filename for the imported image, where any template tags will be replaced with information from the video. This will be the featured image filename of the post.
Supported Template Tags
All the template tags available in the post templates.
Create the Posts
Content processed will then be saved in WordPress with these settings, one post per successful import.
Post Details
Set Post Author - Presents a list of valid users to be author of the created posts. Random will choose an author randomly. To avoid WordPress running out of memory, a max of 1000 authors will be shown. If you want to change this, use this code snippet:
function vbp_change_args_get_users( $args ) {
// Option 1. set number fetched to 5000
$args[number] = 5000;
// Option 2. Get all taxonomies. (I have plenty of memory and script execution timeout is high)
$args[number] = -1;
return $args;
}
add_filter('vbp_get_users_args' , 'vbp_change_args_get_users');
See get_users for other parameters you could change.
Set Post Type - All public and registered post types will be listed here, including any custom post types.
Set Post Status - All public and registered post statuses will be listed here, including any custom post statuses.
Set Post Format - If your theme supports them, you can choose any post format for the posts created (usually it would be 'video').
Set Post Publish Date to - Uses the original publish date of the content or comment when importing instead of the date the post or comment is imported (recommended). Note that if you manually publish a post later, WordPress will change the post date to the current time. If you wish to keep the content's publish date instead, see this FAQ.
Content Post Excerpt - Some themes use excerpts, which if created will be a shorter version of the content description.
Post Taxonomies
All public and registered taxonimies will be listed here, including any custom taxonomies. To avoid WordPress running out of memory, a max of 1000 values per taxonomy will be shown. If you want to change this, use this code snippet:
function vbp_change_args_get_terms( $args ) {
// Option 1. set number fetched to 5000
$args[number] = 5000;
// Option 2. Get all taxonomies. (I have plenty of memory and script execution timeout is high)
$args[number] = -1;
return $args;
}
add_filter('vbp_get_terms' , 'vbp_change_args_get_terms');
See get_terms for other parameters you could change.
Import/Save Buttons
The buttons will contain the name of the media site for this feed.
Import [MEDIA SITE] Videos Now - Will send this query immediately and create posts from the results. Note: If you haven't saved this feed, then no VideoFeed meta data will be saved for the posts created. Save [MEDIA SITE] Video Feed - Will save this video feed in the database. Whenever the Scheduler is triggered, all active video feeds will be queried sequentially.
Show Video Feeds
Shows a summary list of video feeds that can be queried when the Scheduler is triggered. Inactive feeds will be greyed out and the name, id and source will be striked out. You can import, edit or delete feeds entirely, either singly or using the mass edit section below the summary list.
The Build the Query section of Mass Edit does not have many fields because each media site has a different API.
Scheduler
The Scheduler allows the content feeds to be queried continuously at certain intervals, as well as the utility functions that help manage the videos.
If Scheduler is enabled it shows the times of the next scheduled triggers.
Once enabled, start querying content feeds in - The delay in hours before the Scheduler starts querying active feeds.
then Query the content feeds every - The number of hours between querying all the active content feeds.
Once enabled, start running utility functions in - The delay in hours before the Scheduler starts running utility functions.
then Run the utility functions every - The number of hours between running the utility functions.
Email error summary to - Enter a valid email and VBP will send a summary of any errors encountered after every completed run of querying content feeds and the utility functions.
If a range is specified a random time will be chosen between them (example: 12-24 hours).
Note: Video Blogster Pro schedules events into the WordPress Cron (aka wp-cron) for checking. These
cron events are only checked when a visitor loads a non-cached WordPress page on the
site. If there are no visitors, there can be no cron checks and therefore no
scheduler checks.
If you have a high traffic site and wish to turn off WP-Cron and use server cron jobs instead, see this FAQ.
Log Messages
All important log events will be shown here. Also, the message display options will be used when manually importing content.
Display Messages
Critical - Important messages like errors and posts created.
Video Import - Secondary messages when importing like comments and images.
Video Skipped - Displays a message when content is not imported and the skip reason.
Utility Function - Messages related to the Utility Functions to help manage imported content.
Debug - Lots of programming information to help with support requests.
Max log messages to save - Log messages are saved to the database, and this limit prevents the database from getting too large. If you are on a virtual host, I recommend NOT entering 0.
Utility Functions
Miscellaneous utility functions for Video Pornster.
Can be triggered via Scheduler or run manually.
Trash Broken Embeds - Send posts to Trash if its embedded video has been removed from source media site. Sometimes the video owner or the remote site itself deletes or otherwise disables a video. In particular YouTube does well policing inappropriate, misleading and spammy videos. This cleans up your site instead of showing posts with broken embeds.
Fetch Missing Images - If "Import featured image" is selected and the remote API fails to return an image for whatever reason, this tool lets the plugin re-request the image at the next opportunity. If "Twice" selected and unable to fetch image after 2 additional attempts, post will be sent to Trash. If "Import featured image" was NOT selected at time of import, the images are therefore NOT considered missing. You can override this by using the filter "vbp_image_import" to return TRUE.
Remove Trash Images - Remove any images associated with Trashed Video Pornster posts to save space. If you Trash posts created by Video Pornster because the videos are spam, non-related, removed, etc., this will also delete the images too to save space (WordPress does NOT do this for you). Will ONLY apply to Trashed posts that were created by Video Pornster.
Why don't the scheduler events trigger? Nothing is happening.
The plugin hooks into the WordPress WP-Cron for scheduling. These cron events are only checked when a visitor loads any WordPress page on the site. If there are no visitors, there can be no cron checks and therefore no scheduler checks.
If you are using a caching plugin, WP-Cron won't be called until a cached page is rebuilt.
If you've disabled WP-Cron in the wp-config.php file, make sure you have a cron job set properly on your server to invoke wp-cron.php periodically.
If you are using .htaccess to allow,deny by IP, make sure to allow the IP of your WordPress site itself as the WP-Cron uses that IP address.
Are you sure nothing is happening? Be sure to check the log file. Perhaps the videos are being skipped because they have already been imported. Try running with debug mode turned on.
Can I turn off WP-Cron and use server cron jobs instead?
Yes, this is recommended (for any site) if you have high traffic or low server resources.
Edit /wp-config.php and add the line
define('DISABLE_WP_CRON', true);
Edit your cron on the server via the command line with 'crontab -e' or administration panel and add the line
This crontab entry will call wp_cron.php every 15 minutes and trigger any scheduled action hooks. Note that even though the 'next video feeds check' may be scheduled for 9:22, the above cron only fires every 15 minutes, so it won't be triggered until 9:30.
If you are unfamiliar with cronjobs and/or are unable to edit your server's cron you may use a web based cron service such as EasyCron.
I'm seeing the message "Error: [plugin] hook not found, likely another plugin misuse of cron_schedules. See FAQ." What is that?
This happens when another plugin incorrectly replaces cron_schedules with their own schedules instead of correctly adding to the existing schedules. This means the other plugin actually wipes out all existing cron hooks set by WordPress and plugins, including our plugin hook. The offending plugin code needs to be fixed or deactivated. I've only seen this happen with two other plugins - 1 was fixed and the other is no longer supported (php my video blog), but there are many many plugins out there. The chances of seeing this are slim, but if you do see this message, please let me know the offending plugin.
Why does the Scheduler use hours? Why can't I query every X minutes or seconds?
The various media sites have daily quotas and/or throttling, so it's best to request 100 videos an hour than it is 1 video a minute. If you want to publish the posts at that frequency, save them in bulk as Drafts and use the free plugin Auto Post Scheduler.
Video Pornster imported videos, but they don't display properly with my theme.
You are most likely using a Premium theme that uses custom meta data to store video information, and Video Pornster doesn't know what those custom fields are unless we declare them. See Premium Theme Support.
How can I use schema.org microdata for the videos?
We can add this right into the Post Content Template for the video feed. Here is an example:
The adult sites use custom players when embedding their videos. There is no known way to use another player without breaking their TOS.
How can I convert VideoDuration into other formats?
You can attach an action to when the VideoDuration post meta is added and perform your conversion. For instance the following code could be used to convert the VideoDuration from HH:MM:SS into just seconds and save it under the post meta key 'VideoSeconds':
I'm getting strange characters when I save my feeds. What is it?
This might happen on older PHP versions that are not using the UTF-8 charset (default since PHP 5.4). You can either upgrade to a supported PHP version or modify your PHP .ini file to set the default_charset to UTF-8.
How can I customize something specific when a post is created?
We can insert a filter hook with the WordPress function add_filter. The filter 'vbp_create_the_post' is checked right before Video Pornster would call the function wp_insert_post, allowing us to hook in and customize the post creation functionality to do anything we want.
This code snippet shows several examples of how we could customize post creation for an imported video.
add_filter( 'vbp_create_the_post', 'my_create_post_hook' );
// vidpost - the array of args we would send to wp_insert_post()
// videoInfo - the array of info for this imported video
// returns: either the postID, null, or $vidpost
function my_create_post_hook( $vidpost, $videoInfo ) {
// Usage 1: If we don't want VB to create the post at all, just return null.
// Useful for debugging or checking your own custom rules.
if ( false !== stripos( $videoInfo['title'], "BAD WORD" ) ) {
return null;
}
if ( $videoInfo['videoLikes'] < 10 ) {
return null;
}
// Usage 2: If we want a custom rule to change something in the post creation, modify the $vidpost and return it.
if ( $videoInfo['likeCount'] >= 10 ) {
$vidpost['post_content'] .= "<p> " . $videoInfo['likeCount'] . " likes</p>".;
}
return $vidpost;
// Usage 3: We could also return a postID here, then tell VB it doesn't have to.
// VB would still attach meta and comments to the postID.
// This allows you to do other customizations with the postID before control is returned to VB.
$postID = wp_insert_post( $vidpost, TRUE );
return $postID;
}
How can I customize something specific when a post is updated?
We can insert a filter hook with the WordPress function add_filter. The filter 'vbp_update_the_post' is checked right before Video Pornster would call the function wp_update_post, allowing us to hook in and customize the post update functionality to do anything we want.
Post updates can only occur when you have 'Update existing posts instead of skipping duplicate videos?' checked in the 'Process the Results' tab and the API returns a video you have already imported.
This code snippet shows several examples of how we could customize a post update for an imported video
add_filter( 'vbp_update_the_post', 'my_update_post_hook' );
// vidpost - the array of args we would send to wp_update_post()
// videoInfo - the array of info for this imported video
// returns: either the postID, null, or $vidpost
function my_update_post_hook( $vidpost, $videoInfo ) {
// Usage 1: If we don't want VB to update the post at all, just return null.
// Useful for debugging or checking your own custom rules.
if ( false !== stripos( $videoInfo['title'], "BAD WORD" ) ) {
return null;
}
if ( $videoInfo['videoLikes'] < 10 ) {
return null;
}
// Usage 2: If we want a custom rule to change something in the post update, modify the $vidpost and return it.
if ( $videoInfo['likeCount'] > 10 ) {
$vidpost['post_content'] .= "<p> " . $videoInfo['likeCount'] . " likes</p>".;
}
return $vidpost;
// Usage 3: If we don't want VB to call wp_update_post, we can just return the existing post ID.
// VB would still attach meta and comments to it.
return $vidpost['ID'];
}
Why is the script timing out? I'm seeing a blank page, 404 error or 500 error.
If your server uses mod_php (common) then a PHP script like Video Pornster will extend its script time automatically to handle any and all requests.
However if your server uses mod_fcgid or mod_fastcgi or a fastcgi process manager like php-fpm then that mod will automatically terminate any PHP script after its timeout limit is reached. Video Blogster will be unable to extend the script time or recover or even log an error message. In this case, you'll have to edit the appropriate configuration files and extend the timeout manually (depends on which module), or preferably, create a server cron job which will not be subject to timeout limits.
To know which module is currently used on your server, you can check your details with the plugin PHP Info.
How can I use the video's publish date when I publish a post manually?
Video Pornster can set the post's publish date to be the same as the remote video's publish site. However, if you then publish the post manually, WordPress changes the publish date to the current time. If you wish to keep the video's publish date instead after publishing the post manually, we can use this filter code:
// Add this code to child theme's function.php file or in Code Snippets plugin (recommended)
function vbp_keep_publish_date( $post_id ) {
$videoPublish = get_post_meta( $post_id, 'VideoPublish', TRUE );
if ( empty( $videoPublish ) ) return;
// unhook this function so it doesn't loop infinitely
remove_action( 'publish_post', 'vbp_keep_publish_date', 99 );
// update the post with the video publish date, which calls save_post again
wp_update_post( array( 'ID' => $post_id, 'post_date' => $videoPublish ) );
// re-hook this function
add_action( 'publish_post', 'vbp_keep_publish_date', 99 );
}
add_action('publish_post', 'vbp_keep_publish_date', 99 );
On some posts I'm seeing 'missed schedule'. What does that mean?
This can sometimes happen when you're importing videos with post status set to 'Publish' and the 'Use the video publish dates instead of the current date?' checked. Video Pornster imports a video recently uploaded, and the video's publish date is ahead of the server's current time because of the timezone difference and/or server has the wrong time. Therefore, WordPress schedules it for a future publish at the video's publish date. I don't know why WordPress misses its scheduled posts sometimes, but you can try a plugin like Scheduled Post Guardian.
Can I filter the video categories imported?
Yes, in the 'Build Query' tab you'll find the Category Filter option in the 'Video Metadata' metabox. It supports Inclusions, Exclusions and Renames. They are case insensitive and can be separated by commas and/or newlines. If the last character for an inclusion/exclusion entry is a wildcard (*) then non-strict matching will be used. Renames do not use wildcards.
Inclusion Examples:
Big-tits, Lesbians
Inclusion: would only import categories Big-tits, Lesbians and ignore all others.
big*
Inclusion: would only import categories that include 'big' (Big Tits, Big Dick, Very Big Girl, ma).
Exclusion Examples:
-cumshot,-babe,-Teen,-Pov,-Verified-amateurs
Exclusion: would import all categories except cumshot, babe, etc.
Ignored if any Inclusion is used.
-gay*
Exclusion: would import all categories except those that include 'gay' (Gay Hunks, Amateur Gay, etc).
Ignored if any Inclusion is used.
Rename Examples:
Teen => Teens
Rename: would rename the import category from Teen to Teens.
Big-tits, Lesbians, Teen
Teen => Teens
Would import categories Big-tits, Lesbians and Teens (renamed from Teen).
Author Notes
I use Video Pornster myself on numerous sites. I've added all the features I wanted plus everything else I could easily think of. Please let me know if any instructions need clarification - it all makes sense to me because I programmed it. :) If you have a feature request I'll try to implement it if possible.
Trying to import zillions of videos on a free or virtual host will probably encounter low resource issues.
Here's what I do:
Save my feeds that use search terms to create posts in 'draft' status so they can be curated later. Feeds from 'trusted' sources such as channels or playlists can create posts in 'pending' or 'publish' status.
Every X days I log into WordPress and check my new drafts imported by Video Pornster. Any spammy videos and the like are trashed and the rest edited/spun and are set to 'pending' status.
My free plugin Auto Post Scheduler publishes those pending posts at time intervals for me automatically.
Premium Theme Support
Video Pornster imports videos as WordPress data, to ensure compatibility with any plugin or theme that uses WordPress data. However, some premium themes use their own custom data to display videos instead of WordPress.
In those cases Video Pornster may not know how to save that data (it's impossible to know what premium themes name their custom video fields in advance).
You can identify if your theme is using custom meta data if you see a custom meta box that is not standard WordPress. Each theme will probably be different. Example custom meta box:
Luckily, all we have to do is tell Video Pornster to fill in those custom data fields automatically when it imports videos. Unfortuantely, we have to figure out what variable names those custom data fields are using, and that might require some html and/or css knowledge. Fortunately, some popular video themes have already been done for you, below. If a supported Premium theme is detected, the custom meta fields will be filled out automatically for you in the 'Process the Results' section when making a NEW feed.
For example, these are the custom meta fields entered when the VideoTube theme is detected. The VideoTube custom fields video_frame, count_viewed, like_key, and layout will be filled in automatically for each video imported into WordPress so they display properly with VideoTube.
These are FREEBIES and I do not promise compatability if their themes change or stop working, but I can try. If you have another premium theme not listed below that uses custom data for videos and cannot determine the variables they use, please contact support with a copy of the theme and I will take a look for you (Please note it's not my fault if a theme uses custom data fields).
WordPress identifies the theme based on the Theme Name declaration in it's style.css file and Video Pornster uses that theme name to include the necessary file in its /theme-helpers/ sub-directory. If you've renamed your Theme Name from 'truemag' to 'truemag (shared on themelot.net)' in the style.css file, then the plugin will not be able to load the '/theme-helpers/truemag.php' file functions.
Some WordPress plugins use custom meta data to store video info, just like some Premium themes, and are handled the same way. Read that section for more details.
When you import videos with Video Pornster and it detects this plugin, it will automatically include the file /plugin-helpers/wti-like-post.php to add these filter hooks to save the custom data the plugin uses:
add_action hook to the 'vbp_create_the_post_finished' filter which will insert video likeCount and dislikeCount numbers into the custom 'wti_like_post' database table for each video imported.
Filter Hooks
Filter hooks allow programmers to modify WordPress code that uses them, especially useful for Premium Themes that use their own custom data tables. This is advanced WordPress usage, so be careful. If you're familiar with filter hooks, you'll know to search the Video Pornster code for the 'apply_filters' function you want and hook them to your own code.
// If imported video has more than 10 'Likes' then open comments on the post to be created.
function my_create_post_hook( $videoPost, $videoInfo ) {
if ( $videoInfo['VideoLikes'] > 10 )
$videoPost['comment_status'] = 'open';
return $videoPost;
}
add_filter( 'vbp_create_the_post', 'my_create_post_hook' );
// don't create the post if video meets a certain condition
function my_create_post_hook2( $videoPost, $videoInfo ) {
if ( $videoInfo['VideoLikes'] < 10 )
return null; // post will not be created
return $videoPost;
}
add_filter( 'vbp_create_the_post', 'my_create_post_hook2' );