Forum Replies Created

Viewing 15 replies - 76 through 90 (of 92 total)
  • 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!

    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)

    I am having these problems in IE10, Google Chrome, Mobile: Android!

    Do you need to replace the css in admin-bar.css with the revision (eg) 736485.

    Do I replace the css?

    How do I implement the fix?

    Thread Starter EmuZone

    (@emuzone)

    Whats jQuery.fn.jquery;?

    How is jQuery.fn.jquery; executed?

    When is jQuery.fn.jquery; executed?

    Where is jQuery.fn.jquery; located?

    jQuery’s executed in console!

    JQMIGRATE: Logging is active jquery-migrate.js:21
    JQMIGRATE: jQuery.browser is deprecated jquery-migrate.js:40
    console.trace() jquery-migrate.js:42
    migrateWarn jquery-migrate.js:42
    Object.defineProperty.get jquery-migrate.js:57
    (anonymous function) fancybox.min.js:4
    (anonymous function) fancybox.min.js:32
    fire jquery.js:1037
    self.fireWith jquery.js:1148
    jQuery.extend.ready jquery.js:433
    completed jquery.js:103
    Resource interpreted as Image but transferred with MIME type text/html: "https://www.codecentral.org/".

    jQuery’s executed in console without responsive css!

    JQMIGRATE: Logging is active jquery-migrate.js:21
    JQMIGRATE: jQuery.browser is deprecated jquery-migrate.js:40
    console.trace() jquery-migrate.js:42
    migrateWarn jquery-migrate.js:42

    jQuery’s executed in console with responsive css on admin dashboard!

    JQMIGRATE: Logging is active load-scripts.php:9620
    JQMIGRATE: jQuery.attrFn is deprecated load-scripts.php:9639
    console.trace() load-scripts.php:9641
    migrateWarn load-scripts.php:9641
    Object.defineProperty.get load-scripts.php:9656
    s jquery.mobile.custom.min.js:3
    jQuery.extend.each load-scripts.php:648
    (anonymous function) jquery.mobile.custom.min.js:3
    (anonymous function) jquery.mobile.custom.min.js:3
    (anonymous function) jquery.mobile.custom.min.js:3
    (anonymous function) jquery.mobile.custom.min.js:3
    Resource interpreted as Font but transferred with MIME type application/x-font-woff: "data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAClEAA4AAAAAQ…ewp7CnsKewp7CnCD27CrsKuwq7CrsKu4qsZ19hX2FfYV9hX5Hrb+euH4YAAAAAAVHIeo4AAA==". www.codecentral.org/:241
    JQMIGRATE: jQuery.fn.live() is deprecated load-scripts.php:9639
    console.trace() load-scripts.php:9641
    migrateWarn load-scripts.php:9641
    jQuery.fn.live load-scripts.php:10060
    (anonymous function) akismet.js:32
    fire load-scripts.php:1037
    self.fireWith load-scripts.php:1148
    jQuery.extend.ready load-scripts.php:433
    completed load-scripts.php:103
    Resource interpreted as Font but transferred with MIME type font/woff: "https://themes.googleusercontent.com/static/fonts/opensans/v6/xjAJXh38I15wypJXxuGMBtIh4imgI8P11RFo6YPCPC0.woff". www.codecentral.org/:672
    Resource interpreted as Font but transferred with MIME type font/woff: "https://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxrsuoFAk0leveMLeqYtnfAY.woff". www.codecentral.org/:672
    Resource interpreted as Font but transferred with MIME type font/woff: "https://themes.googleusercontent.com/static/fonts/opensans/v6/PRmiXeptR36kaC0GEAetxmWeb5PoA5ztb49yLyUzH1A.woff".

    jQuery’s executed in console without responsive css on admin dashboard!

    JQMIGRATE: Logging is active load-scripts.php:9620
    JQMIGRATE: jQuery.attrFn is deprecated load-scripts.php:9639
    console.trace() load-scripts.php:9641
    migrateWarn load-scripts.php:9641
    Object.defineProperty.get load-scripts.php:9656
    s jquery.mobile.custom.min.js:3
    jQuery.extend.each load-scripts.php:648
    (anonymous function) jquery.mobile.custom.min.js:3
    (anonymous function) jquery.mobile.custom.min.js:3
    (anonymous function) jquery.mobile.custom.min.js:3
    (anonymous function) jquery.mobile.custom.min.js:3
    JQMIGRATE: jQuery.fn.live() is deprecated load-scripts.php:9639
    console.trace() load-scripts.php:9641
    migrateWarn load-scripts.php:9641
    jQuery.fn.live load-scripts.php:10060
    (anonymous function) akismet.js:32
    fire load-scripts.php:1037
    self.fireWith load-scripts.php:1148
    jQuery.extend.ready load-scripts.php:433
    completed load-scripts.php:103

    I’ve removed responsive css so not to disrupt my users until this has been resolved!

    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)

    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;
    	    }
    	}
    }

    Yes I noticed this to so all I can suggest is to add it to the admin-bar.css manually which you would have to figure out yourself or remove the search box from the admin bar!

    // Remove Admin Bar Menus
    add_shortcode(‘ss_screenshot’, ‘ss_screenshot_shortcode’);
    function remove_admin_bar_links() {
    global $wp_admin_bar;
    $wp_admin_bar->remove_menu(‘search’);}
    add_action( ‘wp_before_admin_bar_render’, ‘remove_admin_bar_links’ );
    add_action( ‘admin_bar_menu’, ‘admin_bar_delete_option’, 40 );

    Thread Starter EmuZone

    (@emuzone)

    Browser: Google Chrome – Latest Version.

    Thread Starter EmuZone

    (@emuzone)

    ? WordPress Version 3.5.2
    ? WordPress language is set to en-US
    ? Linux operating system, Release/Version 2.6.18-308.4.1.el5PAE / #1 SMP
    ? i686 computer hardware
    ? php Version 5.3.25
    ? php memory_limit 256M
    ? Zend engine Version 2.3.0
    ? Web Server software is Apache
    ? MySQL Version 5.5.30-cll

    OS for Mobile: Android.
    OS for Desktop: Windows 7.

    MP6 Version 1.8

    These errors are not due to any of my WordPress Themes.

    Possible Location of the problem!
    mp6 ? components ? responsive ? css ? admin-bar.css
    mp6 ? components ? responsive ? css ? moby6.css

    Thread Starter EmuZone

    (@emuzone)

    Desktop and Mobile error: Home page only!

    Thread Starter EmuZone

    (@emuzone)

    Video Function!

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

    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)

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

    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?

Viewing 15 replies - 76 through 90 (of 92 total)