fridgepimp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changing the Number of Posts on each themeI think the solution for this is a variation of what I posted here:
http://ww.wp.xz.cn/support/topic.php?id=21819#post-124216
There are a ton of $query_string parameters that you can set. One of them is called posts_per_page. I haven’t tested it but I bet if, imediately below the get_header() call, you added something this:
<?php $posts = query_posts($query_string . '&posts_per_page=10); ?>
You’d get the result you were looking for. Just change the number ’10’ to be whatever you’d want.Again, I haven’t tested it, but it seems like it would work.
Forum: Fixing WordPress
In reply to: How to ignore “Show Most Recent” for archive pagesOk,
I don’t know if this is the “officially blessed” approach, but it seems to work.
NOTE: I did this using WordPress 1.5 beta1 (05-Jan-26 nightly build). I have NO idea what this code will do to a 1.2 installation and I have no idea how to solve this problem in a 1.2 installation.
Immediately below the
<?php get_header(); ?>
call, add the following code:
<?php $posts = query_posts($query_string . '&nopaging=1'); ?>
That did it for me. And it SHOULD work for any page where you want to turn off paging, but I can’t guarantee that. If someone more knowledgeable would like to speak up, then please do so.Forum: Fixing WordPress
In reply to: How to ignore “Show Most Recent” for archive pagesI found what appears to be a solution, at least for me.
I’m using mod_rewrite rules generated by WordPress to enable clean URLs. So, what I did, was for the pages that I didn’t want paging, I just modified the rules to include a ‘nopaging’ query parameter. For example:
If second part of the rewrite rule looked like this (this is a monthly archive):
/index.php?&year=$1&monthnum=$2
I fixed it to look like this:
/index.php?nopaging=1&year=$1&monthnum=$2
I added “nopaging=1&” to the beginning of the query string.
There are a couple of downsides to this approach. The main one is that if you change your permalink paths, and your .htaccess file is writable, WordPress will likely clobber your changes so make sure to ‘chmod og-w’ your .htaccess file.
I don’t how to do this from inside a template. Maybe I’ll work on that next.
Forum: Fixing WordPress
In reply to: How to ignore “Show Most Recent” for archive pagesI could easily hack wordpress to do it, but I was looking for an officially blessed method, so that I wouldn’t have to patch my installation every time I upgrade.
This has to be a pretty common request as it is a “feature” that is readily available in nearly all of the other blog software, particularly MovableType, the most logical direct competitor to WordPress.
Forum: Fixing WordPress
In reply to: Problem With Lost PasswordThe bug was reported yesterday by someone else here:
http://mosquito.ww.wp.xz.cn/view.php?id=628
It is now marked “resolved”, however it isn’t actually fixed in version 1.2.2. The resolution simply states that it isn’t a bug in 1.5. That might be useful if, say, 1.5 was the stable version that is most prominent on the “Download” page, but it isn’t. 1.2.2 is the “latest” version that is stable, so anyone who downloads it will encounter this bug.
I thought the best way to help people get help was to post the solution here since it doesn’t look like a fix will be coming to the 1.2.x tree.
Forum: Fixing WordPress
In reply to: Problem With Lost PasswordOne final note:
The difference appears to be a variable naming change between version 1.2.2 (and maybe before) and subsequent releases. I grabbed the nightly build for Jan 7th (tomorrow?!?) and checked. Nearly all the references to $tableusers have been replaced with references to $wpdb->users.
Forum: Fixing WordPress
In reply to: Problem With Lost PasswordThe root of the above bug, as I wasn’t perfectly clear, is that $wpdb->users appears to be blank. I poked around briefly, but I didn’t see anywhere obvious where it would’ve been set anyway, so I’m guessing it’s a mistake. I could be wrong, what with my whole 20 minutes of Word Press experience :).
Forum: Fixing WordPress
In reply to: Problem With Lost PasswordThere appears to be a bug in the wp-login.php (I just installed 1.2.2 today and had this problem). I fixed it by changing line #115. The current update query says:
UPDATE $wpdb->users SET user_pass = MD5("$user_pass") WHERE user_login = "$user_login"
I fixed it to say:
UPDATE $tableusers SET user_pass = MD5("$user_pass") WHERE user_login = "$user_login"
Once I did that, the forgotten password script worked beautifully.