complex_confusion
Forum Replies Created
-
Forum: Hacks
In reply to: modify RSS text in 3.01What? No, I’m just asking for a pointer to the function that I need to be overriding to do the editing.
Forum: Fixing WordPress
In reply to: Bug? site_url giving me wordpress addressah.
I’ve been working with the bp-default theme all this time.
I just looked at the (more recent) twentyTen theme and see that its ‘header’ banner avoids using site_url:
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>home_url() is the tag to use.
I’ll put in the request that bp-default be updated to match. That’ll fix the problem for anyone else installing WP (and BP) in something other than top-level dir. Thanks for the help.
Forum: Fixing WordPress
In reply to: Bug? site_url giving me wordpress addressClayton,
Sorry, but no, I wasn’t saying that site_url was behaving as documented. It seems to be behaving the opposite of documented — but I doubt my judgement in this case enough to look into it more.
Just looking at your source code, I see several varieties of confusion for a novice like myself.
//zarathud.org
…
//zarathud.org/resources-sw/wordpress/wp-contentYes, I have WordPress installed 2 directories deep, and (in answer to your question, Mossack) have the top-level index page & .htaccess edited to match. Pretty standard for anyone who doesn’t want wordpress installed in the top level directory. Sometimes I wrote “something” or “website” instead of “resources-sw” just because I didn’t want to write my directory structure in the forum, thanks.
The documentation starts out without giving us any extra info: “retrieves the site url for the current site.” The Example seems to make clear that we’re talking about the blog address and not the wordpress install directory. But not perfectly clear.
And the options.php page (and the database itself) doesn’t help by using “site_url” to refer to the wordpress install directory and “home” to refer to the respective locations. bleah!
Which finally brings us back to the real question. site_url() is used to link the blog name in the header to the blog, giving you a broken link if the blog URL & install directory aren’t the same! So either site_url() isn’t correct or some other function should be used. But what function? blog_info() will give me the correct URL but I’m not sure about whether it will give me the correct protocol.
Forum: Fixing WordPress
In reply to: Bug? site_url giving me wordpress addressClayton, I believe all of those are the same assumption — that site_url() is behaving as designed and documented. I think that’s a good assumption. However, I’m seeing different behavior, and I’m not certain if that’s because of a failing in site_url(), mistakes in the documentation — and in the use! — of the tag, or just a situational oddity caused by something else on zarathud.
Mossack, yes, in General Options I’ve set the WordPress Address to zarathud.org/something/wordpress, and the Blog Address to zarathud.org. The All Options page (options.php) reports “home” to be zarathud.org and “site url” to be zarathud.org/something/wordpress.
Mossack, correct me if I’m wrong but you seem to be saying that because All Options reports the WordPress Address to be the “site url” then that’s what site_url() should return. The documentation disagrees with that, and doing so breaks the link in the header. (never mind the details, but clicking on zarathud.org/something/wordpress doesn’t take you to the wordpress install directory; it tries to take you to a post with a name similar to something/wordpress.)
Forum: Fixing WordPress
In reply to: People tell me that "the link might hard my computer"I’m guessing that someone’s browser or antivirus software thinks your page looks similar to a spammer’s page because your page is chock full of content loaded from other sites, as opposed to images loaded from your own site.
It’s also possible that one of these third-party images, or one of the ads, actually contains a threat.
As to why only some see the problem — different browsers have different features (like IE’s security features or various attendant antivirus utilities) and user-settable levels of security — some people may be clamping down on what’s acceptable.
hth
Forum: Fixing WordPress
In reply to: Bug? site_url giving me wordpress addressMossack, sorry to argue, but the documentation says that site_url should be getting the URL for the current site, not the URL for the install folder. So either the documentation’s wrong, the function’s buggy, or it’s just acting weird in my setup.
I think that in your personal blog, you may have the WordPress Address and the Blog Address set to the same URL. For my blog, I want WordPress to be in a different directory than the top level of my domain, so the two are different.
I rather knew that bloginfo() is the “blog info” but thanks, anyway.
Forum: Fixing WordPress
In reply to: Avatars anyone?Also, to make it easy for yourself to start: sign up for Gravatar and make your first avatar G-rated.
I believe the WordPress (or buddypress) default theme wasn’t showing PG rated avatars, leading me to think it wasn’t working.
Forum: Fixing WordPress
In reply to: Gravatar helptudorc11, there’s at least one plugin that claims to cache gravatars. If that works, then that should do a lot to speed up your site.
I’m not getting gravatars to work at all, so I can’t tell you if this’ll work in WP 3.0.
Forum: Fixing WordPress
In reply to: Moving blog url creating some redirection issuesWe have the same problem on zarathud:
Trying to visit the directory where the blog is located actually (by clicking the blog name in the banner, for example) gets you redirected to a specific blog post,
http://zarathud.org/website/wordpress-themes-ugh/fnords=51I’ve also seen that behavior in the copy of wordpress installed on my laptop.
My wordpress address is http://zarathud.org/resources-sw/wordpress
and my blog address is http://zarathud.org. I’m using wordpress 2.9.2 with buddpress, o/c.How do you solve this?