Mark Jaquith
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: It’s a Bug Hunt !!Tutorial for Linux/OS X:
http://markjaquith.wordpress.com/2005/11/02/my-wordpress-toolbox/Tutorial for Windows:
http://blog.ftwr.co.uk/archives/2005/11/03/windows-wordpress-toolbox/Forum: Plugins
In reply to: [Help Need] For WP-Forum Pluginyes, apply_filters() to the rescue.
$post = apply_filters('the_content', $thread->post);
that will apply all the filters that the_content() usually has applied.Forum: Everything else WordPress
In reply to: Simple, not urgent, permalinks questionIt should be noted that the ?page_id=X URIs are permalinks. In fact, they’re the most perma of any kind of link, because they’ll stay the same even if you change your site’s structure. What they are not is “pretty” or “clean” or “nice.” It also brings up the issue of having two links that point to the same resource. The two plugins above will serve you well in forcing the “nice” permalinks that you want people to be using.
Forum: Plugins
In reply to: What plugins are in use?Antispam:
Navigation:
And “seconds” on Subscribe to Comments, Ultimate Tag Warrior, Skippy’s Gravatar plugin, Comment Quicktags, WP-CommentForm… these are fairly essential.
I also really like Scott Yang’s Permalink Redirect which redirects alternate forms of your URIs to their real format. I wrote a small plugin that extends on that. For example, if you went to my site with “www.” and/or /index.php, it would redirect you to http://txfx.net/
I also use Kramer, which automatically creates Pingbacks from Technorati incoming links and validated incoming referrers.
disclaimer: I wrote or contributed to the development of almost every single one of these, so my opinon may be tainted. 🙂
Forum: Fixing WordPress
In reply to: RSS feed summary not workingLooks fine to me:
<description>
There’s some controversy over whether or not April cheated during the HOH competition. So, I decided to go back to my recording and take a very detailed look at what happened. The bold italicized texts are my analysis.
After Julie asked, “In the veto competition Goal For It, how many hockey pucks were in the red [...]
</description>That’s a summary, as indicated by the elipsis. (…)
Forum: Fixing WordPress
In reply to: User Login QuestionoMIKEo,
You can edit wp-login.php to point to a new CSS file, and then style it however you like, manually.Many people have requested that themes be able to modify the login form, and it is something that is being considered for the next version of WordPress.
Forum: Installing WordPress
In reply to: 1.5.1.3 upgrade to 1.5.2– best method?TheOneAndOnly,
I figured out the code by having Javascript echo to me the result of that function. Basically, it is code to obscure the text that it is writing to the browser. If you didn’t put it there, someone else has write access to your wp-config.phpthe iframe just holds a stat image… the person who put it in your wp-config.php must want that image to get a lot of hits, for some reason. Either that, or they’re trying to do something worse, but don’t know what the heck they are doing. You’re fortunate that this is the worst they did… they could destroy your blog, steal your passwords, or worse. This very likely happened because you’re on a shared server. It would help if you told me where your website is, because I can see whether or not you and that other site are on the same server, and then you’ll have someone to report to your host.
Anyway, you can help protect yourself by changing the permissions on wp-config.php 644 permissions should be safe. They’re probably 755, 766, or 777 right now.
Use your FTP editor to do this… it’s different for each one… but usually something along the lines of “right click file” and then “CHMOD” and then selecting 644 permissions.
At any rate, tell your host what happened and give them both the javascript you showed me and the iframe html that I translated it into.
Forum: Fixing WordPress
In reply to: Administration ProblemsTheOneAndOnly, that code outputs an iframe to a stats image:
<iframe src="http://www.noxdeco.com/net.html" border="0" marginheight="0" marginwidth="0" height="0" width="0"></iframe>Do you have something that might be causing this? Is noxdeco.com your site?
Forum: Plugins
In reply to: Show object in last post only.Well, you could use get_posts() to grab the most recent post and look at its ID
<?php
function add_to_most_recent_post($text) {
global $post;
$most_recent_post = get_posts('numberposts=1');
if ($post->ID == $post_recent_post->ID)
$text = "<p><strong>Most Recent Post!</strong></p>" . $text;
return $text;
}
add_filter('the_content', 'add_to_most_recent_post', 30);
?>
Obviously, get_posts() is probably not the most efficient way, as you are grabbing the entire post object when you just want the ID. But that should give you an idea of how you could use the “the_content” filter to adjust the text of an entry.
Forum: Fixing WordPress
In reply to: Paypal button problemAlso, there is another type of paypal button… something about security, or something… try the other type.
Forum: Fixing WordPress
In reply to: Paypal button problemlikely because of the line breaks. Stick it all on one line.
Forum: Installing WordPress
In reply to: Changed “admin” user pw in dashboard…Sounds like your DB server might have gone down temporarily. It happens to the best of us. 🙂
Forum: Fixing WordPress
In reply to: Advice on entering tabular data?Maybe you could do some sort of XML export on the table and then write an XML => table converter. I don’t think there’s any easy way to do this…
Forum: Fixing WordPress
In reply to: Important Security Information – UpdatedIf you get this error:
Warning: main(/home/yoursite/www/wordpress/wp-includes/pluggable-functions.php): failed to open stream: No such file or directory in /home/yoursite/www/wordpress/wp-settings.php on line 133You forgot to upgrade to WordPress 1.5.1.3 first!
Forum: Plugins
In reply to: Desc Comments Numbers?Well, I’d do something like this:
<?php
/* before the comments loop */
$comment_number = count ( $comments );
?>That will load up $comment_number with the number of comments for that entry. Also, $comment_number is the number you want given to the first comment (technically the most recent comment, but the comment that is SHOWN first).
Now, within each comment loop iteration, you’ll want to print out this number, and then reduce it by one.
<?php
/* within the comment loop */
echo "This is comment number: " . $comment_number;
/* now that we're done with this comment, it is time to set up the number for the next comment... that is... make the number one lower */
$comment_number--; // this decreases it by one
?>Now, the next time the comment loop runs (i.e. the next comment), $comment_number will be one lower. So in the case that you showed with 14 comments, you first get 14 (number of comments) and then each comment after that in the listing will get a number one lower. (13, 12, 11, 10 … 3, 2, 1)
Sound good?