jpadie
Forum Replies Created
-
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)Forum: Plugins
In reply to: After PDO (SQLite) For WordPress Installation only a blank page gets renderedhi
i don’t support pdo for sqlite from these pages. if you have an issue please post at rathercurious.netthanks
justin
(author of PDO For WordPress)Forum: Fixing WordPress
In reply to: Problem with e-mail sender namewhy 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; }
Forum: Plugins
In reply to: Feed Burner Plugin: invalid header in wp 2.8this is not a function of compatibility. something weird has been introduced between 2.8.0 beta2 and the release version… smells like a bug.
Forum: Plugins
In reply to: WordPress 2.8 “The plugin does not have a valid header.”likewise…
and further the forcibly deactivated plugins no longer show up in the plugin list.Forum: Fixing WordPress
In reply to: 10px added to width in image captions?@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 themeit’s pretty simple to do yourself without a plugin. check out wp_insert_post()
Forum: Plugins
In reply to: Customise the standard add post/page screensolution 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(); ?>
Forum: Plugins
In reply to: Removing meta boxes from post-new.phpi 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(); ?>
Forum: Plugins
In reply to: More Fields Plugin Remove Meta Boxes instead of Hiding them with Jqueryi 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(); ?>
Forum: Plugins
In reply to: Removing meta boxes from post-new.phphello
has any one found a solution or workaround to this?Forum: Plugins
In reply to: Easy post menu using themecheck out tdo mini forms
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
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.Forum: Requests and Feedback
In reply to: Control of image caption widthand here’s a plugin that will do this without a core hack.
https://www.ads-software.com/support/topic/189254?replies=13#post-925819