Mark Jaquith
Forum Replies Created
-
Forum: Plugins
In reply to: figuring out how to custominze WP – can you echo function calls?I’d look through your templates and then lookup any function whose purpose isn’t obvious on http://codex.wordpress.org/
Another good way to see the flow of code through WordPress is to use the PHPxref tool.
http://www.google.com/search?q=phpxref+wordpressForum: Installing WordPress
In reply to: Customizing the look of your linksForum: Everything else WordPress
In reply to: Spam experiment: FYIMake sure you’re keeping Bad Behavior up to date. It’s new, and development is still very active.
I still run SK2 as a backup, but BB gets the vast majority of spam. Once in a while I’ll have a manual spammer get through, but they’re quickly blacklisted.
Forum: Plugins
In reply to: Create a Contact PageHa! Triple comment overlap. And all three of us suggested the same thing. Great minds… I tell ya.
Forum: Plugins
In reply to: Create a Contact PageWell, first off, don’t put your e-mail address in the form. Spam bots will love that. Give it a numerical value and convert it to an e-mail address in the function.
Second, it looks like you don’t quite understand how forms work… all those values would be blank, as would the action. The action has to be a URI (you can specify that you want it to point to itself by using
<?php echo $_SERVER['PHP_SELF'] ?>you’d need code outside of a function to check to see if the form has been submitted. You’d look for
$_POST['Submit']and then validate the input (make sure it’s a valid e-mail address, that fields aren’t blank).You should look into this plugin:
http://ryanduff.net/projects/wp-contactform/Forum: Fixing WordPress
In reply to: wp-mail – removing certain strings?You could create a filter with the ‘phone_content’ hook
<?php function strip_dumb_email_stuff ($text) {
$text = str_replace('This is the stupid text', '', $text);
return $text;
}add_filter('phone_content', 'strip_dumb_email_stuff');
?>Something like that… in a plugin.
Forum: Everything else WordPress
In reply to: Codex is OfflineLooks like Matt’s DB is down. photomatt.net is down as well. They’ll be back up eventually.
The software sending the trackback should provide the excerpt. If you Trackback another blog, WordPress will grab an excerpt from your post. If somone else sends you a Trackback, their software will excerpt their post.
Pingback is different. With Pingback, the software receiving the ping does the work, by looking for the link on the other site and grabbing the surrounding text.
Forum: Fixing WordPress
In reply to: comment trollif you want them moderated, add to the moderation box. if you want them nuked, add to the blacklist box.
Forum: Themes and Templates
In reply to: breaking up the main pageThese links should help you get started!:
http://www.ifelse.co.uk/archives/2005/03/31/query_posts/
http://www.ifelse.co.uk/archives/2005/04/08/query_posts-redux/They are just what you are looking for.
Forum: Fixing WordPress
In reply to: Troubleshooting “Kramer” and Technorati PluginsTry upgrading to the latest stable version of WordPress: 1.5.1.2
http://wordpress.org/download/The version you are using is an outdated nightly build.
Forum: Fixing WordPress
In reply to: Angle Brackets in Write Post (e.g. < and >)Try < and >
Forum: Plugins
In reply to: Archives/Clean Archives plugin helpHm… it looks like you have given the “archives” page a slug of “archives”
The problem with that is that your permalink structure is: /archives/%postid%
Because you have an “archives” page, it sees /archives/2 as “the second page of archives.” It’s sort of like your “archives” page sits on top of your mod_rewrite rules and ‘eats’ anything coming in that starts with /archives/
You’ll have to choose a different format for your permalinks (one that doesn’t start with “archives”) or rename the post slug for your archives page.
Forum: Plugins
In reply to: 1.5 Using Style Switcher?Forum: Fixing WordPress
In reply to: Archives showing in only one category?You can add cat=X to the URI. For instance: http://site.com/2004/03/?cat=5 or http://site.com/?m=200403&cat=5
Your plain monthly archives should show posts from ALL categories.