Mark Jaquith
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: edit-form-advanced.phpThose files aren’t meant to be accessed directly. They are “included” inside of other files. What that person meant was to click the Advanced Editing button on the “Write” screen. That gives you access to custom fields.
Forum: Installing WordPress
In reply to: WP 1.01-1.2.2, error with template-functions.phpI’d try uploading the files again… sounds like they might not have all made it.
Forum: Plugins
In reply to: trencaspammers (antispam) improvementI think you’ll have much better luck with Spam Karma. Plus, you don’t have to modify any WordPress files.
http://unknowngenius.com/blog/wordpress/spam-karma/Forum: Everything else WordPress
In reply to: All the smilies codesYes I do. (First result for Google: “WordPress smilies”, by the way).
http://txfx.net/2004/08/18/wordpress-smilies/Forum: Plugins
In reply to: Anonymous Posting Hack/PluginWordPress 1.3 have an option for level 1 users to be able to submit posts. They won’t go live automatically, but will go live once approved by a high level user.
I used that system here: http://rebrand-democrat.txfx.net/
Over 400 posts by over 150 anonymous users.Forum: Plugins
In reply to: Problems with Recent Posts.Sounds like a typo in my-hacks.php which IS included whether you explicitly call for a function in it or not. Edit the file via FTP.
Forum: Fixing WordPress
In reply to: ready to install 1.3?You sound like you can handle any issues that might come up. Make sure you do a MySQL backup first (always a good idea), and good luck!
Forum: Fixing WordPress
In reply to: rss i give upI’ve found that not all feed readers are “smart” when looking for the favicon, and don’t use the meta line, but just look at a certain URI. Try putting your favicon as /favicon.ico in your site’s root, or making a rewrite rule pointing to its real location.
Sorry I can’t answer your other question…Forum: Everything else WordPress
In reply to: Comment Confrimation PageHere you go… I wrote it up “all official-like”
http://txfx.net/2004/10/29/wordpress-hack-notify-users-of-moderation/Forum: Everything else WordPress
In reply to: Comment Confrimation Pagechange those & amp ; #92 ; things to backslashes they should be “\n”
Sorry, the forum isn’t liking that code.Forum: Fixing WordPress
In reply to: RSS syntax issue in wp-rss2.phpWhere are you getting that error? It looks fine to me.
Forum: Plugins
In reply to: Avoiding Comment ModerationBasically, any plugin that automatically deletes or puts in moderation a comment does so by changing the comment that has already been in the data base (for a split second).
Unfortunately with WordPress 1.2, you cannot prevent the “Comment posted” e-mail from going out just by using a plugin. This has been remedied in WordPress 1.3
Using WordPress 1.3, it would be trivial to make a plugin that deletes comments that are hit by the blacklist. I’m not sure it’s a great idea, unless you really really trust your blacklist, but it could be done.Forum: Installing WordPress
In reply to: Fatal error: Cannot use object of type stdClass asWhat version of WordPress? (1.2, 1.3 nightly, current CVS)
Forum: Everything else WordPress
In reply to: http or www?All URLs are URIs… but not all URIs are URLs.
http://www.bernzilla.com/item.php?id=100
There is one good reason why you’d want to use http://site.com as opposed to http://www.site.com:
There can be issues with the way cookies are set. If your cookie is set as http://www.site.com, the user cannot access it if they go to site.com
And of course, the www is trite and redundant. What if you have to send mail to user@pop3.site.com?
http://no-www.org/Forum: Fixing WordPress
In reply to: The Wonderful World of MT RedirectsThose other methods all differ based on your MT permalink setup. Try my method, which is independent:
(Note, because your MT files are in html archives, you need mod_rewrite for this, so if you don’t have that, stop reading)
First step is to make your server parse html files for PHP. Add this to your site’s .htaccess fileAddType application/x-httpd-php .html
Make this your MT individual entry template:
<?php
$wp_url = '<$MTEntryDate format="?year=%Y&monthnum=%m&day=%d&hour=%H&minute=%M&second=%S"$>';
header("HTTP/1.1 301");
header("Location: http://site.com/" . $wp_url);
exit();
?>Rebuild your individual entries. This makes all your entries just contain this simple PHP 301 redirect that sends the browser to wordpress asking for an entry with the exact time (to the second) as the MT entry.
Put this code in WordPress to fix the URI and complete the illusion. Put it near the top, after the wp-blog-header call, but BEFORE any content is echoed:/* Redirect Movable Type permalinks */
if($year && $monthnum && $day && $hour && $minute && $second && $posts){
foreach ($posts as $post) {
$redirect_url = get_permalink();
}
header("HTTP/1.1 301");
header("Location: $redirect_url");
exit();
}So here’s the process: MT has generated a file with the exact time and date of the entry, with PHP code to ask WordPress for it. When the page is loaded, a 301 redirect sends it to wordpress with the date/time info. When WP sees that the time and date are specified down to the second, it realizes that there can reasonably only be one permalink for this entry. It gets the permalink that matches that time/date info, and does another 301 redirect, sending the user to the new entry.
Google will eventually catch on, and your old URIs will disappear in the search engine.