Topic: Cannot make Youtube code delete

Hi -
Can't seem to make the Youtube code at the top of these posts delete... is there code i need to enter?

http://www.foodgypsy.ca/video/post-old- … d-gypsy-2/
http://www.foodgypsy.ca/video/post-real … her-price/

otherwise, the plug in on my sidebar works great... but these two post have me pulling my hair out.  help?!

Re: Cannot make Youtube code delete

It seems the videos don't have dates associated with them. In the meta box when editing the post itself do you see a date in the date field?

Re: Cannot make Youtube code delete

OK, I'm not quite sure where I'm supposed to be looking, but at the bottom of the WP interface there are three boxes under Youtube Video:  Youtube Id , Youtube Publish Date and YouTube Author.  I cannot make those three boxes delete information.  it will not save empty. 

Under YouTube Publish Date it reads:  1296792267

Does that help? 

Am cleaning up my site and doing some maintenance before we launch a new series of videos, looking at older posts and reassigning SEO.  Appreciate your help.

Re: Cannot make Youtube code delete

You could simply comment out line 80 of /core/video.php which looks like this:
$s .= empty($a['_tern_wp_youtube_published'][0]) ? '' : '<span>'.gmdate('D, F j, Y g:ia',$a['_tern_wp_youtube_published'][0]).'</span>';

simply change it to:

//$s .= empty($a['_tern_wp_youtube_published'][0]) ? '' : '<span>'.gmdate('D, F j, Y g:ia',$a['_tern_wp_youtube_published'][0]).'</span>';

It's a hack but it'll solve your problem.

Re: Cannot make Youtube code delete

ternforum wrote:

You could simply comment out line 80 of /core/video.php which looks like this:
$s .= empty($a['_tern_wp_youtube_published'][0]) ? '' : '<span>'.gmdate('D, F j, Y g:ia',$a['_tern_wp_youtube_published'][0]).'</span>';

simply change it to:

//$s .= empty($a['_tern_wp_youtube_published'][0]) ? '' : '<span>'.gmdate('D, F j, Y g:ia',$a['_tern_wp_youtube_published'][0]).'</span>';

It's a hack but it'll solve your problem.

I got the same problem and that hack didn't help either.

When a video is posted by that plugin, there's no way to delete it, even if you empty the fields "Youtube Id , Youtube Publish Date and YouTube Author", you will keep seeing the black youtube window empty in the post.

Any other way to solve this?

Re: Cannot make Youtube code delete

If you're unable to remove the video's values from the post, there are two things you could do:

1. Delete the values manually from the wp_usermeta table in your database.
2. Create a new post (copying the one in question) and deleting the problem post.

Neither of these solutions are elegant or preferred but they'll work in the meantime before I can issue a new version of the plugin.