mpickell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Old Scoop CMS database import?One things this does not do is pull diaries as post-type “page”. I believe it pulls them as normal posts. that could be an improvement if someone needs it.
Forum: Fixing WordPress
In reply to: Old Scoop CMS database import?Sorry, i didn’t get to it last night but i did tonight…
Here’s a link to a writeup i did on it:
http://mpickell.com/blog/2012/04/06/convert-an-old-scoop-cms-to-wordpress/Forum: Fixing WordPress
In reply to: Old Scoop CMS database import?I couldn’t find a link on your profile, but i’ve been meaning to put this up on my blog… i’ll do that tonight and send you the link so you can get it.
Forum: Plugins
In reply to: Register for site in WPTouch?Anyone use this?
Forum: Plugins
In reply to: Register for site in WPTouch?I see on the ‘account login’ screenshot here a link to do it… But I can’t see that link on my site. I have ‘anyone can register’ checked in Settings->General, but that doesn’t seem to matter.
I also looked through the WPTouch settings and I didn’t see anything to enable it.
Any suggestions would be appreciated.
Here’s the summary…
1) Get jQueryify here and add the bookmarklet per the instructions.
2) When you get to the “assign authors” page, right-click on the browser page and select “Inspect Element” (Chrome), or “Inspect with Firebug” in Firefox (install firebug if you haven’t already). In IE press F12 to start the Dev Tools.
3) Press the jQuerify bookmarklet button that you installed from step 1. This will turn on jQuery for the page.
4) Go to the console tab, enable the console if you need to, paste this code in and press RUN:
jQuery.noConflict(); //Disable jQuery $ just incase.
jQuery(‘#authors li’).each(function() {
// Get the author login text
var username = jQuery(this).find(‘strong’).html();
var author_login = jQuery.trim((username.split(‘(‘))[0]);//Figure out which option this author is in the drop down.
var selectOptionval = -1;
jQuery(this).find(‘select option’).each(function(){
if (jQuery(this).html() === author_login) {
selectOptionval = jQuery(this).val();
return false;//quit .each() early.
}
});// Set the combo box to this author’s option key.
jQuery(this).find(‘select’).val(selectOptionval);
// For test…
//console.log(author_login + “: ” + selectOptionval);
});–REMOVED– I fixed the last comment so i removed this comment.
Here’s a hack solution that fit my need. With almost 500 users i couldn’t select all of these by hand.
I wrote it up on my blog so i could put better description in it
On that “Assign Authors” page, option 1 is “import this username” suggests to me that i’m importing that same user… it’s a little confusing
Is it possible to get something i could throw in the
author_select()function of the plugin as a temp fix to select the “or assign posts to…” option and have its selection match the$author['author_login']or$author['author_display_name']name (whichever is needed… mine are the same)?I think i may be able to go back using firebug and auto-select all of those if that is necessary… but is that the best way?
no, i have 470 users… would i have to do that in order to get this result?
that might be a nice “fill all” checkbox…
you try temporarily editing the @ini_set line in wp-admin/admin.php
to something like
@ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', '500M' ) );This might not be necessary if you do what is in esmi’s link, but might be worth a try.
or a problem with the import file having an older user id and the new wordpress blog having already given that user a new id?
Maybe this line:
$user_id = wp_insert_user( $user_data );in the
get_author_mapping()function of the plugin is returning an error and therefore defaulting (in the following lines) to admin?If that’s the case, then this “insert user” call should be returning the existing user, or maybe a retry on this call with the author’s ‘user_pass’ field blanked out since it is randomly generated each time and will never match an existing user?
Just throwing something out there. i’ll add more debug lines to the plugin tonight and try to see where it is failing.
Forum: Fixing WordPress
In reply to: Old Scoop CMS database import?I have a script for this now that i’m finalizing… i’ll post it on my blog and link to it here. It works well. Converts Scoop database authors, tags, posts, and comments into the WordPress extended RSS format (WXR).
If someone needed it now i could send you the current script, just let me know here. It’s a php script.
The only problem i’m having now is that when i create multiple files (split because of large file size), only the first import is putting authors on the comments… but if you change the memory and file size parameters as mentioned here, it loads a very large (400M+) file successfully.