My list of super useful WordPress plugins

WP Social SEO Booster

Takes care of all the microdata and other things that are needed to ensure your post looks right on various social networks

https://wordpress.org/plugins/wp-social-seo-booster/

Wordfence Security

A security plugin that enhances a number of things and prevent several different hacks. I have had problems with other popular security plugins, so I now only use Wordfence. There is also a caching functionality in Wordfence, but do not have to turn it on if you already have another caching plugin, although it is quite effective considering the super simple setup.

https://wordpress.org/plugins/wordfence/

UpdraftPlus – Backup/Restore

A really good backup plugin that can also backup to various third party services such as Dropbox, Google drive, Amazon and other. It is the most reliable free backup solution I have tried so far

https://wordpress.org/plugins/updraftplus/

WP Remote

This is absolutely one of my favourite services. This allows you to monitor and update multiple sites at once and have saved me so much time. Another advantage is that you do not risk missing an update of one of your sites

https://wpremote.com/

Regenerate Thumbnails

This is not a plugin I use very often, but it is indispensable when I need it. It regenerates the image sizes which is very useful when you change theme or make changes to an existing theme

https://wordpress.org/plugins/regenerate-thumbnails/

WordPress SEO by Yoast

This one is a very popular SEO plugin, so you probably already know about it… just remember to actually use it and create some killer Titles and meta descriptions.

https://wordpress.org/plugins/wordpress-seo/

Delete Custom Fields

This is one of those plugins that most will probably never need, but what it does is delete old custom fields that you no longer use.

https://wordpress.org/plugins/delete-custom-fields/

Anti-email Spam

This plugins simply automatically obfuscates any email address using either HTML entities or JavaScript. It is far from the most advanced way of doing it, but it is compatible with just about everything, and it fools most of the harvesting bots.

http://urbangiraffe.com/plugins/anti-email-spam/

Widget Context / Widget Logic

Both of these plugins are used to control which pages a widget will be shown on. I use both of them on various sites.

http://wordpress.org/plugins/widget-logic/

http://wordpress.org/plugins/widget-context/

WP Htaccess Editor

As the name suggest this plugin lets you edit the Htaccess file directly from the WordPress backend. It also includes an option to backup the Htaccess file before you make changes. Remember to be very careful when messing around with the htaccess file.

http://wordpress.org/plugins/wp-htaccess-editor/

W3 Total Cache / WP Super Cache

I use a caching plugin all all my sites. My favourite is W3 Total Cache as it is very comprehensive, however I have had compatibility problems on some sites as it prevented proper detection of mobile devices. On these sites I have used either WP super cache or for some simpler sites just the built in caching in Wordfence.

https://wordpress.org/plugins/w3-total-cache/

https://wordpress.org/plugins/wp-super-cache/

Akismet

This is the commentary spam plugin that comes with WP out of the box. I usually do not activate until spam actually becomes a problem. For some reason i have sites that never get any spam, and others that get insane amount of spam comments every day.

http://wordpress.org/plugins/akismet/

Premium Plugins

Gravity Forms

Hybrid Connect

Genesis specific plugins

The following are plugins that are made especially for the Genesis theme framework

Genesis Simple Hooks

Genesis Simple Edits

Genesis Translations

 

 

Show the modified date on WordPress posts

There are many good reasons to show date of the last update to an article or post in WordPress. For one thing it shows the reader that the article is not just old and outdated, but actually kept fresh and relevant, but just as important it shows the same thing to the search engines.

There are a lot of instructions on how to show the modified date of a post instead of the creation date  when it comes to regular WordPress sites, but for sites based on Genesis themes it is a little more difficult to find a good guide. Luckily Brad Dalton from wpsites.net  have published a code snippet that works very well.

The should be added to functions.php and will create a [modified_date] shortcode, which you can also use in various widgets such as the “Genesis – Featured Posts” and in the Simple hooks plugin, which I also highly recommend.

You can see the code below, or use the link above to visit the original article where you can also see how to achieve the same result if you are not using Genesis

How to hack a password protected Word document

If you need to edit a Word 2010 document that has been protected against a editing with a password, all you have to do is this.

  • Save the document as an XML file
  • Open the XML file in Notepad or any other text editor
  • Look for the code that looks something like this:

w:documentProtection w:edit=”forms” w:enforcement=”1″ w:cryptProviderType=”rsaFull” w:cryptAlgorithmClass=”hash” w:cryptAlgorithmType=”typeAny” w:cryptAlgorithmSid=”4″ w:cryptSpinCount=”100000″ w:hash=”QtaIYzaqdsNY6+rDiZireRTIcR0=” w:salt=”Nm32FUBbspiQM+Rpm9VWIg==”

  • Delete it
  • Save the changes to the XML file
  • Open the XML file again in word, and save it as a word file again

It should also work in other versions of Word, but I only tested it with 2010 files

MILF – Moro Islamic Liberation Front

I suspect very few westerners think of a militant Islamist group when they hear the acronym MILF, but there is in fact a group in the Philippines called the Moro Islamic Liberation Front, or MILF for short.

To be fair the group probably thought up the name before the other more well known meaning of MILF came to be. The group was formed in 1981 when some members seperated from the Moro National Liberation Front group.

I highly recommend bringing up this group in serious discussions. It is very entertaining to watch peoples reactions when you keep saying milf during a serious discussion about politics, religion, terror or other important subjects

If you try to Google MILF the first million results will be anything but the Moro Islamic Liberation Front, so here is the links to the Wikipedia page about the MILF group as well as the more popular meaning of the acronym

The group: http://en.wikipedia.org/wiki/Moro_Islamic_Liberation_Front
The other thing: http://en.wikipedia.org/wiki/MILF_(slang)

Ajax.php causing high load on the server

If you are running a wordpress blog you might experience a very high number of “hits” to “/wp-admin/admin-ajax.php”. This can cause a very high load on the server, and if you are running your blog on a shared hosting platform, your hosting provider might even disable the script.
To resolve this you can make the changes below to ensure the script exits quickly if no action is supplied with the file request.

Change this
15 define(‘WP_ADMIN’, true);
16
17 require_once(‘../wp-load.php’);
18
19 if ( ! isset( $_REQUEST['action'] ) )
20 die(‘-1′);
21
22 require_once(‘./includes/admin.php’);

To This
15 define(‘WP_ADMIN’, true);
16
17 if ( ! isset( $_REQUEST['action'] ) )
18 die(‘-1′);
19
20 require_once(‘../wp-load.php’);
21
22 require_once(‘./includes/admin.php’);

For more info see this page: http://core.trac.wordpress.org/changeset/15606

or this http://wordpress.org/support/topic/wp-adminadmin-ajaxphp-with-some-27767-hits-on-this-file

WordPress post expire or category change

I have found the following plugins for wordpress that will enable an expiration date on a wordpress post. Some can also change the category, or at least be modified to add that functionality.

None of these are perfect so if you know of a better way to automatically change posts category on a certain date, please comment.

“Auto Delete Post” can, despite the name be setup to change the category instead… without changing any code.

“Post Expirator” can only delete the post, or set the status to Draft, however according to this forum post, a simple code change will enable category change.

“Atropos” Will also only delete the post, however here is modified version that will allow category change.

Customize exchange 2010 theme

To create your own theme for Microsoft Exchange 2010 you can copy the files from one of the existing themes and customize them to you liking. And easy way to do it is to copy the theme that most resembles your desired outcome, end then simply customize the header image, and preview thumbnail.

When you are done simply create a new folder in the themes directory and copy your customized theme.

The theme file can be found in here “…\V14\Client Access\OWA\<version number>\themes”

E.g. “C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\14.1.218.13\themes”

You can also customize the sign-in and sign-out pages which can be found here:

“\V14\Client Access\OWA\<version number>\themes\resources”

More info here: http://technet.microsoft.com/en-us/library/ee633483.aspx

Redirect exchange 2010 OWA URL

The best way to redirect exchange 2010 OWA is to use the HTTP Redirection feature in IIS. Note that for this to work you also need to disable SSL on the default website. Be aware that whenever you make changes to settings on the default web site, IIS will push them down to any virtual directory below which does not explicitly set that setting itself.

To setup the redirect do this:

  • Select the Default Web Site in IIS Manager, and open the HTTP Redirect option under IIS.
  • Select the Redirect requests to this destination check box and type the absolute path of the /owa virtual directory, e.g. https://mail.contoso.com/owa.
  • Under Redirect Behavior, select the Only redirect requests to content in this directory (not subdirectories) check box.
  • In the Status code list, click Found (302).

Now you need to remove the enforced redirect from each of the virtual directories under the Default Web Site. Select HTTP redirect of each virtual directory individually, and uncheck the “Redirect requests to this destination” checkbox. You’ll need to do this on the following virtual directories:

  • aspnet_client
  • Autodiscover
  • ecp
  • EWS
  • Microsoft-Server-ActiveSync
  • OAB
  • PowerShell
  • RpcWithCert

Next you have to disable SSL on the default website. Again you have to be careful as the SSL setting on the default web site will be inherited down to any virtual directory below which does not explicitly set that setting itself.

To disable SSL for the Default Web Site open the SSL Settings properties and uncheck the Require SSL checkbox.

Now you have to check the “Require SSL” for the following virtual directories:

  • Autodiscover
  • ecp
  • EWS
  • Microsoft-Server-ActiveSync
  • OAB
  • owa
  • Rpc
  • RpcWithCert

For all the changes to take effect, open a Command Prompt window, and then type iisreset /noforce to restart IIS.

Resources:

http://technet.microsoft.com/en-us/library/aa998359.aspx

http://briandesmond.com/blog/redirecting-owa-urls-in-exchange-2010/

Ignorance more frequently begets confidence than does knowledge (Charles Darwin)