Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • Hi Piotrostr

    in principal you need no special tool. just use the export/import function in wordpress and between the two, specify the DB_TYPE in your wp-config.

    let me know if that does not work and i will write a tool to do the migration.

    Justin
    (author of PDO For WordPress)

    hi
    i don’t support pdo for sqlite from these pages. if you have an issue please post at rathercurious.net

    thanks
    justin
    (author of PDO For WordPress)

    why not just plug it?

    <?php
    /*
    Plugin Name: Change Email From Address/Name
    Plugin URI: https://rathercurious.net
    Description: changes the email from address
    Version: 0.1.0
    Author: Justin Adie
    Author URI: https://rathercurious.net
    */
    
    class emailFrom{
    	public function __construct(){
    		add_filter('wp_mail_from', array(&$this, 'doEmailFilter'),10, 1);
    		add_filter('wp_mail_from_name', array(&$this, 'doEmailNameFilter'), 10, 1);
    	}
    
    	public function doEmailFilter($data){
    		return '[email protected]';
    	}
    	public function doEmailNameFilter($data){
    		return 'My Name';
    	}
    }
    $_ef = new emailFrom();
    
    ?>

    the annoyance that i have is that ampersands seem to come through as their literal html equivalent and the various email clients that i have (apple MAIL and Entourage) do not seem to translate back into html characters (at least in the subject). this can also be plugged if you want. add this filter to the constructor

    add_filter('wp_mail', array(&$this, 'decode'), 10,1);

    and add this method to the class

    public function decode($array){
    		$array['subject'] = html_entity_decode($array['subject']);
    		return $array;
    	}

    this is not a function of compatibility. something weird has been introduced between 2.8.0 beta2 and the release version… smells like a bug.

    likewise…
    and further the forcibly deactivated plugins no longer show up in the plugin list.

    @reverb09
    save the text to a new file in wp-content/plugins. does not matter what it’s called. as The Monkeyboy says.

    @revolutionfrance
    the code is OOP and so properly compatible only with php5. it’s easy enough to convert to php4 though. delete the word ‘public’ in the method declarations and change ‘public’ to ‘var’ in the property declaration

    @xamataca
    i agree- this is a rare example of very poor core coding.

    Forum: Plugins
    In reply to: Easy post menu using theme

    it’s pretty simple to do yourself without a plugin. check out wp_insert_post()

    Thread Starter jpadie

    (@jpadie)

    solution found.

    <?php
    /*
    Plugin Name: removeMetaBoxes
    Plugin URI: https://rathercurious.net
    Description: Allows core meta boxes to be removed
    Author: Justin Adie
    Version: 1.0
    Author URI: https://rathercurious.net
    */
    
    class removeMetas{
    	public function __construct(){
    		add_action('do_meta_boxes', array($this, 'removeMetaBoxes'), 10, 3);
    	}
    
    	public function removeMetaBoxes($type, $context, $post){
    		/**
    		 * usages
    		 * remove_meta_box($id, $page, $context)
    		 * add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default')
    		 */
    		$boxes = array(	'slugdiv', 'postexcerpt', 'passworddiv', 'categorydiv',
    						'tagsdiv', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv',
    						'authordiv', 'revisionsdiv', 'postcustom');
    
    		foreach ($boxes as $box){
    			foreach (array('link', 'post', 'page') as $page){
    				foreach (array('normal', 'advanced', 'side') as $context){
    					remove_meta_box($box, $type, $context);
    				}
    			}
    		}
    	}
    }
    
    $removeMetas = new removeMetas();
    ?>

    i have a solution now. this plugin should work

    <?php
    /*
    Plugin Name: removeMetaBoxes
    Plugin URI: https://rathercurious.net
    Description: Allows core meta boxes to be removed
    Author: Justin Adie
    Version: 1.0
    Author URI: https://rathercurious.net
    */
    
    class removeMetas{
    	public function __construct(){
    		add_action('do_meta_boxes', array($this, 'removeMetaBoxes'), 10, 3);
    	}
    
    	public function removeMetaBoxes($type, $context, $post){
    		/**
    		 * usages
    		 * remove_meta_box($id, $page, $context)
    		 * add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default')
    		 */
    		$boxes = array(	'slugdiv', 'postexcerpt', 'passworddiv', 'categorydiv',
    						'tagsdiv', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv',
    						'authordiv', 'revisionsdiv', 'postcustom');
    
    		foreach ($boxes as $box){
    			foreach (array('link', 'post', 'page') as $page){
    				foreach (array('normal', 'advanced', 'side') as $context){
    					remove_meta_box($box, $type, $context);
    				}
    			}
    		}
    	}
    }
    
    $removeMetas = new removeMetas();
    ?>

    i guess there are two alternative approaches:

    1. do not rely on javascript but instead set the various div id’s to display:none in the css. the meta boxes will download still but they will not ‘load’ on the page and this should save the rendering engine some time and speed up the process.

    2. at least in 2.8 and 2.7.1 (i’ve not checked any further back) there are action hooks for do_meta_boxes (for normal, advanced and side). i think you should be able to hook into any one of these and use the remove_meta_box() function to remove the offending metaboxes. something like this plugin should work

    <?php
    /*
    Plugin Name: removeMetaBoxes
    Plugin URI: https://rathercurious.net
    Description: Allows core meta boxes to be removed
    Author: Justin Adie
    Version: 1.0
    Author URI: https://rathercurious.net
    */
    
    class removeMetas{
    	public function __construct(){
    		add_action('do_meta_boxes', array($this, 'removeMetaBoxes'), 10, 3);
    	}
    
    	public function removeMetaBoxes($type, $context, $post){
    		/**
    		 * usages
    		 * remove_meta_box($id, $page, $context)
    		 * add_meta_box($id, $title, $callback, $page, $context = 'advanced', $priority = 'default')
    		 */
    		$boxes = array(	'slugdiv', 'postexcerpt', 'passworddiv', 'categorydiv',
    						'tagsdiv', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv',
    						'authordiv', 'revisionsdiv', 'postcustom');
    
    		foreach ($boxes as $box){
    			foreach (array('link', 'post', 'page') as $page){
    				foreach (array('normal', 'advanced', 'side') as $context){
    					remove_meta_box($box, $type, $context);
    				}
    			}
    		}
    	}
    }
    
    $removeMetas = new removeMetas();
    ?>

    hello
    has any one found a solution or workaround to this?

    Forum: Plugins
    In reply to: Easy post menu using theme

    check out tdo mini forms

    Thread Starter jpadie

    (@jpadie)

    i believe this is a bug in the WP code that has been around since 2.5, baiscally treating 8 the same as 08 etc.

    i have a fix that i’m working on. please log all support requests in my blog: rathercurious.net

    Thread Starter jpadie

    (@jpadie)

    thank you. testing is ongoing for version 2.7.
    I have no experience with MSSql. but would be happy to work with anyone that does have experience.

    and here’s a plugin that will do this without a core hack.
    https://www.ads-software.com/support/topic/189254?replies=13#post-925819

Viewing 15 replies - 1 through 15 (of 35 total)