hexley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: summary or full text in my rss feed under 2.5 makes no difference?Ok, apparently this is now normal behavior, though I can not find a mention of it anywhere and had to resort to trac to get answers.
So I am now expected to copy and paste from all my posts into the “summary” field to get back the old behavior.
Are there any plug-ins out there that anyone is aware of that will give me back the old summary behavior of RSS feeds?
Forum: Fixing WordPress
In reply to: summary or full text in my rss feed under 2.5 makes no difference?I have also set it back to Full text, which should then force the chop on the <!–more–> tag, but it is not at all, ideas?
Forum: Fixing WordPress
In reply to: Change placement of edit block in write post admin areaAnyone have any ideas on this one?
Forum: Fixing WordPress
In reply to: Very High CPU Usage5000 page views a day, something is wrong, I have other sites, pushing 50,000 a day, on an 800Mhz machine, OS X, minimal ram, just hums along.
You say you are using super cache and wp-cache, are you sure you can use both at the same time? I also see you have gzip compression on, which as far as I remember, at least with wp-cache, you can not turn that on, as it causes issues.
This should be a pretty simple problem to test if you want to see where the trouble is.
So you have good ole Brit here:
http://www.thecelebrityblog.com/2008/04/britney-spears-reunites-with-former-manager/I am showing that page loads as:
<!– Dynamic Page Served (once) in 13.472 seconds –>
<!– Cached page served by WP-Cache –>
<!– Compression = gzip –>Now, you need to load the page, view html source on it, and copy all the source code to a file, call it index.html
Now, ftp/ssh into your server, and make the following directory path:
/2008/04/britney-spears-reunites-with-former-manager/
Drop index.html into it.Now, go into wordpress and take the post offline.
Load this url:
http://www.thecelebrityblog.com/2008/04/britney-spears-reunites-with-former-manager/index.htmlSo this is pure static now, the server is not talking to php or the database. Does it load fast? I am going to guess it does. Though you may have to boot all current users out of apache.
Assuming it loads fast, you now know your server is fast enough, it is just a matter of tuning things better. Assuming your cache plug ins are working, mysql should be dead silent, but what does
topsay about mysql?You have 5000 users a day, that should be nothing, you should be able to serve that out on a old 500mhz box.
Forum: Fixing WordPress
In reply to: Insert image without linking itIt used to also omit the w/h values, is that possible to get to go away as well?
Thanks for the help, that is one down as far as questions about 2.5.Forum: Alpha/Beta/RC
In reply to: 2.5 image uploadI would like as many people to answer the below questions as possible:
1) OS your WP 2.5 install is on
2) Version and type of webserver
3) Version of php
4) Do you have an .htaccess file at wp-admin/.htaccess
5) Do you have .htaccess elsewhere
6) Are you password protecting the entire wp-admin directory, or does your host or cpanel have this turned on?I am near certain my previous post explains this. Assuming your permissions are correct, and your install is working, the reason this breaks is related to http auth password protection not being passed correctly to the flash uploader.
I can see this in my server logs, every time I try an upload, I see the 401 http status code error. I remove the security, or limit by my IP, and I am up and running.
I want to narrow it down, I posted a bug to trac, and it is slated as low priority and for 2.6 release.
Forum: Alpha/Beta/RC
In reply to: 2.5 image uploadI think I can sum this up, not sure the solution for the long run.
Do we all have in common that we have secured .htaccess in wp-admin/ to require a user and a pass?
If that is the common thread, I bet this has to do with flash, or at least, I think the file uploader is working with flash. I have user/pass set up in WP for the admin area.
If I remove that feature from wp-admin/.htacess, uploads work as advertised.
I first thought this was a simple fix of just adding my servers IP to be allowed and not need authentication, however, the file called is called by the client/browser, so that will not work. I have a semi-static IP, so it works for a short time, but I know the second I travel, it will break.
I think the solution is to exclude the upload php file from the security, but then people know about this, and could try to exploit that one file does not get locked down.
Here is my .htaccess in wp-admin
AuthName “Restricted Area”
AuthType Basic
AuthUserFile /somewhere/over./the/rainbow/.htpasswd
AuthGroupFile /dev/null
require valid-userIf I rename .htaccess to a.htaccess, in order to disable it, works just fine all over again.
Can others confirm?My server logs show an http 401 error on:
/wp-admin/page-new.php Safari
/wp-admin/async-upload.php FlashSo, seems to me, user/pass credentials are not getting past Flash, and it is breaking. Makes sense, there should be no way apache is allowed to just suck the http auth out of the browser and shove it into flash. I suppose they could read it in with php, store it in a cookie, then have flash ask for it, but that seems downright dirty to me.
Here is a final one that allows you to change the order of the prev and next:
<?php
// Only show posts_nav_link() when needed
if ((!is_single()) && ($wp_query->max_num_pages > 1)) {
echo ‘<div class=”smallFont miniNav”>’;
posts_nav_link(”,”, __(‘<< Older Tutorials’));
//if its not the first or last page display the divider
if ($paged > 1 && $paged < $wp_query->max_num_pages) echo ‘ | ‘;
posts_nav_link(”, __(‘Newer Tutorials >>’),”);
echo ‘</div>’;
}
?>Here is what I came up with, it works, thanks to everyone
<!– older/newer posts nav links –>
<?php
// Only show posts_nav_link() when needed
if ((!is_single()) && ($wp_query->max_num_pages > 1)) {
echo ‘<div class=”smallFont miniNav”>’;
posts_nav_link(‘ | ‘, __(‘forward’), __(‘back’));
echo ‘</div>’;
}
?>Now all I have to do it hack it a bit so they are in the order I want, but thanks again.
Thanks Otto!
I think I have what i need.$wp_query->post_count; shows the posts on the current page, which now that I think about it will always yield true in the condition I am working on. I actually need total posts for that ‘section’, but I tihnk I can work it out from the source of posts_nav_link() function.
will report my work back here.
The problem with an empty div is that the div is styled, so you get this pretty shadowy div box, and there is nothing in it.
I have the max posts to show set to 25, on the main page, sure I can add more posts as you say. We have categories, and some may never hit 25.
I need to know two values, the number of posts, and the admin value of Show at most: x posts, that will solve this.
So, I figure, I can shove a big huge nasty chunk of html into the posts_nav_link, or I can wrap it in a conditional, the later being nicer ๐
I can not find it in the codex, how do I get the number of posts shown on a page, as well as the wp-admin vale of Show at most: x posts?
.. off to dig into the source, but if someone beats me to it, and knows, it would help me out a lot.
Thanks for the link moshu, I am not sure it is applicable.
Maybe I am not being clear. I just added a page.php, and that solves some of my issues. In options-> reading I can set it to “Show at most: 25 posts”. This is my setting now.
I have 30 or so posts, and on the home page, if I put in the posts_nav_link() function, it will show at the bottom. If I go to a category page, which all now have less than 25 posts, it does not show. Desired behavior.
I want to style the posts_nav_link() in a wrapping div. That wrapping div is going to show no matter how many posts are on a page.
I would guess, though I know there is a more optimal way to do it, I would need something along the lines of:
if (current_found_posts >= show_at_most_value)
<div…. posts_nav_link() …
else
// do nothing here for now
end ifForum: Fixing WordPress
In reply to: the loop, explained, by someone, do not get syntaxThanks ‘blogcms’, you nailed it, it is just ‘different’, I am getting used to it as I go along.
I am confused by your reply. Thanks for the help though. In the default themes, it is used in index.php. This is in “Classic” which does not contain a page.php.
“Default” does have a page.php
using page.php would not solve my issues, if for example, I am on a single post, and I had this;
<div style=”border: 10px solid red;”>
<?php posts_nav_link(‘ โ ‘, __(‘ยซ Older Posts’), __(‘Newer Posts ยป’)); ?
</div>The inner php of course is going to know to be blank, but the outer div is always going to show. The same would be true of categories, and tags.