Red Hot Internet Marketing

… online business for the rest of us

WordPress + Akismet + Server

One of those frustrating issues that crop up when you are on a server behind a firewall is the inability to configure Akismet in WordPress.

Instructions are simple and involve editing the akismet.php file.

Here’s how to do this properly:

You may need to modify the wp-config.php file – check with your webhost.

Irrespective of the server your host is running, you will need to edit the akismet.php file as follows:

1. find the following line (around line 117)

2. highlight all of the information between

“// Returns array with headers in $response[0] and body in $response[1]“

and

“// filter handler used to return a spam result to pre_comment_approved function akismet_result_spam( $approved ) {”

Be very careful in selecting the code – it’s easy to get that wrong! Here’s an image of the section of the akismet.php file to replace -

3. replace that section with this…

function akismet_http_post($request, $host, $path, $port = 80, $ip=null){         global $wp_version; $akismet_version = constant(‘AKISMET_VERSION’);         $args = array(              ‘method’=>’POST’,              ‘user-agent’=>”User-Agent: WordPress/$wp_version | Akismet/$akismet_version”,              ‘body’=>$request         );          $url = “http://”.$host.$path;
         if( !class_exists( ‘WP_Http’ ) )          include_once( ABSPATH . WPINC. ‘/class-http.php’ ); $http_request = new WP_Http;          $http_response = $http_request->request($url,$args);          if( is_wp_error( $http_response ) )               return;          $response[0] = $http_response['headers'];          $response[1] = $http_response['body']; return $response; }

This info is detailed at http://tall-paul.co.uk/wp-akismet-plugin-behind-proxy/.

However, the bit missing is how much of the function http code is to be relaced.  If you’re a php coder that might be fine but for those of us who can follow instructions without knowing code, we need more specific detail.

For those people, I hope this fuller insruction will assist.

 

 

PinterestShare

WordPress Admin Plugins

If you’re like me, I usually only worry about user interface plugins to enrich the customer experience. But as I have so many blogs now I find it useful to look for operational efficiency on the back end. So I was glad to find this post, again by the brilliant folks at ProBlogDesign. Continue reading

PinterestShare

SEO and Rankings

Finding the ‘best’ ways to get your site ranked in search engines is like a dark art in many ways …  so much advice, and much of it dated.

Today I came across these guys who seem to have cracked the jackpot for one their sites.

http://www.the42ndestate.com/how-page-rank-5-two-months/

They give some of their tips and techniques but a fair bit is missing like the intricacies of how they tweaked the Thesis theme to get the most juice from it.

Me?

SEO is not one of my strengths, I’ll admit.

Every day is a learning opportunity.

Learn a bit. Apply a bit. Learn a bit more. Apply a bit more.

At the end of the month I’m going to run a webinar asking two guys who have a solid grip on SEO for their best knowledge and ideas.

I’ll keep you posted on the details.

In the meantime, jot down any questions you might have in the ‘comments’ section.

PinterestShare

WordPress: Showing Home + Static Page

Hi folks

I can’t believe how easy a solution was available for this problem, and I fixed it myself after hours of searching!

I set up a new website using WordPress. No issue. Normally when I set one of these up I just use the blog posts as the first page and never have to to encounter this problem.

However, this time I wanted to set up a Static Page as my Home Page. No biggie – WordPress has that functionality right under the hood. Go to Settings/Reading/Front Page Displays and select “static page” then choose which page you want as your new ‘home’ or front page and where you want to refer to your blog posts. Easy as.

Trouble was when I did that I ended up with both two navigation menu items highlighted as the home page. Grrr. I figured this must be a common problem so searched .. and searched .. and searched for a solution. Nothing in the WP Documentation pages, nor much on the support pages and not much emanating from Google searches. Most solutions recommended fiddling with the code on various template pages (header.php, index.php etc). I didn’t want to mar my coding – I figured the people who created my template were far better coders than me and fully expected there was  a softer solution.

Well, four hours later, it clicked with me.  Want to know what I did?

  1. Go to your Pages menu.
  2. Select the Page you selected as your new front or ‘home’ page
  3. Go to the right hand section labelled “Publish”. See that item called ‘Visibility’? Click to the right of that and choose ‘Private’
  4. Click “Update”

Voila – you now have only one navigation item instead of 2!

Doh!!

Why was it that hard to work out and why didn’t that solution pop up before?

Go  figure.

PinterestShare

WordPress, Cutline, Archives and Backup!

There are time online when you are not just a marketer but you become a tech-head too. Yesterday I mucked up my blog.

I had been using the Cutline theme by maestro Chris Pearson. It’s an older theme but I like it’s visual simplicity. I noticed in the Cutline Options sub-menu that you could create an Archives page easily.

I clicked the “enable archives page” in Cutline Options. Then I set up the archive page in the Pages submenu. Voila … I had an archives page.

Whoa!! Wait a minute. Now the Archives page is my default first page and I can’t figure out how to change it.  I failed to notice the little extra text underneath the ‘enable’ button that said this would make the Archives page my First Page. So no matter what I did, the Archives page hijacked my site and I couldn’t get my site to show my posts as it did normally.

I unchecked the option, checked the WP Settings, reinstalled the theme, reinstalled wordpress and looked through the database and searched high and low for an answer on forums and the internet.

My first clue – even if I changed theme it still hijacked the first page as archives so the problem was no longer just theme related.

My second clue  even overwriting the wordpress files did not resolve the problem so it wasn’t a wordpress issue.

Final clue – by deduction, the problem had to be in the database.

Ever tried looking for how to restore MySql? Lots of technical jargon and complicated and outdated instructions. Then, by chance I fell on this : http://www.tamba2.org.uk/wordpress/restore/

Really clear and fool-proof simple instructions for the layperson on how to restore a backup.

Lessons:

  1. Always read all the detail before you change anything on your site
  2. Make sure you back up regularly. I use WP Database Backup which posts a backup to me. I just had to grab a version (from before I’d made the fatal change) to restore.
  3. Use WP’s Tools/Export feature to make doubly sure you have a copy of your site structure – posts, categories, tags etc
  4. Grab a copy of your latest posts and any modifications you want to reproduce that were done after the last Backup to now
  5. Follow tamba2’s easy method for deleting your corrupted database and restoring an earlier one.

In the end I had to re-enter the latest posts I’d created and only lost a sidebar text content which I can easily reproduce so no big issue…. except for the 12 hours I lost trying to find a fix!! Next time I’ll get my web guru on the case so I can focus on more productive outcomes.

PinterestShare

Easily manage ALL your WP Sites

Wow.

There is a fairy-godmother after all, and her name is Vlad!

I have a growing list of WordPress websites and it has been getting tedious updating each one of them and monitoring them, even with using a password manager to automatically login.

Then along comes Vlad with a very cool tool.

 

 ManageWP is both a plugin (which authorises the software to centralise your sites) and a dashboard which not only shows an at-a-glance status of your sites but also has increased functionality. You can do bulk updates and upgrades, bulk posts and pages, and other activities including automated backups of your entire site – outstanding safety feature.

And you never have to leave.

From within the dashboard you can then step into any of yoru sites and do the usual stuff.

This is a beta-model at the moment and so it’s use is temporarily free. Which is a good move on Vlad’s part because even after only 30 minutes playing with this, I’m sure most people will not want to go back to the manual method when he sets a price for it.

So head over to managewp.com and try it out for yourself – no affiliate links at all. Just passing on a tip – it works for me!

PinterestShare

CUSTOMISING WEBFOLIO THEME – 2

Webfolio is a free wordpress theme but it’s instructions aleave a little to be desired in parts. As I discover things I am writing them up here for others to benefit.

The Slider on the Front page

webfolio, slider setup,

 

 

 

 

 

 

Firstly, make sure you have the right features turned on. In WordPress go over to the top right of your screen and you’ll see “Screen Options”.  Make sure you have “Featured Image”, “Excerpt” and Custom Fields” each ticked.

Now, after you’ve written your post (it doesn’t work on pages, just posts) and decided you want this post featured in the slider, do the following…

This is all done while you’re in the “Add New Post” window

  1. Get your image ready – it needs to be 600w x 337h (pixels)
  2. Load your image through left navigation media item
  3. Go below the post box  to ‘Custom Fields’ and add
    1. featured with value = 1
    2. featured_image with value = your image url location
    3. note, the fields will be in the drop down box; your image url location will be your domain name and the directory tree and the name of the file eg ‘http://mydomainname.com/wp-content/uploads//monthyear/myimage.jpg’
  4. Move over to the far right in the sidebar and select  ’set featured image
  5. Add text to the excerpt field below – put a description of what the image is about as a teaser for people to click and read
  6. Move over to the far right again, click “Publish” and you’re done!

 

 

PinterestShare

Customising WEBFOLIO Theme – 1

FEATURED PROJECT

webfolio, featured project

 

 

 

 

 

 

 

 

Webfolio is a free theme for wordpress but the instructions are a little scant in places. As I find things out, I’m posting theme here.

To Change the words “featured project” in the slider on the front page:

1. Navigate to Appearance\Editor

2. Select “home.php”

3. Scroll down until you find the following line

<div class=”featured”><img src=”<?php bloginfo(‘template_url’); ?>/images/ico_star.png” alt=”Featured” /> FEATURED POST</div>

4. Change the words “FEATURED PROJECT” to whatever you want

5. Click ‘update file’ button and

You’re Done

PinterestShare

Bad Behavior has blocked 129 access attempts in the last 7 days.

Content Protected Using Blog Protector By: PcDrome.