Front page › Forums › CodeCanyon products › WordPress YouTube video post plugin › Few problems
- This topic has 27 replies, 2 voices, and was last updated 8 years, 5 months ago by
DJQuad.
-
AuthorPosts
-
November 6, 2013 at 1:03 AM #208
DJQuad
ParticipantI have “Set featured image unchecked” but it’s embedding the video on the blog page instead of showing the image. That’s why I bought the plugin.. š My goal to use the images in an Avada image slider that automatically displays images from the last 5 posts.
Is there a way to parse links in the description so they’re links?
I’m trying to import thousands of videos from 2 channels and I set them up in “Automatic import” – it seems to be importing some but they aren’t listed under All videos.
Sometimes importing videos under “Import videos” says “Site temporarily unavailable. Connection timed out – please try again.” Other times it says “Out of 50 videos, 0 were successfully imported and 50 were skipped.”
If posts are deleted will it reimport them?
Thanks
November 6, 2013 at 3:46 PM #209Constantin
KeymasterI have āSet featured image uncheckedā but itās embedding the video on the blog page instead of showing the image. Thatās why I bought the plugin.. š My goal to use the images in an Avada image slider that automatically displays images from the last 5 posts.
I don’t quite understand this so I’ll try to explain how the plugin works. When you import a video you have the option to import the video image as post featured image. Those images are saved into your Media Gallery so you should be able to use them into sliders.
Is there a way to parse links in the description so theyāre links?
You can use filter cbc_video_post_content that will return the post content (actually the video description from YouTube) and try to detect URL’s in it and make them links. By default, YouTube will strip all HTML from descriptions.
Iām trying to import thousands of videos from 2 channels and I set them up in āAutomatic importā ā it seems to be importing some but they arenāt listed under All videos.
Can you please tell me the details of the 2 channels you’re trying to import (feed type and youtube ID)?
Sometimes importing videos under āImport videosā says āSite temporarily unavailable. Connection timed out ā please try again.ā Other times it says āOut of 50 videos, 0 were successfully imported and 50 were skipped.ā
Try to import fewer videos at once, your server probably can’t handle 50 videos at once. To do this, modify the setting in plugin Settings page.
If posts are deleted will it reimport them?
Yes.
November 6, 2013 at 7:11 PM #210DJQuad
ParticipantI’m seeing the images in the media library, but shouldn’t http://www2.wikigameguides.com/blog/ be showing them instead of the YouTube embed?
I see that cbc_video_post_content is a feature but I’m not sure how to use it. If it’s “Import descriptions as”, it’s set to post content.
The feed type is User uploads and the 2 channels are wikigameguides and nextgenwalkthroughs
Thanks!
November 8, 2013 at 12:03 AM #211DJQuad
ParticipantAlso, as of now it has only imported around 450 videos. I’m seeing that the total videos between the 2 channels is around 15,000. Is there any way to speed up the import process? It’s obviously a lot at first but after the past videos are imported, the automatic import should suffice as there are anywhere from 0-5 new ones per day.
Hope to hear from you soon – I really need to get this all worked out soon š
November 12, 2013 at 3:57 AM #213DJQuad
Participant3 days and no reply. BTW – Your plugin stopped working. The latest post was on the 5th. It’s now the 11th. Can I get some actual support for a plugin I paid for?
November 12, 2013 at 12:09 PM #214Constantin
KeymasterSure, I’m here, sorry for the delay. For some reason the forum didn’t notify me of the new threads.
Iām seeing the images in the media library, but shouldnāt http://www2.wikigameguides.com/blog/ be showing them instead of the YouTube embed?
The way posts are displayed is entirely up to Avada, not the plugin. All the plugin does is to “write” the post for you, the way it is displayed isn’t controled by the plugin.
I see that cbc_video_post_content is a feature but Iām not sure how to use it. If itās āImport descriptions asā, itās set to post content.
cbc_video_post_content is a filter, has as params the post content (actual content retrieved from YouTube), the video details and whether the post is imported as theme post. You can use it like this:
function my_function( $post_content, $video, $theme_import ){
// process the contents of post in here
return $post_content;
}
add_filter(‘cbc_video_post_content’, ‘my_function’, 10, 3);Also, as of now it has only imported around 450 videos. Iām seeing that the total videos between the 2 channels is around 15,000. Is there any way to speed up the import process? Itās obviously a lot at first but after the past videos are imported, the automatic import should suffice as there are anywhere from 0-5 new ones per day.
You could set import frequency to 1 minute but if you import thumbnails too, don’t import more than 10-20 videos at once. Today or tomorrow an update that allows server cron jobs will be published, you could set a cron job on your server to run every minute, it’s more reliable than the internal WP cron that doesn’t run if you’re website doesn’t have enough traffic (ie: 1 visit every X period of time you set in Settings).
BTW ā Your plugin stopped working. The latest post was on the 5th. Itās now the 11th.
This could be due to lack of traffic. Server cron could help, please wait to the update, as I said previously, today or tomorrow.
November 12, 2013 at 6:31 PM #217DJQuad
ParticipantHow do I get http://www2.wikigameguides.com/blog to use the images that were imported?
What file do I ad the code you mentioned?
I’ll wait for the cron update. Thanks.
November 12, 2013 at 6:53 PM #218Constantin
KeymasterHow do I get http://www2.wikigameguides.com/blog to use the images that were imported?
This is a theme specific question, please ask the theme author for this information. If you write a post by hand in Avada (with plugin disabled), it displays the same way in Archive, instead of the featured image it shows the video.
What file do I ad the code you mentioned?
The code should be placed in theme functions.php file.
Iāll wait for the cron update. Thanks.
Still testing it, looks promising. A few more features were added to the plugin, thank you for your patience.
November 12, 2013 at 10:49 PM #219DJQuad
ParticipantOh I’ll ask Avada then, thanks for that info.
I added the code to the bottom of /wp-content/themes/Avada/functions.php but it’s not parsing the links. See http://www2.wikigameguides.com/gta-5-drive-easter-egg-grand-theft-auto-5-scorpion-crab-jacket-2
November 13, 2013 at 4:26 PM #220Constantin
KeymasterIf you simply pasted the code above, it won’t work. I just outlined how you can use the filter. To make links clickable, you should parse the description, for example, you could use WP function make_clickable().
function my_function( $post_content, $video, $theme_import ){
// process the contents of post in here
return make_clickable( $post_content );
}
add_filter(ācbc_video_post_contentā, āmy_functionā, 10, 3);November 13, 2013 at 4:34 PM #221DJQuad
ParticipantI don’t know where exactly to put that though – that’s the problem š
November 13, 2013 at 4:41 PM #222Constantin
KeymasterTheme functions.php should do the trick, either in child or parent theme.
November 13, 2013 at 11:36 PM #223DJQuad
ParticipantNot working. š Any other ideas?
November 14, 2013 at 9:34 AM #224Constantin
KeymasterThe clickable links will work only for videos imported after you pasted the code, already imported videos won’t have them. To make the links clickable for existing videos, you could use WP filter the_content.
November 14, 2013 at 9:45 PM #239DJQuad
ParticipantWay over my head š
Also, how’s the cron coming along? I got an alert from CodeCanyon about an update but it seems to be the same version.
November 15, 2013 at 12:04 AM #240DJQuad
ParticipantI used a plugin for the links so those work now. Please let me know about the cron – there still hasn’t been any new posts since the 5th. If you can add some logging/debugging/reporting to it, all the better!
Thanks for your continued help and support.
November 15, 2013 at 4:59 PM #241Constantin
KeymasterYou’re welcome. The CRON version is out now, version 1.0.7.1 is available on CodeCanyon, just got approved this morning. See Settings page, a new option is available and gives you the link to create a server CRON job. You could use wget for this (just search the web for wget cron job and you’ll get plenty of examples). Servers aren’t exactly my speciality so don’t ask me too advanced questions š
November 15, 2013 at 11:14 PM #242DJQuad
ParticipantDoes http://www2.wikigameguides.com/youtube-import-cron.png look correct?
The full path to the web root is /mnt/stor10-wc2-dfw1/547595/866274/www2.wikigameguides.com/web/content
It’s probably a wget error? Here’s part of the output that was Emailed –
Command to be executed is: /usr/bin/php /mnt/stor10-wc2-dfw1/547595/866274/www2.wikigameguides.com/wget http://www2.wikigameguides.com/?cbc_external_cron=true
Could not open input file: /mnt/stor10-wc2-dfw1/547595/866274/www2.wikigameguides.com/wget
November 18, 2013 at 11:32 PM #243DJQuad
ParticipantAlso, when it says “Next automatic update scheduled in 0:57.” does that mean it’ll actually run? It doesn’t seem to.
November 19, 2013 at 12:28 AM #244DJQuad
ParticipantSorry, I think it’s internally running ok, although please let me know about the wget cron error.
There are 2 user channels, wikigameguides and nextgenwalkthroughs –
According to YouTube, wikigameguides has 12,406 videos, nextgenwalkthroughs has 1,238
According to the plugin, “Total videos” reports the same for both channels, so that’s good.As of now, it has imported 10,159 of the wikigameguides videos and all 1,238 nextgenwalkthroughs videos.
I still haven’t seen any new videos since Nov 5th (13 days). Could that be because it’s still importing older videos (IE, 10,159 out of 12,406)? I’m not sure how the automatic import handles queries as far as old videos vs new videos. I know this is an extreme example of a site running your plugin š
I went ahead and checked “When finished, import only new videos” either way just in case. š
-
AuthorPosts
- You must be logged in to reply to this topic.