Sling Alibi | Blogging 101 - Behind the Scenes at SlingAlibi
Bing

Configuring WordPress and Windows LiveWriter

by asli 25. May 2010 06:06

Windows LiveWriter is an easy to use blog editor, that has a rich ecosystem of add-ins, such as the Facebook Like plugin by Guy Burstein.  In order to use the Windows based plug in with the WordPress PHP application, you’ll need to enable remote procedure calls with XML. Otherwise you will see the error “Server Error 405 Occurred. XML-RPC services are disabled on this blog.”

XML RPC serves

In order to set it up – navigate to the options-writing.php page using your browser and check the box to enable XML-RPC.

XML RPC

Hosting PHP on Windows Server 2008 via WordPress

by asli 25. May 2010 05:40

WordPress is the most popular PHP application running on Windows.  SlingAlibi currently runs on BlogEngine.NET. We decided to set up a second blog engine with WordPress, running side by side on Windows Server with BlogEngine.NET. 

The steps are super easy thanks to the Web Platform Installer, we’ll walk through them with screenshots below. In essence, it takes 5 steps to host PHP on Windows Server 2008 via WordPress (assuming your hoster supports PHP and MySql):

1. Download WebPI
2. FTP the WordPress files to your webserver
3. Create a blank MySql database
4. Configure the wp-config.php file to point to #2 and #3
5. Launch the wp-admin/install.php file in a browser and finish the setup.

Download Web Platform Installer

The easiest way to pull down WordPress for Windows is through the Web Platform Installer (WebPI).  WebPI will automatically pull down any necessary dependencies such as PHP and MySql:

WordPress dependencies 

In the Web Applications tab, you can choose

web Platform Installer WebPI

FTP the Files

This is simple enough to do. I use FileZilla to bring over the WP files, which I have stored in a directory called AntiqueCurator.

FTP files

Create a MySQL Database

WebHost4Life uses PHPMyAdmin, a popular tool for managing my database. To access it, click on MySqlManager on your control panel. This will launch PHPMyAdmin. Type in a database name and click the Create button.

mysql manager create PHP database with PHPMyAdmin

Edit the WP-Config file with your server and database information

Open up the WP-Config file in Notepad, and just update the user, password, database, and server fields with your data. Be sure to FTP the updated file over to the server.

Wordpress config

Run the installation page in a browser

From the server, open the /wp-admin/install.php page and walk through the wizard.

WordPress Installation

Customizing BlogEngine.NET to redirect RSS feeds so you can track analytics

by asli 1. May 2010 07:07

It’s simple to modify the code in BlogEngine.NET to track analytics on your feeds. This is helpful if you have a variety of different topics on your site. Typically, readers will prefer to follow one particular topic – or category.  As you can see on the right hand side, SlingAlibi has a variety of different Categories – or books, as we like to think of them. 

With a little bit of customization, you can track which ones are doing well, and which ones, well, maybe it’s time to retire.

First you will have to burn a feed. By default, BlogEngine.NET will base the feed on the category name itself, such as:

http://blog.slingalibi.com/category/feed/Emirates-Hills-Chihuahua.aspx

What if we wanted to redirect that feed to an analytic engine who can examine the subscriptions and traffic to that feed?  In order to create the redirect, you’ll need to dive into the App_Code, Controls directory. There you will see a code behind file called CategoryList.cs.  Create a back up copy and then add some conditionals inside the code:

image

Now when your readers click on the tiny orange RSS icon next to your category, they will be redirected to the appropriate analytic engine for processing.

Tags: , ,

Blogging 101 - Behind the Scenes at SlingAlibi

Avoiding Comment Spam through Subversion

by asli 30. April 2010 18:36

This week SlingAlibi has been examining ways to clean up CommentSpam.

By default, BlogEngine.NET 1.5 does not have the heavy protection from comment spam. A handy Extension like Askismet works wonders (as does the impending upgrade); however, one way to disguise your site from spammers is to see how they find your site.

A quick examination of the Analytics for this site showed how the spammer culprits determine a site is vulnerable for spam. About 4% of the traffic came from a search for “powered by blogengine.net” – in exact quotes. This is simple enough to change, while still crediting our packaged application.

  sneaky spammers

Editing the Master Page

You’ll need to edit the master page for the theme you are using. For our site, we keep it simple and use the Standard theme. You’ll find this inside the Theme directory.  Open up the site.master file and change the footer text to read something else – anything else…

master page

Tags: ,

Blogging 101 - Behind the Scenes at SlingAlibi

Managing Comment Spam – Write a little code and start charging fees

by Asli 28. April 2010 12:05

comment spam

Ah, a perfect example of comment spam, recursive and redundant in its very own nature. How to avoid it? Slingalibi has put a policy of charging $100 per comment or advertisement not related to the post content. Thanks to comment tracking, we can see the IP address and email of the offending orginator – for SlingAlibi, it appears in many variations of the alias, Dr. Britt Borden, who owes the site over $10k already!  Since we’ve only implemented the policy, we will let you pass on the old comments and spam, but going forward, we will begin to charge you, Dr. Britt.

brit borden

brit again

How to get rid of comment spam with BlogEngine.NET

The quickest way to get rid of comment spam is to initiate a fee for unrelated comments. To do so, open the comment.ascx file (located in the User Controls directory) and add the following line:

new policy

Ensure that your comments are moderated (by default they will be) so that offensive comments will not find their way into your content.  From there, use the IP address and email addresses to notify the offender of your policy and begin charging.  Depending on where you are hosted, the local authorities will assist in ensuring that your policy is indeed enforced.

Tags: ,

Blogging 101 - Behind the Scenes at SlingAlibi

Based on BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

© 2010 | SlingAlibi | Content Copyright | Comment Policy | Privacy Policy

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

RecentComments

Comment RSS

Blogroll

Download OPML file OPML

Most comments