allyn
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Fastest way 2get my offline journal (with multiple entries) online?i was faced with a similar problem when i moved my home-grown blog into wordpress (~200 entries). i wrote a perl script that read in my blog entries (which were stored in a flat text file) and output the whole thing in xml such that it could be imported into wordpress using the wp-admin/import-rss.php procedure.
if you have any familiarity with a text processing language (like perl) and your blog is well-formatted this might be a way to go.
here’s the gist of the xml you’ll need at the start:
<rss version=”2.0″ xmlns:dc=”https://purl.org/dc/elements/1.1/”>
<channel>then each post looks like this:
<item>
<pubdate>$day $mon $year $hour:$min:00 +0000</pubdate>
<category>$category</category>
<title>$title</title>
<description>$body</description>
</item>and then this goes at the end:
</channel>
</rss>Forum: Plugins
In reply to: SonyEricsson phones, html email & wp-KeitaiMailhow did you get keitaimail to work with 1.5? i was just trying it for a friend and ran into the following problems:
class-xmlrpc.php was missing so i copied that from a 1.2 installation, but then i was getting an error with mimedecode that said something like “use of $this here is illegal” or something like that. so i gave up.any hints?
Forum: Fixing WordPress
In reply to: word “limit” not allowed in slug?yes, i found this code in the page navigation:
if ($pos = strpos(strtoupper($request), "LIMIT")) {
$nxt_request = substr($request, 0, $pos);
here’s a fix:
if ($pos = strpos(strtoupper($request), " LIMIT ")) {
$nxt_request = substr($request, 0, $pos+1);
Forum: Fixing WordPress
In reply to: word “limit” not allowed in slug?i think it is my page navigation plugin, “page navigation 1.2” by GaMerZ.
Forum: Fixing WordPress
In reply to: spam and trackback attacki use the wpblacklist plugin which is working pretty well for comments but i just got a bunch of trackback spam, which apparently doesn’t go through wpblacklist.
is there a way to get wpblacklist to scan trackbacks?
Forum: Fixing WordPress
In reply to: Blog by Email using GMail?sounds like google only supports secure pop (port 995), and wordpress only supports regular pop (port 110).
that makes gmail incompatible, at least until someone fixes wordpress.
Forum: Fixing WordPress
In reply to: CoAdmin should be able to delete commentswordpress policy seems to be that a level N user can only edit/delete the comments from level N-1 user posts. this is probably why normally users are restricted to level 9 (so the admin user at level 10 can do anything).
this doesn’t really make sense because a level N user can edit the contents of another level N user’s posts.
anyway, the fix is to go through edit.php and edit-comments.php and change code that looks like this:
($user_level > $authordata->user_level)
and add an = sign to make it look like this:
($user_level >= $authordata->user_level)
if you have the wpblacklist plugin, you’ll also want to edit the wpblsearch.php and wpblmoderate.php files.
Forum: Fixing WordPress
In reply to: Comment Editing/Deletion Quirkok, i figured this out.
wordpress policy seems to be that a level N user can only edit/delete the comments from level N-1 user posts. this is probably why normally users are restricted to level 9 (so the admin user at level 10 can do anything).
this doesn’t really make sense because a level N user can edit the contents of another level N user’s posts.
anyway, the fix is to go through edit.php and edit-comments.php and change code that looks like this:
($user_level > $authordata->user_level)
and add an = sign to make it look like this:
($user_level >= $authordata->user_level)
if you have the wpblacklist plugin, you’ll also want to edit the wpblsearch.php and wpblmoderate.php files.
Forum: Plugins
In reply to: WordPress Mobile Edition 1.7with 1.2, the plugin gave me an apache internal server error from mobile browsers until i replaced this code:
global $siteurl;
$URL = $siteurl.'/wp-mobile.php?';with
$URL = get_settings('siteurl').'/wp-mobile.php?';
Forum: Fixing WordPress
In reply to: Comment Editing/Deletion Quirki find that only user that created the post can delete comments in the control panel. even if all users are level 10.
does anyone have a fix for this so any level 10 user can delete any comments?
Forum: Plugins
In reply to: Mobloggingi’m using keitai mail. it is easily customizable.
https://unknowngenius.com/blog/archives/2004/08/23/wp-keitai-mail-plugin-v-10/
it was difficult to get working because of bugs in wordpress’ xmlrpc.php file. but i can’t blame that on keitai mail.
the two bugs in xmlrpc.php are as follows:
1. around line 1309, the print_r call is missing a “,1” second parameter. this causes the output to appear where the xmlrpc should be, causing keitai mail to believe the post has failed when it hasn’t.2. xmlrpc.php has trouble figuring out the time zone and correct UTC time offset. this causes posts to not appear for hours because they are timestamped in the future. so i commented out the timestamp voodoo that starts around line 1299 and replaced it with these two lines:
$post_date = current_time("mysql");
$post_date_gmt = current_time("mysql", 1);