Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ablesa

    (@ablesa)

    I have succeed in just posting in the table the EMBED code, like this on parse.php file:

    function WP_ayvpp_add_meta($i) {
    global $tern_wp_youtube_fields,$tern_wp_youtube_array;
    foreach($tern_wp_youtube_fields as $v) {
    delete_post_meta($i,$v);
    if(!empty($tern_wp_youtube_array[$v]) or !empty($_POST[$v])) {
    $m = empty($tern_wp_youtube_array[$v]) ? $_POST[$v] : $tern_wp_youtube_array[$v];
    //UPDATE META YOUTUBE
    update_post_meta($i,$v,$m);

    }
    }

    $m = get_post_meta($i,’_thumbnail_id’,true);
    if(!wp_is_post_revision($i) and (!$m or empty($m) or (is_string($m) and strlen($m) < 1))) {
    //UPDATE META YOUTUBE
    update_post_meta($i,’_thumbnail_id’,$tern_wp_youtube_array[‘_tern_wp_youtube_video’]);

    //EMBED VIDEO FUNCTION
    //ADD NEW META FIELDS
    add_post_meta($i,’wpzoom_is_featured’,’1′);
    add_post_meta($i,’wpzoom_post_template’,’side-right’);
    add_post_meta($i,’wpzoom_post_embed_location’,’In the middle column’);
    add_post_meta($i,’wpzoom_video_type’,’external’);
    $embed_code='<iframe width=”420″ height=”315″ src=”//www.youtube.com/embed/’.$tern_wp_youtube_array[‘_tern_wp_youtube_video’].'” frameborder=”0″ allowfullscreen></iframe>’;
    add_post_meta($i,’wpzoom_post_embed_code’,$embed_code);
    add_post_meta($i,’wpzoom_post_embed_self’,”);
    add_post_meta($i,’wpzoom_post_embed_hd’,”);
    add_post_meta($i,’wpzoom_post_embed_skin’,’Five’);
    /*UPDATE USELESS META DATA
    update_post_meta($i,’_tern_wp_youtube_published’,”);
    update_post_meta($i,’_tern_wp_youtube_author’,”);
    update_post_meta($i,’_tern_wp_youtube_video’,”);
    update_post_meta($i,’_thumbnail_id’,”);*/

    }
    unset($m);
    return true;
    }

    And making this change in the video.php file:
    function tern_wp_youtube_video_meta($e=true) {
    /*global $post;
    $a = get_post_custom($post->ID);
    $s = ‘<div class=”tern_wp_youtube_video_meta_data”><div class=”tern_wp_youtube_video_meta”>’;
    $s .= tern_wp_youtube_author_link($a[‘_tern_wp_youtube_author’][0],false);
    $s .= empty($a[‘_tern_wp_youtube_published’][0]) ? ” : ‘<span>’.get_the_time(‘D, F j, Y g:ia’).'</span>’;
    $s .= ‘<label>URL:</label><input type=”text” value=”‘.tern_wp_youtube_video_link($a[‘_tern_wp_youtube_video’][0],false).'” onmouseup=”this.select();” />’;
    $s .= ‘<label>Embed:</label><input type=”text” value=”‘.htmlentities(tern_wp_youtube_video(false)).'” onmouseup=”this.select();” />’;
    $s .= ‘</div></div>’;
    if($e) { echo $s; }
    return $s;*/
    }

    I retrieve the same FATAL ERROR!!! :S

    Kel ! could you tell me your social button, twitter and Facebook widget names?
    thanks!

    Just click on the Email Settings tab, go to Email To section, and write down your email one per each line.. like this:

    Email address the messages are sent to (your email). For basic operation, just enter an email address or accept the suggested address already filled in for you.

    If you add multiple email addresses, a drop down list will be created on the contact form. Each contact can have a name and an email address separated by a comma. Separate each contact by pressing enter. If you need to add more than one contact, follow this example:
    Email address the messages are sent to (your email). For basic operation, just enter an email address. If you add multiple email addresses, a drop down list will be created on the contact form. Each contact can have a name and an email address separated by a comma. Separate each contact by pressing enter. If you need to add more than one contact, follow this example:
    If you need to use a comma in the name, escape it with a back slash, like this: \,
    Webmaster,[email protected]
    Sales,[email protected]

    You can have multiple emails per contact using [cc]Carbon Copy. Separate each email with a semicolon. Follow this example:
    Sales,[email protected];[email protected];[email protected]

    You can specify [cc]Carbon Copy or [bcc]Blind Carbon Copy by using tags. Separate each email with a semicolon. Follow this example:
    Sales,[email protected];[cc][email protected];[cc][email protected];[bcc][email protected];[bcc][email protected]

Viewing 4 replies - 1 through 4 (of 4 total)