elvix
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Descending comments?Instead of mucking with program code, which makes upgrading a pain, just edit your comments.php script.
Under: <?php if ($comments) : ?>
Add this:
<?php $comments = array_reverse($comments,true); ?>This reverses the order of the comments array, achieving the descending order without changing the db call.
You could have different comments.php templates (one ASC and on DSC, for example) and just call the one you want into your single templates as you like.
Forum: Plugins
In reply to: Registered Only Plugin : Restrict entire blog to rI just installed v.01 on 1.5.1.3 — I got same header errors as frogmoses above, caused by another plugin. (v0.4 didn’t work for me)
All you have to do, however, is trigger this plugin earlier in the sequence. By default actions are applied with a level of 10. So, just make it less than 10 (or even less, if you still have problems). Add a ‘9’, for example, to the add_action statement at the end of the script, and you’re good to go.
add_action(wp_head, reject_unverified,9);
Forum: Requests and Feedback
In reply to: Email Post to someoneSMTP does *not* seem to be required for wp-email.php to work! I just discovered this. I commented out the smtp lines (63-66 in wp-email.php) and it worked. The php-mailer class is designed to work with php’s mail functions (by default), sendmail or smtp, so I think smtp is really an option. There may be other issues, but there doesn’t seem to be anything tricky involved in Lester’s code, so I think PHP’s mail() functions are probably sufficient.
Forum: Fixing WordPress
In reply to: how to remove the dashboard? (or go directly to other page)easiest way to speed up the dashboard is to comment out the technorati rss line in wp-admin/index.php.
find line 88 (or so):
$rss = @fetch_rss(‘https://feeds.technorati.com/cosmos/rss/ …and comment it out:
//$rss …Forum: Fixing WordPress
In reply to: Overriding posts_per_page in 1.5actually, i don’t want to display a specific post, rather one post (vs. several, i.e. 10 or 15). I’m trying to generate a slideshow of posts: one post displayed with the nav links (prev and next posts).
Forum: Fixing WordPress
In reply to: Overriding posts_per_page in 1.5For clarity: setting $posts_per_page =1 does limit the page to 1 post. However, I’m getting a MYSQL syntax error. (Obviously, I don’t get this error normally)
Quoted:
WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘ORDER BY post_date ASC LIMIT 0,1’ at line 1]SELECT ID,post_title FROM wp_posts WHERE post_date > '' AND post_date < '2005-02-10 16:55:40' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 0,1