Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Author ternstyle

    (@mpraetzel)

    Change line 30 of /core/video.php from:

    add_filter('the_content','WP_ayvpp_content');

    to:

    //add_filter('the_content','WP_ayvpp_content');

    Thread Starter EmuZone

    (@emuzone)

    This above solution still leaves an empty Automatic Youtube Video Posts iFrame in other post!

    This term (<?php tern_wp_youtube_video(); ?>)is causing an empty YouTube iFrame in none Automatic Youtube Video Posts when I add it in manually using the <?php tern_wp_youtube_video(); ?> term!

    How can I get the video holder (ect)<?php tern_wp_youtube_video(); ?>
    Automatic Youtube Video Posts iFrame to only display on Automatic Youtube Video Posts as its leaving an empty YouTube iFrame in other post?

    Plugin Author ternstyle

    (@mpraetzel)

    Check to see if the video exists first.

    <?php if(get_post_meta($post->ID,'_tern_wp_youtube_video',true) { ?>
    <?php tern_wp_youtube_video(); ?>
    <?php } ?>
    Thread Starter EmuZone

    (@emuzone)

    This above code is causing a page error (eg) black page, page doesn’t complete session!

    Plugin Author ternstyle

    (@mpraetzel)

    Whoops…missed a parenthesis.

    <?php if(get_post_meta($post->ID,'_tern_wp_youtube_video',true)) { ?>
    <?php tern_wp_youtube_video(); ?>
    <?php } ?>
    Thread Starter EmuZone

    (@emuzone)

    Resolved: Requires embed video function!

    <?php $disable = of_get_option( 'disable_features' ); $video_url = get_post_meta($post->ID,'_tern_wp_youtube_video',true); $embeded_code = get_post_meta($post->ID,'_tern_wp_youtube_video',true); ?><?php if($video_url !='' || $embeded_code != '') { ?><?php tern_wp_youtube_video(); ?><?php } ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thread Starter EmuZone

    (@emuzone)

    Video Function!

    [Please see the note above about posting code on these forums]

    mpraetzel and EmuZone i LOVE YA”S CHEERS!

    hello dear;
    i am using DETUBE Themeforest theme how can i get automatic iframe code at detube video code area ? (detube theme option name is dp_video_code() )

    Thread Starter EmuZone

    (@emuzone)

    /*———————————————————————————–*/
    /* Framework
    /*———————————————————————————–*/

    if ( !function_exists( 'of_get_option' ) ) {
    	function of_get_option($name, $default = false) {
    
    	    $optionsframework_settings = get_option('optionsframework');
    
    	    // Gets the Unique Option ID
    	    $option_name = $optionsframework_settings['id'];
    
    	    if ( get_option($option_name) ) {
    	        $options = get_option($option_name);
    	    }
    
    	    if ( isset($options[$name]) ) {
    	        return $options[$name];
    	    } else {
    	        return $default;
    	    }
    	}
    }

    Thread Starter EmuZone

    (@emuzone)

    005vinay, can you please collaborate more on what you are trying to achieve?

    More information is required!(automatic iframe code at detube video code area)

    first see my blog here. you plugin is putting youtube video link in the content area, but i am using detube themeforest theme and its provide custom post option there you can put your iframe code.

    so need that, your plugin should automatic put iframe code in that iframe option of my theme. and if you want i can give you detube theme soyou can test first. email me 005vinay@gmail.com i will send you detube theme.

    Thread Starter EmuZone

    (@emuzone)

    You can add my embed function directly into any WordPress theme!

    This is a very adoptable function!

    This adds a meta box to the post page to enable you to add embed codes into your posts.

    Visit https://www.codecentral.org/embed to find out how!

    Thread Starter EmuZone

    (@emuzone)

    Place this code into your themes single.php.

    Requires my embed function and meta-boxes!

    Place this code where you would like your Automatic Youtube Video to appear.

    This code will check the post meta data for an Automatic Youtube Video, if no video is found it will disable the iFrame and hide it.

    <?php $disable = of_get_option( 'disable_features' ); $video_url = get_post_meta($post->ID,'_tern_wp_youtube_video',true); $embeded_code = get_post_meta($post->ID,'_tern_wp_youtube_video',true); ?><?php if($video_url !='' || $embeded_code != '') { ?><?php tern_wp_youtube_video(); ?><?php } ?>

    To disable Automatic Youtube Video iFrame in content area:

    Change line 30 of /core/video.php from:
    add_filter(‘the_content’,’WP_ayvpp_content’);
    to:
    //add_filter(‘the_content’,’WP_ayvpp_content’);

    Please let me know if you have any problems adding the embed function to any of your WordPress themes? Please reply here and also on https://www.codecentral.org/embed so to help any others trying to achieve this!

    i think you don’t get it.
    i have detube theme, that has already metabox for video code. i want to put automatic iframe code in that theme default meta box.
    if i am trying to put your meta box options than i have to make many changes in my theme and that is not good idea.

    please try to put iframe code in to detube theme’s default metabox.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Changing Video (iFrame) Location’ is closed to new replies.