‘WordPress Hack’ Category

WordPress, IIS and Plesk “Unable to find wp-content” Woes and Solution

2
responses
by
on
November 23rd, 2011
in
HOW-TO, WordPress FAQs, WordPress Hack

I tried to help a co-worker with a professional blog for a TV channel yesterday and ran into some weird issues. We host the blog on a Windows 2008 server with IIS and Plesk. The WordPress install from within the Plesk worked fine but ours did not. The “white screen of death” on the install screen was perplexing (more on that at the bottom of this article), but every time he tried to either upgrade WordPress or install or upgrade a plugin or theme, he would receive warnings or failures stating that WordPress was unable to find the wp-content directory. This warning can take various forms but circle around the fact that WordPress did not find the right directory in the expected place. The obvious and painless solution is to upload the files directly to the server using FTP and then control the blog from within wp-admin. In this case, […]

[Continue Reading...]

WordPress 3.0 Multisite Domain Mapping Tutorial from Otto

7
responses
by
on
June 21st, 2010
in
WordPress Hack, WordPress Plugins

WordPress 3.0: Multisite Domain Mapping Tutorial. As an extension of the excellent walk through of the multisite functionality of WordPress 3.0 by our very own Klint Finley, Otto has put together a domain mapping tutorial that is receiving rave reviews. Follow the steps to map multiple domain blogs from within the same WordPress 3.0 install.

[Continue Reading...]

Preventing WordPress Plugins From Loading

21
responses

There may be times in WordPress where you would like to load the WordPress environment manually, and prevent plugins from loading. Two instances where this is ideal are: When loading an inline frame with Thickbox or Colorbox. When parsing AJAX requests in an external PHP file. To further give justification for this technique, I had a major plugin conflict with another plugin. My Ajax Edit Comments plugin had failed to work for one of my clients. After doing some troubleshooting, I determined it was a plugin conflict with “xyz” plugin. When I looked at the conflicting plugin’s code, I was able to pinpoint the problem to one patch of code, but failed to determine a fix. The conflicting plugin was causing my nonces to fail, as well as my AJAX processor to fail (since that uses nonces as well). Since my plugin’s editing options are all in a Colorbox inline […]

[Continue Reading...]

Publish The Feed Later

5
responses
by
on
December 5th, 2009
in
WordPress Hack, WordPress Plugins

Publish The Feed Later: WP Engineer provides a nice tutorial on how to publish your post to your feed a few minutes (configurable) after you publish your post. These few minutes can help you find errors or bugs in your post and fix them before they get sent out via your feed to all your readers. The “hack” requires you to change your theme’s functions.php file and add the code snippet provided. Alternatively you could also use a plugin written by our very own Keith, called Feed Pauser. I see no compatibility information on this plugin (maybe Keith could chime in and let us know) but it does offer further functionality such as the ability to prevent individual posts from appearing in your feed. A useful hack/plugin for those like me who have an itchy post finger.

[Continue Reading...]

¿Habla HTML?

28
responses
by
on
September 1st, 2009
in
WordPress, WordPress Hack

DISCLAIMER: This post is in no way intended to promote HTML over XHTML or vice-versa. This is simply a solution to a problem for those who may find it useful. Anyone who has used WordPress for any decent length of time probably knows that everything it outputs is in XHTML format. For those who prefer this, that’s just fine. However, for those of us out there that prefer to use HTML instead, we’re pretty much out of luck when it comes to WordPress. As it stands now, there is no easy way to make WordPress output in HTML format. But today I hope to help those people with this simple function I found around the web. First, the code: function HTMLify($buffer) { $xhtml = array(‘/XHTML 1.0 Transitional|XHTML 1.0 Strict|XHTML 1.0 Frameset|XHTML 1.1|XHTML Basic 1.0|XHTML Basic 1.1/’, ‘/xhtml1\/DTD\/xhtml1-transitional.dtd|xhtml1\/DTD\/xhtml1-strict.dtd|xhtml11\/DTD\/xhtml11.dtd|xhtml-basic\/xhtml-basic10.dtd|xhtml-basic\/xhtml-basic11.dtd/’, ‘/\/>/’, ‘/\/\s+>/’, ‘/xmlns=”http:\/\/www.w3.org\/1999\/xhtml”/’, ‘/\s+xmlns=”http:\/\/www.w3.org\/1999\/xhtml”/’, ‘/\s+xml:lang=”(.*)”\s+lang=”(.*)”/’, ‘/\s+>/’); $html = array(‘HTML 4.01’, ‘html4/strict.dtd’, ‘>’, ‘>’, […]

[Continue Reading...]

Actions and Filters and Classes, Oh My!

16
responses

Ever wondered how you can manipulate WordPress filters and actions that are defined inside a PHP class? I did! I was working on a project recently that needed a plugin. The only problem was that the plugin was inserting some unnecessary cruft into the header of my theme. So, I figured I’d just use the remove_filter function WordPress provides… right? Hold on a second! It’s not working!? But I put in the function name just how the codex explains it: remove_filter(‘wp_head’, ‘the_crufty_function’); Why would it not work? Time to do some troubleshooting… So, I opened up the main plugin PHP file in my code editor and began to look around. What’s this? It’s a class! Hmm… But why should that make a difference? It seems that WordPress requires a special reference to the function if it is defined inside a class. If you, the reader, are at all familiar with […]

[Continue Reading...]

10 Useful WordPress Hook Hacks

2
responses

If you are a WordPress developer or designer or have been messing around in the world of WordPress for any period of time, you have by no doubt heard of WordPress hooks. Hooks are a set of custom written functions that can be added to existing functions in the WordPress core to increase, improve or remove functionality. WordPress plugins make extensive use of hooks to latch onto various portions of the WordPress themes or to the admin interface in order to provide the additional functionality or to perform certain actions in certain parts of the code. If you are looking to understand hooks, learn about all the action and filter hooks and all the deprecated hooks, find the latest changes and understand how hooks can be used in customizing WordPress, I suggest you look at Adam’s WordPress hooks database. Smashing Magazine has listed 10 Useful WordPress Hook Hacks in which they […]

[Continue Reading...]

WordPress Configuration Tricks

14
responses

WordPress Configuration Tricks : If you have ever installed WordPress and wanted to know what else you could do with your wp-config.php file, this is the blog post to read. As Ozh points out in the comments, a couple of tricks were left out but nothing that could not be remedied with a simple Google search (e.g. WP_HTTP) as long as you know what you are looking for. Tips from that page that got me thinking (things that make you go hmmmmm?) include moving your wp-content directory, increasing your memory limit, changing the autosave interval, turning on debugging and finally the ability to specify a log file for errors. All of this through the wondrous wp-config.php file. The list is quite exhaustive. While you are there, make sure you subscribe to the blog. Chris and Jeff are putting out some good stuff!

[Continue Reading...]

Blogging and WordPress Links for 4/23/09

7
responses

How To Blog Anonymously And Maintain Control Of Your Personal Privacy.: Robin Good puts together a nice writeup on how and why to blog anonymously. If you do not have Robin on your reading list, he should be. I like his general writing style and his visual clues. 10 Exceptional WordPress hacks from Smashing Magazine.: Smashing Magazine has another list of nice hacks for WordPress including resizing images on the fly and automatically including the first image in your posts for your home page. These lists amaze me. Some of the more popular design sites and larger blog houses such as Smashing Magazine and Mashable have become very adept at using lists to link bait. These lists tend to get Dugg very heavily and bring in a lot of traffic for them. I still cannot look away from a good list about WordPress! 3 tools to track and defeat content […]

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php