Technology Errors

MM-Forms WordPress Plugin Not Working Over HTTPS After FORCE_SSL_ADMIN Set

I have had FORCE_SSL_ADMIN set for quite awhile now in my wp-config.php file which forces all traffic to /wp-admin/ to be HTTPS. When I initially configured this setting it broke numerous WordPress plugins which I fixed however I missed MM-Forms being broken. The issue was the exact same as previous plugins that had the issue so it wasn’t to hard to fix but I wanted to share in case anyone else is having trouble getting the MM-Forms plugin working over SSL. Below I will explain what lines need to be changed to get MM-Forms working over HTTPS including syntax, line numbers, and old code.

Code Snippets

Add Google Content Ads Between Your WordPress Search Results

I have been thinking about the best way to display ads on my WordPress blog search results for a long time because there are numerous options. You could just display content ads at the top, bottom, or both locations, you could add a WordPress plugin, or you could create a custom page with Google custom search results geared for your page. I played around with the latter two options but wasn’t happy with eaither result. One of the ways to do the Google custom search results is using an iFrame and iFrames suck. Anyway I decided to add some custom PHP code to display the ads however I ran into a problem quickly which was the fact that you can only display 3 of the same ad on any one page so if you want to display ads in between each search result it would get a bit more tricky.

Technology Errors

The WP Block Admin WordPress Plugin Not Working After Upgrade From 1.0 to 1.2

Recently I was upgrading various WordPress plugins one of which was the WP Block Admin plugin. This plugin will redirect all users with certain permissions away from the default /wp-admin directory back to the homepage after login. This is beneficial if most of your users only have to login for a forum or for comments on WP posts. After upgrading the plugin I noticed it was no longer working. I went through the below steps to resolve the problem.

First off the configuration file for this plugin is very simple thus making it an easy problem to resolve. The plugin is located in the /wp-content/plugins/ sub directory in a folder called wp-block-admin and besides a readme file there is only one PHP file located in this directory called wp-block-admin.php. Besides the commenting (including version number) at the top of the file the only other difference in the file was on line 33.

Technology Insights

WordPress Plugin: QuickCode Quick Reference Information

I typically post a lot of code or Linux shell data into WordPress posts using the SyntaxHighlighter plugin however in some scenarios that doesn’t always work the best so I use the QuickCode plugin. Since QuickCode is only rarely used I always forget the possible options that are available so this is a quick reference to those options.

QuickCode: A WordPress plugin formater

Standard QuickCode Post With No Options:
[quickcode]
<?php print “This is sample code line one”; ?>
<?php print “This is sample code line two”; ?>
<?php print “This is sample code line three, Question Defense ROCKS!”; ?>
[/quickcode]

Technology Insights

How To Easily Post Code Snippets In Your WordPress Blog

Ever since we started this site I have been struggling with posting code snippets into WordPress blog posts. First I was attempting to use the <pre> and <code> tags but they would blow out the side of my Mandingo theme with two columns. I would then try to go through the code and break the lines at the right places trying to do the formatting myself… no a brilliant idea. Justin whom also posts on this site suggested Markdown which works great. I even put some effort into learning it and don’t mind using it at all. I installed the Text Control plugin and replaced its markdown.php with Markdown Extras markdown.php file which worked like a charm. My problem was that I was still blowing out the side of my theme. After a fairly long search I found a plugin that I did not find on WordPress.org but directly on the developers site called QuickCode which you can locate here