Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just found this post while looking for the same recommendation. I did find this blog entry which seems like it would work well:

    http://benlancaster.wordpress.com/2009/02/12/wordpress-update-svn-vendor-branch/

    I had the same problem – be sure to update your plugin file to include the “Stable tag” as well.

    So if your plugin was named “my-plugin” you would have to go into your plugin file “my-plugin.php” and update the Stable tag there as well, not just the readme.txt file.

    Took me a few weeks to realize that so nobody was downloading my updating files!

    Just to add to the discussion – I recently was working on a site that had a massive amount of content. We ended up with about 500 or so pages, and over 1500 media files that we imported using a custom import script.

    Originally we had the %category% tag in the permalink (out of ignorance of this issue). As soon as we imported this content we found the site taking nearly 10 seconds to even begin displaying a page. I suspected an issue with the database calls and low and behold – each page was running over 1200 queries on each load!! Once we switched the permalink structure to a %postid%/%postname% it jumped back down to about 10 or so.

    Lesson learned!

    This is sort of a “hacked” way of doing this, but it solved the problem for me when viewing RSS feed pages.

    Open the main plugin file – yarpp.php – and right about the line require_once(‘includes.php’), add these lines:

    $url = $_SERVER['REQUEST_URI'];
    $split = explode('/', $url);
    if ($split[sizeof($split)-1] != 'feed') {

    and then at the bottom of that file add the closing brace. So any page you go to that ends in /feed will not load the YARPP plugin. Should work for most cases unless you have a post titled “feed” or something crazy like that.

    So with the version I am using the entire file would be

    <?php
    /*
    Plugin Name: Yet Another Related Posts Plugin (uwemp modified)
    Plugin URI: http://mitcho.com/code/yarpp/
    Description: Returns a list of the related entries based on a unique algorithm using titles, post bodies, tags, and categories. Now with RSS feed support!
    Author: mitcho (Michael Yoshitaka Erlewine)
    Author URI: http://mitcho.com/
    */
    // Do NOT load plugin for feed pages
    $url = $_SERVER['REQUEST_URI'];
    $split = explode('/', $url);
    if ($split[sizeof($split)-1] != 'feed') {
    	require_once('includes.php');
    	require_once('related-functions.php');
    
    	add_action('admin_menu','yarpp_admin_menu');
    	add_action('admin_print_scripts','yarpp_upgrade_check');
    	add_filter('the_content','yarpp_default',1200);
    	add_filter('the_content_rss','yarpp_rss',600);
    	add_filter('the_excerpt_rss','yarpp_rss_excerpt',600);
    	register_activation_hook(__FILE__,'yarpp_activate');
    
    	load_plugin_textdomain('yarpp', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)), dirname(plugin_basename(__FILE__)).'/lang',dirname(plugin_basename(__FILE__)).'/lang');
    
    	// new in 2.0: add as a widget
    	add_action('plugins_loaded', 'widget_yarpp_init');
    }
    ?>

    Hope that helps!

    I’m not using superedit, but I was creating something similar for a custom plugin. After hours of looking into this I ended up solving it by marking the user setting “hidetb” to a value of “1”. I actually have no idea what this does, but it made things start working for me.

    So in my page (you would probably have to modify the WP Super Edit plugin) I have these 3 lines now:

    tinyMCEPreInit.go();
    setUserSetting(‘hidetb’, ‘1’);
    tinyMCE.init(tinyMCEPreInit.mceInit);

    That removed the “ed.controlManager.get(tbId) is undefined (editor_plugin.js Line 23)” error and it started working.

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