Mark Jaquith
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: New security issue in 2.06!!!This issue has been fixed by 2.0.7
My solution was to set to NULL before unsetting. We do unregistering of globals in
wp-settings.php, so only one line needed to change.Forum: Fixing WordPress
In reply to: 2.06 WP running very slow at snails pace and ADMIN area just as badHave you contacted your host about this problem, or is this a self-hosted situation?
Forum: Fixing WordPress
In reply to: Password-protected page doesn’t take password – just refreshesWorks for me using the Default theme and both WP 2.0.5 and WP 2.0.6 beta 1
One thing that could be causing this is if your Blog URL is set to something that is automatically redirected. Say that your Blog URL is http://example.com/ but http://example.com/ forwards to http://www.example.com/ In that case, the form’s POST would get wiped. But you’d likely have a lot more problems than this, if that were the case.
Forum: Installing WordPress
In reply to: “302 Found” after upgrading to 2.0.5My fault, folks. There was a bug report for the problem on 2.1 and it slipped my mind that this change went into 2.0.5
For people who are adverse to editing core WordPress files, try this plugin on for size.
http://txfx.net/code/wordpress/wordpress-tuneup/wordpress-205-tuneup/
Forum: Plugins
In reply to: Preventing Plagarism?! Please help!You’re not going to be able to stop this in every instance, but you can handle it on a case-by-case basis.
First thing to do would be to check out Bad Behavior [1] which may block malicious bots from being able to access your site. The second thing is to be reactive… find out the IP or the website (ping it!) and put the following line in your site’s
.htaccessfile (assuming Apache here):# block site with IP address 123.123.123.123
deny from 123.123.123.123That will make it harder for that site to rip off your content, because it will have to be done from a different IP address than the one hosting the ripoff site.
If that fails, find out what company is hosting the site and complain to them. Threaten legal action.
Forum: Plugins
In reply to: Ryan Duff Contact Form – customizing the layout?#wpcf_msg { width: 400px; }400 is just an example… play around with that.
In the future, just look at the HTML source. You’d see this:
<textarea name="wpcf_msg" id="wpcf_msg" cols="35" rows="8" ></textarea>The
id="..."part is what you want… that gives you a unique identifier you can use in the CSS. In CSS, identifiers are designated with the hash (“pound” in the U.S.) sign.#name-of-ID { /* rules go here */ }Forum: Requests and Feedback
In reply to: wp_list_cats flagYou can use the
list_catshook plus some regex to do that switcheroo in a filter. No core modification needed.Untested, but something like this should work:
function txfx_put_count_in_the_link($text) {
return preg_replace('#</a> (([0-9]+))#', ' ($1)</a>', $text;
}add_filter('list_cats', 'txfx_put_count_in_the_link');
Forum: Themes and Templates
In reply to: <?php the_content( ); ?> Questionvavroom,
I actually have some custom code doing a very similar thing that’s been on my website for a long time. I decided to simplify it and make it future-compatible with WP 2.1
So basically, I’m your 1-wish WordPress genie.
Here it is:
http://txfx.net/files/wordpress/wp-customized-more-link.phps
Left-click that link, left-click the “download” button, and then upload that PHP file to your
/wp-content/plugins/folder. Activate via WP admin.You can edit the plugin and edit the
$replacementvariable to tweak the HTML. There are two “shortcuts” for you to use. The first one is the%url%shortcut, which will be the URL of the more link, and the second one is the%linktext%shortcut which will be the text of the link. In WP 2.1, you can customize this text for each entry, and the plugin will work for customized as well as generic more link texts if you use this%linktext%shortcut.Example:
$replacement = '<a href="%url%" class="someclass">%linktext%</a>';The default is actually the one you wanted, so you don’t even have to change anything.
Forum: Fixing WordPress
In reply to: PREVENT wordpress from creating .htaccess filehm, tricky. Only thing I can think of is writing a plugin that turns the global $is_apache to FALSE any time an
.htaccesswrite would take place (maybe checking for $_POST submissions and comparing$_SERVER['REQUEST_URI']with something. This will short-circuit the.htaccesswrite, as it won’t attempt it for non-apache systems. I can’t promise that this won’t break something else, however.Forum: Fixing WordPress
In reply to: Question about HTTP status headerI’d talk to your web host… that’s very strange behavior.
Forum: Your WordPress
In reply to: How do I disable Trackbacks/Pingbacks for internal links?This plugin might do the trick:
Forum: Plugins
In reply to: Escaping Strings In WordPressWordPress has its own built-in method of ensuring that regardless of what you have
magic_quote_gpcset to, GPC stuff gets escaped. This happens very early on in the WP loading process.This is good because plugin authors don’t need to code for both situations… the data will always be escaped.
Forum: Fixing WordPress
In reply to: .htaccess seo links problemYou’re going to have to provide some more information.
- Which plugin?
- What changes?
Also: WP’s links (the “pretty” ones, that is) are already pretty SEO’d. WP blogs do very well in Google. What changes does this plugin make?
Forum: Everything else WordPress
In reply to: Searchable PDF helpGoogle can search most PDFs… why not just use their search? You can restrict it to your domain.
Forum: Fixing WordPress
In reply to: Blog disabled by WordPress database errorsPerhaps the database has become corrupted. If it is telling you that you need to install, it’s not detecting and users in the users table, which would be very odd for an existing blog.