Viewing 15 replies - 1 through 15 (of 29 total)
  • Plugin Author Tubal

    (@tubal)

    Hi, lemonjenny,

    What version of wordpress are you using?
    Did you have any other Youtube plugin installed when you tested mine?

    Without any more details, all I can tell you is to try the following solutions in the order specified after you’ve activated the Youtube shortcode plugin:
    1. Disable any other Youtube plugin and any plugin that modifies the rich text editor (post editor) and test again.
    2. Clear your browser’s cache and test again.
    3. Deactivate my plugin and activate it again.

    I’m here to help ??

    I am running the latest version of wordpress, no other youtube plugin installed. all updates are made. I disabled all plugins and systematically enabled all plugins and when i came back to yours i am having the same issue where visual mode is not working. I have ran into this before with a plugin where it initializes jquery a second time after it has already been enabled. I have not found where to edit this plugin to get the visual mode to work. any help would be appreciated.
    Thanks.

    So there where two differences in the pages, The first one was on this line. first one is one without the plugin enabled and the second one is one with your plugin enabled.

    },relative_urls:false,remove_script_host:false,convert_urls:false,remove_linebreaks:true,gecko_spellcheck:"false",keep_styles:false,entities:"38,amp,60,lt,62,gt",accessibility_focus:true,tabfocus_elements:"major-publishing-actions",media_strict:false,paste_remove_styles:true,paste_remove_spans:true,paste_strip_class_attributes:"all",paste_text_use_dialog:true,extended_valid_elements:"article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],embed[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary,time[*],video[*],wbr",wpeditimage_disable_captions:false,wp_fullscreen_content_css:"https://www.billiardgreg.com/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css",plugins:"inlinepopups,spellchecker,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,-cforms,-AtD,-YoutubeShortcodeMargenn,wpfullscreen",elements:"content",wpautop:true,apply_source_formatting:false,theme_advanced_buttons1:"bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,wp_more,|,AtD,wp_fullscreen,wp_adv,separator,cforms,|,YoutubeShortcodeButtonMargenn",theme_advanced_buttons2:"formatselect,underline,justifyfull,forecolor,|,pastetext,pasteword,removeformat,|,charmap,|,outdent,indent,|,undo,redo,wp_help",theme_advanced_buttons3:"",theme_advanced_buttons4:"",atd_rpc_url:"https://www.billiardgreg.com/wp-admin/admin-ajax.php?action=proxy_atd&url=",atd_ignore_rpc_url:"https://www.billiardgreg.com/wp-admin/admin-ajax.php?action=atd_ignore&phrase=",atd_rpc_id:"WPORG-321af3fadcc90d7bf470a30f053ab102",atd_theme:"wordpress",atd_ignore_enable:"true",atd_strip_on_get:"true",atd_ignore_strings:"",atd_show_types:""}},

    },relative_urls:false,remove_script_host:false,convert_urls:false,remove_linebreaks:true,gecko_spellcheck:"false",keep_styles:false,entities:"38,amp,60,lt,62,gt",accessibility_focus:true,tabfocus_elements:"major-publishing-actions",media_strict:false,paste_remove_styles:true,paste_remove_spans:true,paste_strip_class_attributes:"all",paste_text_use_dialog:true,extended_valid_elements:"article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],embed[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary,time[*],video[*],wbr",wpeditimage_disable_captions:false,wp_fullscreen_content_css:"https://www.billiardgreg.com/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css",plugins:"inlinepopups,spellchecker,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,-cforms,-AtD,wpfullscreen",elements:"content",wpautop:true,apply_source_formatting:false,theme_advanced_buttons1:"bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,wp_more,|,AtD,wp_fullscreen,wp_adv,separator,cforms",theme_advanced_buttons2:"formatselect,underline,justifyfull,forecolor,|,pastetext,pasteword,removeformat,|,charmap,|,outdent,indent,|,undo,redo,wp_help",theme_advanced_buttons3:"",theme_advanced_buttons4:"",atd_rpc_url:"https://www.billiardgreg.com/wp-admin/admin-ajax.php?action=proxy_atd&url=",atd_ignore_rpc_url:"https://www.billiardgreg.com/wp-admin/admin-ajax.php?action=atd_ignore&phrase=",atd_rpc_id:"WPORG-321af3fadcc90d7bf470a30f053ab102",atd_theme:"wordpress",atd_ignore_enable:"true",atd_strip_on_get:"true",atd_ignore_strings:"",atd_show_types:""}},

    The only other thing I noticed is that when your plugin is disabled it shows 3 cforms sections and with your plugin enabled it only shows 2 a little but later on. But I am not sure where the issue is cause with your plugin enabled and cforms disabled it still does not allow me to see the visual editor.

    Plugin Author Tubal

    (@tubal)

    Hi BilliardGreg,

    I’ll look into this.

    As soon as I can explain this odd behavior I’ll post my findings here.

    err the lines of code might be reversed, so much code to look at, lol

    Plugin Author Tubal

    (@tubal)

    Please make a quick test:

    – Enable debug mode in wp-config.php
    – Disable all plugins except Youtube shortcode and check the visual editor.

    Any PHP errors/notices, visual editor still corrupted?

    Please clear your browser cache before testing.

    Report!

    Plugin Author Tubal

    (@tubal)

    I’ve installed the Cforms plugin (latest version) in the docs site (wp 3.3.1 with Youtube shortcode 1.8.3 installed).

    Cforms is a buggy plugin IMO, you should avoid it because there’re better alternatives such as Contact Form 7.

    To the topic:

    Once installed the visual editor loads fine, but if you insert a cform in the editor, all stops working because the cforms plugin throws an error :S

    I don’t know what version of cforms you’re using but my best advice is to avoid it.

    Are you using any other plugin that adds a button to the visual editor?

    Enabled Debug Mode, Disabled all plugins except for shortcode plugin and visual editor is still disabled. no php errors or notices with debug mode on. and made sure cached was cleared in browser.

    Plugin Author Tubal

    (@tubal)

    Nice!

    Could you paste the browser console log? Maybe a Javascript error has been thrown. That would help me a lot.

    Not sure where to find the log files you are looking for. Tried in two other browsers. Visual editor works in ie but not in firefox or chrome. and i have ie showing javascript errors and none where thrown.

    Plugin Author Tubal

    (@tubal)

    Easy, in Chrome: right click -> Inspect element -> Console tab

    now we are getting somewhere

    i know its not a solution to the prob but i changed the code here

    // Register our TinyMCE Script
    	function add_tinymce_button_script($plugin_array) {
    		//$plugin_array['YoutubeShortcodeMargenn'] = plugins_url('tinymcebutton.js.php?params='.$this->get_pop_up_params(), __FILE__);
    		//return $plugin_array;
    return false;
    	}

    which allowed the visual editor to start working again in all browsers. although there are no extra buttons anywhere on the tinymce editor for even other plugins so there has to be something going on with the new wordpress update.

    Plugin Author Tubal

    (@tubal)

    No, if you want to disable the Youtube button modify your snippet like this:

    // Register our TinyMCE Script
    function add_tinymce_button_script($plugin_array) {
    	//$plugin_array['YoutubeShortcodeMargenn'] = plugins_url('tinymcebutton.js.php?params='.$this->get_pop_up_params(), __FILE__);
    	return $plugin_array;
    }
Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘[Plugin: Youtube shortcode] It screwed up my Dashboard’ is closed to new replies.