Discussion on YouTube WordPress plugin - video import

cboiangiu

cboiangiu supports this item

Supported

This author's response time can be up to 2 business days.

596 comments found.

Hello,

Facebook sharing doesn’t works randomly. In these cases there is no thumbnail no info. It also announces at automatic import and also at User and Channel import. Google and Twitter seems to be working well. Also the website is good. The only bug is in Facebook sharing. Have you met with this kind of problem before?

Hi,

Can you please give me a link where I can download Facebook sharing plugin? Thank you, please let me know.

I have a question about how the Youtube videos are being imported. Is the video info being stored as custom fields in posts? This way I can have more control over how and what gets displayed on the front-end.

Also, do I have the ability to choose what custom post type and custom taxonomies that the imported video content gets added to?

Yes, video details are stored in post custom field. Regarding post types, the plugin will embed videos only for post type “video” which it implements or regular “post” post type.

Further more, if you have a video enabled theme that has a special display for embedding videos, you can use that by implementing the theme compatibility. Please see this for more details: https://wpythub.com/documentation/tutorials/third-party-compatibility/

Please note that in case of theme compatibility, the plugin will create the posts according to your settings but it won’t manage video embedding. This has to be managed by your theme of a third party plugin.

How to import Tags from YouTube to Video Post?

In plugin Settings page, go to tab Content options and make sure you check option “Import tags”. You must also specify the maximum number of tags that the plugin can import.

How can I show Imported Videos in front side by playlist with this plugin?

Hi,

You can use the shortcodes implemented into the plugin or the widget. The shortcode can be inserted by clicking on the YouTube icon from the visual editor when editing a post. It will open a modal window that allows you to choose the videos you want to put into the playlist.

New and clear wordpres an clear voice theme from themeforest,

I installed the plugin and it is a bug: /home/XXXXXXX/domains/XXXXXXX.pl/public_html/wp-content/plugins/ccb-youtube/includes/libs/auto-import.class.php on line 375

please help

Hi,

Can you please also tell me the actual error?

As a note, if the error is Can’t use method return value in write context in…, this is an error issued by PHP <5.5, last PHP 5 version is 5.6.29.

One option would be for you to ask your host to upgrade PHP to the latest 5.6.29 but please know that support for this version stopped on January 19th 2017.

Best option is to upgrade to PHP 7 which will greatly improve your website speed without the need of doing anything else.

Please find more details about PHP supported versions here: http://php.net/supported-versions.php

Good afternoon. We can’t download large playlists from youtube: http://prntscr.com/f2u1pi ; http://prntscr.com/f2uftz, more than 20 videos. Less loaded. Although did it yesterday with no problems. Most likely the problem is the hosting. Please tell me what to do, and if problems in the hosting, what settings should I put.

Hi,

This is a server error, cURL timed out after 2 seconds. You can try and increase the timeout, please put this code in your theme functions.php file:

add_filter('http_request_timeout', 'modify_http_request_timeout', 999, 1);
function modify_http_request_timeout( $t ){
    $t = 15;
    return $t;
}

Please let me know if this works, thank you.

All super. You are the best.http://prntscr.com/f366j9

Hello, I recently purchased this plugin. The zip file that I downloaded did not come with the ccb-youtube.zip file. I uploaded the entire zip file into my wordpress but upon activating it, I received the following message [[[ Fatal error: Can’t use method return value in write context in /home2/alifeili/public_html/freemedicalvideos.com/wp-content/plugins/ccb-youtube/includes/libs/auto-import.class.php on line 375 ]]].

My site is still functioning well and I deleted the plugin. I attempted to download the plugin multiple more times but every time the zip file did not contain the ccb-youtube.zip file.

Please let me know how to fix this asap. Thank you

Hi,

The zip file you download here contains all necessary plugin files. You should only upload the entire archive in WP plugins installation page and activate the plugin.

Regarding the error Can’t use method return value in write context in…, this is an error issued by PHP <5.5, last PHP 5 version is 5.6.29.

One option would be for you to ask your host to upgrade PHP to the latest 5.6.29 but please know that support for this version stopped on January 19th 2017. Also note that all PHP 5 versions are currently supported only for security updates. More information about this can be found here: http://php.net/supported-versions.php

Best option is to upgrade to PHP 7 which will greatly improve your website speed without the need of doing anything else.

I would like to purchase this plugin for my WordPress blog. But i have one query This plugin allows me to Create A download button? My concept is Embed youtube videos on my word press blog post for watching videos if users interested they can also Download the video or audio using the download button.

Hi,

No, sorry, the plugin doesn’t create a download button.

Updated to most recent plug-in. Can’t get “import youtube thumbnail” to work. Button clicks but nothing happens. Please advise!

http://rookierugby.staging.wpengine.com/videos/

Hi,

Can you please check for JavaScript errors? Just tested this functionality to make sure and it works as expected.

No js errors in console, both on initial page load and after clicking ‘Import YouTube thumbnail’. One clue is the one thumbnail that works is a newer video and the other videos are 6 years old…. Are you able to get for example video FpcRSzZlyV4 to import a thumbnail?

I managed to import the thumbnail using the add new video feature but only after saving the post. There’s clearly a bug here, don’t know if it’s the same you discovered. Can you please describe the steps you took when you imported the video(s)? Thank you, please let me know.

Hello, Can I configure a bunch of YT usernames and let the plugin import all future videos (and some of the old ones)? By setting up the cron, will it work with future videos, or just the ones present at the moment of configuring the automatic import job? Thank you.

Hi,

Yes, you can import from any YouTube user and configure the plugin to import starting with a given date. Cron will work with future videos, it will work in background and import the videos as WP posts automatically.

Hi I’ve purchased your plugin and its great. I do have a question though. When I try to import videos via ‘Automatic Import’ or ‘import videos’ I’m not able to then do a ‘quick edit’ from the ‘all posts’ in my dashboard. Every time I do a quick edit, the Title and Description disappears. The only way I’m able to edit my video posts is to actually ‘edit’ the post and click the “Videos Auto Fetch Data” box for that post. This is very time consuming and on multiple occasions I have forgotten to click Video Auto Fetch Data and lost my entire post description and title. FYI, i’m using the VideoPro theme.

Please let me know if this is the right method to contact you guys for support. Thank you

I understand now, that option is from the theme or a third party plugin and you need it checked. Well, you should see which custom field gets set with that option and set it programatically every time the plugin creates a new video. To do this, use action cbc_post_insert>

function my_callback_func( $post_id, $video, $theme_import, $post_type ){
    update_post_meta( $post_id, 'option_meta_key', true );
}
add_action( 'cbc_post_insert', 'my_callback_func', 10, 4 );

For update_post_meta() you should enter the meta key where your theme stores that value and as value the value that your theme saves every time you check/uncheck that option.

Sorry i’m not sure what you mean exactly by “use action cbc_post_insert>” i’m not really great with coding so I appreciate it if you can explain more steps. Thank you

Hi,

Sorry for the delay. The example I gave you above is relevant for what you want to do, you just need to change the post meta name from “option_meta_key” to the name that your theme uses for “Do not fetch” option. If you don’t know how to do this exactly please contact me from my profile page: https://codecanyon.net/user/cboiangiu

A great customer support and a easy to use plugin, thanks again ! :)

1. Installed the plugin. 2. Went to Google and created an API key as instructed in the documentation, entered it on the Settings page. 3. Any attempt to manually import one video or a list results in this error:

“Error: YouTube API returned a 400 error code. Error returned is: Bad Request( code : keyExpired ). (code: yt_api_error_code)”.

Any ideas?

Hi,

Yes, you must first enable option Check video statuses after import in plugin Settings page, tab Post options.

Next, in your theme functions.php use action cbc_video_status_check that has 2 arguments: $post and $video.

For example:
function my_video_status_func( $post, $video ){
    // update the views
    update_post_meta( $post->ID, 'views', $video['stats']['views'] );
    // update the likes
    update_post_meta( $post->ID, 'likes', $video['stats']['likes'] );
}
add_action( 'cbc_video_status_check', 'my_video_status_func', 10, 2 );

This should do it. The verification is done once every 24h and is triggered by your visitors. This means that a video will be updated with the views if the post receives a hit from any of your visitors in a 24h interval.

Regarding the theme compatibility, there’s a detailed tutorial about this here: https://wpythub.com/documentation/tutorials/third-party-compatibility/

The plugin has been working fine for the past 2 days, all is good. However now I have another question (or maybe feature request): Is it possible to somehow prioritize the automatic import jobs? For example I have ~30+ sources and the plugin is set to pull one every 5 minutes. With inconsistent visitors and automatic pings, it can take ~4 hours before a channel is pinged.

I would like to somehow prioritize channels that post more often than others, so that maybe they get pinged twice as often?

Thanks for any input, so far everything has been working out great!

Hi,

This looks like a good idea, I will put this down for a future update. Any other feature requests that might make your like easier are also welcomed.

Hello, when import videos from a search, has some hook in this process that i can use to add a custom field with the keyword used in search? Example, i search videos “beyonce married” and i want save the custom field of post “focus keyword” = “beyonce married” How can do it (retrieve or know the search term, not how use a hook, i’m developer) thanks

If I understood correctly your first question, you can contact me from my profile page: https://codecanyon.net/user/cboiangiu

As for the second question, I really can’t give you an answer because I don’t have any experience with wp-cli, sorry.

1st ok 2nd: what function is called to do the search? ex: functionname($query)

Sorry for the delay. Function name is cbc_yt_api_search_videos() and it takes as only parameter an array like this:

$defaults = array(
    // if false, YouTube categories won't be retrieved
    'include_categories' => true,
    // the search query
    'query'         => '',
    // as of API 3, results pagination is done by tokens
    'page_token'     => '',
    // can be: date, rating, relevance, title, viewCount
    'order'         => 'relevance',
    // can be: any, short, medium, long
    'duration'         => 'any',
    // not used but into the script
    'embed'            => 'any'
);

Hi,

I have been trying to auto-import videos but they never seem to come across. Could you take a look please as I believe I am doing everything correct but I can’t get anything to auto-import. I can message you login details if you direct me where to send them.

Thanks!

Hi,

Please contact me from my profile page: https://codecanyon.net/user/cboiangiu thank you.

Hi,

Will this work with twenty twelve if I follow the theme compatibility instructions?

by
by
by
by
by
by