Support » Plugins » Podcasting 1.0 Plugin

  • We installed the plugin, but we do not get a Send-to-Editor button in the WYSIWYG editor. We have added the podcast url, the author, tags, and updated the information, but that’s it.

Viewing 15 replies - 1 through 15 (of 16 total)
  • We finally have figured out the Send to Editor button, but here’s the deal:

    We do the Send to Editor and we get this:


    but there is no player on the post at all. What are we doing wrong? Thanks.

    I worked with pcsmythe to resolve a htaccess issue with thire webhost. This topic can now be marked resolved.

    Could you shed any light on what the issue was? I am having the exact same issue. I cannot get your plugin or Podpress to work on my site.

    lostgorilla, most likely you uploaded the files contained in the podcasting folder directly to your wp-content/plugins folder. The correct structure should be to upload the whole podcasting directory to wp-content so it looks like this:


    On WordPress-MU, 2.3, when I click ‘Send to editor’, nothing happens.

    Any ideas?


    Did you verify everything is in the correct location per the reply above you? If you have, I’ll some testing with WordPress MU tomorrow and see if I notice anything out of the ordinary.

    On WordPress-MU, 2.3,

    Then don’t post here. MU has its own forum!

    Yeah, /wp-content/plugins/podcasting/readme.txt (for example) shows the expected text on the site, so the files are in the right spot.

    I’m not getting any JavaScript errors, just “nothing” when I click “Send to editor”.

    Sorry if this was the wrong place to post this. Since it’s specific to this plugin, I thought this was the right place even though it seems to be an MU/plugin interaction.


    If you manually copy the file url and add [podcast] [/podcast] around it, does the player show up in a post?

    Yeah, that works. The ‘Send to Editor’ button also works if I put the post editor Code mode. So I think you may need to do something like this:

    Adding Quicktags to WordPress and to the TinyMCE Editor for WP Plugin Authors in Many Easy Steps

    to get the += stuff to append correctly in code/visual (and in different browsers).


    Doh! That would be the problem. I never took into account the visual editor as I’m always in code mode. I’m stacked up on school work at the moment, but as soon as I have time, I’ll put out a fix for the problem.

    I also see that /wp-admin/js/upload.js has some of this kind of code, but it’s not really as clean for you as the other link.

    I’ve modified this plugin to add support for both the code view editor or the WYSIWYG text editor using some of the information from the link suggested by gcrocker (thanks btw).

    Here’s the code that I’ve added / modified to make it work (I had to hack the window.opener sections of the JS as well as the id’s used within the pages – there’s probably a better way but this is a quick fix…sorry). Enjoy:

    Added the following lines:

    add_action('admin_footer', 'insert_podcast_editor_js');
    // Insert JavaScript to insert [podcast]url[/podcast] into editor or code view
    function insert_podcast_editor_js() {
    	<script language="javascript" type="text/javascript">
    	// Insert myValue (podcast special url string) into an editor window
    	function insertPodcastString(myValue) {
    			alert('inside if mce_editor_0');
    		} else {
    				alert('inside else, found id by content');
    				document.getElementById('content').value += myValue;
    			//alert('inside else for window.tinyMCE');
    			//insertAtCursor(, myValue);
    	// Insert text into the WP regular editor window
    	function insertAtCursor(myField, myValue) {
    		//IE support
    		if (document.selection && !window.opera) {
    			sel = window.document.selection.createRange();
    			sel.text = myValue;
    		else if (myField.selectionStart || myField.selectionStart == '0') {
    			var startPos = myField.selectionStart;
    			var endPos = myField.selectionEnd;
    			myField.value = myField.value.substring(0, startPos)
    			+ myValue
    			+ myField.value.substring(endPos, myField.value.length);
    		} else {
    			myField.value += myValue;

    Changed this snippet:
    onClick="document.getElementById('content').value += '\n\n [podcast]<?php echo trim($enclosure_value[0]); ?>[/podcast] />
    onClick="insertPodcastString('[podcast]<?php echo trim($enclosure_value[0]); ?>[/podcast]')" />

    If this code doesn’t work properly (I’m guessing it won’t with PHP tags and all….) then shoot me an e-mail or I’ll repost with a paste link.

    Sorry – I left my alerts and extra debugs that were commented out in the last post. Just remove the alert(…) lines (two of them iirc) and the // comment lines from inside the new function.

    Hello stevenhaddox,

    Thanks for doing that. If you don’t mind, can I include your code in the next release of Podcasting? The release won’t come out until later next week at the earliest, but would certainly benefit other Podcasting users.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Podcasting 1.0 Plugin’ is closed to new replies.