womby
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Use Just a Summary in Main Pageor put
<!-- more -->
somewhere in your post to make a “read more” link on the index page.
I personally don’t like the idea of excerpt destroying html.
Forum: Themes and Templates
In reply to: Sidebar Images in KubrickImage tags should end
/>
now not just>
all single tags should be like that<hr/>
,<br/>
etc. it tells the browser not to expect a</img>
.Forum: Fixing WordPress
In reply to: Astounding performance hit with large number of rows in wp_userslooking through the code the update_user_cache populates the array cache_userdata with, well, all the data about all the users on the system.
then later when ever any user information is needed by the blog that array is checked first, so far I have not found an instance where an un-populated array will cause a failure, in all cases a secondary method of getting the data is present.
I suspect that this is a problem that can be pushed into 1.6 for resolution.
EDIT: I Just tested with my blog (only 5 users on that) and with the entry commented out it performed 2 extra sql queries and the time taken to render the page was no different, I am sure if I had thousands of page loads a second it would make a difference though, this deserves further study.
Forum: Fixing WordPress
In reply to: Astounding performance hit with large number of rows in wp_usersfound it,
if ( !update_user_cache() && !strstr($_SERVER["PHP_SELF"], "install.php") ) {
if ( strstr($_SERVER["PHP_SELF"], "wp-admin") )
$link = "install.php";
else
$link = "wp-admin/install.php";
die("It doesn"t look like you"ve installed WP yet. Try running <a href="$link">install.php</a>.");
}
$wpdb->show_errors();commented that part out of wp-settings and boom site was rendering in 0.09 seconds.
EDIT: I am guessing that “update_user_cache” is the offending item.
Forum: Fixing WordPress
In reply to: Astounding performance hit with large number of rows in wp_usersWell of course, but, there is no reason the number of users in wp_users should cause the image upload page to take a long time to render, the most it needs to do is check if I have permission to upload.
Forum: Fixing WordPress
In reply to: Astounding performance hit with large number of rows in wp_usersWell of course, but would it not be usual to expect a site that requires users to register before they can comment to have a large number of users registered ?? .
Edit: Further investigation reveals that the Staticize plugin does not help, the delay is happening before the plugin acts.
Forum: Fixing WordPress
In reply to: Minor bug in function _page_level_out ()in the mean time (assuming your ul is inside a div with id hmenu) something like
#hmenu li ul {
display: none;
}Should be able to patch the problem in css.
Forum: Themes and Templates
In reply to: Adding icons.that bit of code should work but you should probably add a path to an images directory of some kind before it
perhaps
<imb src="/wp-content/cat_images/<?php the_category() ?>.jpg" />
and dont forget alt text.
Forum: Fixing WordPress
In reply to: category checkbox for pages?Pages are not blog posts so they don’t offer the ability to exist in different categories.
But the default page layout code is the same as a blog single post, instead of worrying about the category, you should instead copy index.php to page.php in your theme directory, and edit the “meta” line so it doesn’t try to display category information.Forum: Fixing WordPress
In reply to: nofollow support added?not to rain on your parade but in the article there is a very succinct paragraph, that in one step shows why nofollow should be on by default and disabled only by people who know what they are doing.
When Sam begins a spam run, he has one target, though he"ll accept any of six. Principal one: come top of the search engines for his chosen site"s phrase. "But you"ll accept coming in at 1,2 or 3, or if you come at 8,9 or 10. Actually, 8, 9 and 10 have better conversion rates.
one target, get to the top of the google results list.
nofollow, as has been discussed at length in this thread, addresses only one aspect of comment spam, it prevents a comments links from increasing a sites results status.
nofollow will not stop spammers leaving comments, but it does mean that links in those comments have no utility towards a spammers “one target”.
Forum: Fixing WordPress
In reply to: when will link_minadminlevel return in 1.5?slightly related to this, I would like the ability to adjust the admin levels required to access functions. I have some users I would like to be able to upload files but not publish their blogs, other users I would like to be able to edit other peoples blogs but not create pages.
I have been looking through the code wondering what would be the best way to patch in some finer grained permissions but all the numerical values appear to be hard-coded and checked local to each function.
EDIT: oh yea and I want to restrict people from being able to edit post metadata. not asking for much is it ^^
EDUT2: this is only half of a feature request because it is something I am managing locally on my own fork of wp and it only takes 5 – 10 minutes to patch a nightly when I want to upgrade. So if nobody else wants anything like this I am quite happy continuing as I am.
Forum: Fixing WordPress
In reply to: Changing category doesn’t update sidebarForum: Fixing WordPress
In reply to: RSS broken by foreign charactersyou need to add CDATA tags around your content.
for example your rss error is in the title so to fix it ….
change
<title><?php bloginfo_rss("name") ?></title>
to
<title>
<![CDATA[
<?php bloginfo_rss("name") ?>
]]>
</title>
do that with wp-rss.php, wp-rss2.php and wp-atom.php and things should work ok for you, if the error appears again just check which tags contain the error and wrap the content in CDATA again.
Forum: Fixing WordPress
In reply to: Links don’t work on About pageyou need to change your links to
“/index.php”that will tell the browser to look for the script in the root of your site.
if you have wordpress in a subdir post again and somebody (or I) will tell you how to deal with that too.
Forum: Fixing WordPress
In reply to: WP 1.3 in other languageshas the translation system changed recently? I have a 1.3alpha3 install in Japanese but I am working on a 1.5 nightly and the text is still displaying in English.