WosServer: Tweaking Your Blog for your Stick Part 2

After yesterday’s little experiment, I began playing with the WosServer and found some little tricks for bloggers, would-be marketers or developers.

If you already have a blog or site that you are working with that is live, you can create a full version on Wos. It’s a little fussy but you can do the following things…

For parts 1-5, see WosServer: A Useful Tool in your Armoury.

  • Step 6: Download a copy of the database from your website (via the PHPMYSQL interface or wizard).
  • Step 7: Get and install the WP PHP Admin plugin. Activate it as usual. Head over to the new tab.
  • Step 8: Activate the plugin. Then carry out an import operation to import your downloaded file into the WosServer MYSQL database.

phpadmin plugin used

Image shows: plugin activated and accessing my database.

  • Step 9: (optional) If you encounter a problem with the size of your file, you will need to go into the PHP files in Wos Server, and edit the php.ini file to increase the permitted size from 2M to something more reasonable if you have a BIG blog, like mine.
  • Step 10: Download the complete wp-content/ folder with ALL the pictures, too.
  • Step 11: Move the wp-content/ folder to its rightful location, images, plugins, themes, etc.
  • Step 12: You will also need to change the database name in wp-config.php to your imported database name.
  • Step 13: You will need to edit the ‘options table’ in your database from http://www.yourblog.com to http://127.0.0.0/wordpress twice or you won’t be able to access your blog. It will keep taking you to the live site. You will see the first of the two entries in the wp-options table in the first row named ‘siteurl’, the second entry is on page 4 of the list, entitled ‘home’. Change both of these to your new URL. It’s difficult to change them within WordPress like this, because you will end up on your live blog.

Oh, and when you login for the first, do remember to use your original blog password, not admin/password for the WosServer. Oh, and there’s no email reminder! So don’t forget! The good news is that the plugins/wordpress core updates all seem to work fine as they do in version 2.7. Good luck.

 

WordPress 2.7 – Five Reasons You Shouldn’t Wait To Upgrade WordPress Today!

With the recent and much anticipated release of WordPress 2.7, I was reluctant to upgrade some of my blogs because of past foibles, bugs and unexpected incompatibilities with plugins. So when I read that 2.7 was released, I was initially reluctant to upgrade ANY of my blogs. So I started with a couple of them, and updated, tested things out, and moved on. Ordinarily, I would have waited until 2.7.1 was released as a bug fix for some of the issues that area always present in a full release of WordPress.

Overall, I’ve been very impressed with WordPress 2.7, in the few days that I have used it, and I’m a little frustrated that some of the hosting companies I work with haven’t updated the software on CPanel yet. Of course, Dreamhost jumped in pretty early, and that’s why I was happy to try it out. I’d say that there are five basic reasons I like this version of WordPress more than any previous release.

1. A Simplified Dashboard: You can eliminate clutter!

The dashboard has long been a bone of contention for me, because of the tendency of WordPress to want to flaunt its gimmicks, updates and features to all and sundry. In this version, though, users get to turn off the feeds, through the screen options at the top right. Simply uncheck the things you don’t want. Voila!

wp admin area

Additional features that are helpful are the little downward arrow that occurs at the top of most boxes, in the top right corner of each box. Simply clicking on that arrow or area closes or opens the dialog box in an obvious fashion. You’ll see the downward pointing arrow next to tools (see highlighted area). It works simply in a toggle fashion. These toggle switches are all over the admin area. To find them, just hover over the task bar for each item on the right hand sided.

down arrow in wp admin

The dashboard area is divided into three areas: the sidebar on the left where each of the menu items can be opened and closed; the central column which includes the stats box, the writing box; and the right column that pretty much includes everything else. As you can see from mine, it’s easy enough to pick things up and move them around a lot. Clicking on the words “screen options” highlights an area where you can turn off things you don’t want to see.

The right sidebar includes several new designations which may be confusing to new users. First the ‘pages’ button has moved to just below ‘links’. It used to be located right next to ‘posts’. This confuses me now. I often hover between writing posts and pages, and now I have to look further afield to find the pages button. It seems illogical to place it after ‘links’.

The old ‘design’ menu has been renamed ‘appearance’ on 2.7 but functions in pretty much the same way as the its predecessor. The Tools menu, however, is a new one and features several items that were moved from the former ‘Manage’ menu, including import/export functions. The Upgrade items, though, hint at some of the new features of WordPress that make management much easier (more later).

2. Keeping Upgraded – it’s getting easier!

Plugins are getting easier to manage: You will soon no longer need to use FTP to upload stuff – plugins and core upgrades can all be done within WordPress itself. This leaves ‘themes’ as the only item that now needs FTP. I imagine that future versions of this will remedy this. Other software, such as Joomla or SMF, have long had this ability. Right now, you can upgrade a plugin in much the same way as uploading other items. Find the item ‘plugins’ on the left hand menu. Click it, and you will see it open slowly to reveal four options. To add a new plugin, click on the words ‘add new’, and you will be taken to a page where you can upload a zip file of the plugin which is uploaded and installed. After it’s done, you can activate it straight away. A nice touch. Just hit ‘install now’ to upload the plugin!

plugins management

It’s also much easier now to find new plugins. Take a look at the next screenshot: you will see what I mean! The tags below the upload button hint at the next page. These plugins are from WordPress.org’s own plugin area, and clicking on the tags reveals that they can all be downloaded and installed quickly and without any fuss.

install plugins

In fact, activating and inactivating plugins has also got easier as has removing unwanted plugins. Simply just click on the plugins area on the sidebar, usually under ‘plugins’ >>> ‘installed’ menu option. You’ll find it easy to manage plugins from there, including removing them completely!

But this plugin management hints at another feature (one that I have not needed to try yet)… upgrading WordPress can now be done entirely from WITHIN the admin panel. Take a look for yourself! Under Tools >>> Upgrade, you’ll see the following dialogue.

upgrade wordpress

Very tempting when you can choose to download and reinstall automatically. I have no idea how this works, yet. But it would be a neat variation IF you could upgrade from WITHIN the admin area. Perhaps this is just teasing us.

3. Commenting from WITHIN WordPress

Admins often had to comment in a very odd fashion before: read the comment in the comments area; find the post in the archive, read the post, and then comment in the comment box AFTER the end of the article. Now it’s much easier:

comments reply wordpress

Just hit ‘reply’ to answer the query and a simple but functional comment box will appear just below, enabling you to answer without messing around in the archives! Of course, this presumes that you remember what you wrote!

4. Quick Posting and Quick Editing

The commenting function also has another feature that hints at much more power: the quick edit button. Clicking on the Quick Edit enables you to edit the comment very quickly, without calling up the entire post or page where it is entered. But the ‘quick’ idea has been extended with in several ways: making a powerful trio of blogging tools.

QuickPress : on the admin page, when you login you’ll be taken to a dialog box that enables you to write a short post, with media and tags and publish it in a matter of minutes! While you don’t have a WYSIWYG editor, you can learn some simple codes to faciliate quick blogging (they’re all available in the Write Post area).

wp admin area

Quick Edit is also enabled in the post and page view, and allows you to quickly update a number of features (the usual suspects that a busy blogger will forget in the heat of the moment!): such as tags, categories, slug, date or more…

quick edit post

This combined with Press Links (shouldn’t it be called ‘Quick’ Links?) means that posting, editing, linking and commenting can all be carried out fairly rapidly.

5. You can now add media without creating post

This is another puzzle from the previous version that was finally finished! For years, I never thought about uploading media to WordPress. I simply created a post and added the stuff I wanted… until last month when I created a batch of videos and wanted to upload them all at once. I would have had to create a post and add each one one by tedious one! Now it seems, I can simply upload media as I need and when I’m ready I can create a post and find the media I already uploaded! It’s funny, but that’s something you don’t need, until you really need it! And now it’s here!

upload new media

Now it would be nice if I could upload a number of files at one go! Oh, wait! It does! Or at least I think it does! I’m practising uploading media now! Now I wonder how I can create a simple gallery from these files! …

Spam, Ham: What do you do with over 1000 of them in your comments queue?

After New Year, I came back to a huge glut of spam in my database! I hadn’t configured a standard plugin because I thought the blog would go relatively unnoticed! Boy! Was I wrong or what? The queue contained over 1000 spams, that didn’t include spam in my comment plugin either.

spam I am

So how do you deal with a huge queue of spam like that? I spent ages clicking page after page when I realized that I was doing it the stupid way.

Continue reading

30 Tweaks for Setting Up WordPress For the First Time

This is a short checklist of items that I created when I was setting up a friend’s new blog. It’s pretty much all the tweaks, I make to a standard install of WordPress that I use.

Once you have created your admin user:

  • 1). Login and set the password to something you can remember!
  • 2). Update any pre-installed plugins that you need, remove any that you don’t.
  • 3). Set the title and Tagline in General Settings
  • 4). Check your WordPress address is correct
  • 5). Update your email address.
  • 6). Check the membership of the blog including the New User Role
  • 7). Don’t forget to check your timezone!
  • 8). Go to the writing tab, and check the size of the post box! I usually set mine to 15 lines.
  • 9). For remote publishing, I always check the XML-RPC box.
  • 10). Add any Update Services that you want to ping.

On the reading tab in Settings:

  • 11). Set your frontpage, to either blog style or have a static page.
  • 12). How many posts do you want per page? Five is a reasonable number
  • 13). Set your feed to show the ‘x’ most recent posts. I usually set that to 10 if I’m doing full feed or 25 if not.
  • 14). Set your feed to show the full text or summary. Most people recommend the full text for feeds.

On Discussion Settings:

  • 15). I always set “An administrator must always approve the comment” which is ideal for a new blog, and prevents unnecessary spam.

On the Privacy tab:

  • 16). I always set to “I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers” but if you’re for a small or private audience, then check the other option.

On the Permalinks tab:

  • 17). Set the options for your permalinks. I usually use the /%postname% tag with something else, for example ../archives/%postname%/

Plugins – There are two plugins that are pretty useful to get at the beginning:

  • 18.) Akismet for spam. You’ll need a WordPress.com API key for this.
  • 19.) WP-Cache Manager. You’ll need to activate it, enable the manager and set the time (in seconds).

Users Tab – On the Users tab, click to find your admin profile:

  • 20.) Set the Nickname to something you like. Hit ’save’.
  • 21.) Set your “Display name publicly as” to the Nickname in 20.)
  • 22.) Check your basic details, Website, and any Bio. Info.
  • 23.) Go to the Design Tab.

If you have a good host, you’ll have a variety of themes pre-installed.

  • 23.) Find a good one, activate it.
  • 24.) Go to the Widgets and select the ones you need.
  • 25.) Go to the Theme Editor…
  • 25.) Add your Google Analytics code in the footer!
  • 26.) Add any other code that you might need to the footer.

General Tidying Up: Let’s set the links categories

  • 27.) You will need to decide what links categories you need.
  • 28.) Remove or add any particular links you need in the blogroll.
  • 29.) Set your initial categories for posts, too.
  • 30.) Remove the Hello World post and default links in the blogroll!

This has been honed over numerous installs of WordPress, but is by no means the only possible set. If there are any errors, please read the comments and submit one!

WordPress 2.7 is coming – the preview…

Well, WordPress 2.7 is just around the corner, yet another upgrade, yet another version that is likely to introduce all the things we love and hate about WordPress

New Features and Bugs

Take a look… I won’t be in the first wave of upgrades at all. I’ll likely hang around for version 2.7.1 before upgrading unless there’s an immediate requirement to upgrade.

I think the interface will be useful and more friendly, but I won’t really know until my customers have tried it out! For more information, check out an extended discussion at WebTools Collection.

Security in WordPress: Are you still showing YOUR plugins?

Michael Kwan’s blog was recently hacked by a clever hacker who managed to hide his visit neatly. Michael will tell you all about the story at his blog. This event plus a couple of other events has got me thinking about blog security . I’ll be doing a fuller post on my own experiences, ideas and suggestions.

It’s going to be a long post, so it will take some time to put all the pieces together. In the meantime, why don’t you sign up for my feed… so you don’t miss it!

——-
For more interesting articles on running a business, making money, operating your blog, , and so on…, subscribe to the RSS feed or email newsletter. There’s a lot more in the Random Walk to Wealth on InvestorBlogger dot com.
——-

Apart from the obvious tactics of keeping your blog software, themes, and plugins uptodate, several bloggers have suggested ways to make it more difficult to find out which version of the blog platform, and which plugins, you are actually running.

The typical solution is to add a blank html file to the /wp-content/plugins/ directory which will show a blank page, or in John Cow’s case a Moo! But I was surprised to learn that this technique fails to stop an easy way around this. It is possible to discover quite easily any plugin that you can guess is installed and retrieve the directory listing for that plugin even though the higher level directory is masked. Take a gander:

johchow

(This image was taken from one of my other blogs with the WP-Cache plugin installed and active.)

I found the directory for the wp-cache folder for another blogger who had otherwised masked his plugins directory with the standard blank HTML file. Unfortunately, a determined hacker will be able to figure out which plugins you likely have, rifle your directory of files to see which files exist in the subdirectory of plugins, and perhaps hack your blog… I could see the contents of this wp-cache directory, plus all the other ones I knew this blogger to have been using. Mmm! I didn’t think that was particularly secure.

What alternatives are there?

Standard .htaccess

Yes, you could simply use an ‘htaccess’ file to secure the plugins from display but you would have to manually write and upload the file to each and every plugin directory that you already have. This could be done more than ten times on my blog, I think. It would look something like this:

Redirect 301 /index.html http://www.your-domain.com/
Redirect 301 /index.htm http://www.your-domain.com/
Redirect 301 /index.php http://www.your-domain.com/

But I realized that with the most commonly suggested solution to prevent viewing plugins, namely a 301 redirect, it is still possible to view the contents of any directory of any plugin below the directory in which the htaccess file is placed. So even if you place the htaccess in the directory of any particular plugin, some plugins also contain subdirectories (for images, etc.) that will still be visible. Tiring work…, so…

IndexIgnore

If you have a lot of directories in the plugins folder, the simple and easy solution is to create an htaccess file with the following command: “IndexIgnore *” and place it in the /wp-content/plugins folder. This should prevent anyone seeing the listing in that folder or any folders below that level. It generates an error like this:

investorblogger

It’s not very pretty but it’s effective so browsers won’t display the contents. It could also be an opportunity wasted. Why?

HTML file

The standard blank HTML file mentioned above looks something like this:

<HTML>
<HEAD>
<TITLE>Blank Page</TITLE>
<META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=utf-8″>
</HEAD>
<BODY>
</BODY>
</HTML>

Then Michael Kwan suggested adapting it to a page redirect in a chat we were having. He wrote: “…i’m thinking that it’s also possible to do a index.php and then put in a redirect… if you keep this file handy then you can upload it each time you install a new plug-in…” I began to think: What a good way to turn a problem into an advantage! I’m using an HTML file, though, not a PHP file.

The blank HTML file doesn’t show anything, and inadvertent visitors will not know what’s wrong. And the 404′s only show that a page was not found. So why waste the opportunity? I’ve adapted some simple code that I use, and it should work a treat. I would like to attribute this code, but I can’t remember where it came from!

Page Redirect

With this page redirect, it’s easy to redirect visitors quickly and conveniently to the most recent posting or indeed any specific page you want:

<html>
<head>
<title>Your Domain</title>
<meta name=”robots” content=”noindex,nofollow”>
<script>window.location=http://www.yourdomain.com;</script>
<meta http-equiv=”refresh” content=”1; url=http://www.yourdomain.com“>
</head>
<body>
<p align=”center”>You are going to Your Domain Name now…
<br>If the page does load after 5 seconds or if you are (like me) impatient,
<a href=”http://www.yourdomain.com“>just click here</a>.</p>
</body>
</html>

The only downside is that you’d have to add this to every plugin directory the first time. But you could easily keep a copy somewhere and copy it to any subsequent plugin directory before you upload the plugin.

Thanks to Michael Kwan, and others for providing information that helped to write this blog. I’d appreciate any updates on security, so just drop me a line, especially if I got something wrong.

(Post edited for language, clarifications, and so on.)

DashBoard Editor: Changing your Dashboard in WordPress

Sometimes as a blogger, I get tired of the traditional feel and look of the Administration Panel, and the slow loading of the WordPress feeds drives me nuts. I’ve already tinkered with the Administration page before on more than one occasion, but recently, I’ve been trying two plugins that are pretty neat: DashBoard Editor (this post) and MyDashBoard (Thursday).

DashBoard Editor
The first is Dashboard Editor, which is a simple panel that adds a dashboard configuration switch under the Dashboard editor. Currently, I can’t get the website to load but you can try again later.

dashboard-clean

It’s very simple to operate. And, most importantly, it works in a non-destructive way, so you can simply disable the plugin, and everything’s back to normal.

At the top you will see a text area that you can type in. This text will appear in the dashboard. Formatting is very similar to the bb-code style of posts and pages. If you used to blog in WP1.0+, you will already be familiar with the switches.

Below that area are a number of check boxes, all of which are self explanatory. They will allow you to remove the feeds, incoming links, news and so on. Of course, you can simply clean everything and start from nothing. One of the neatest features is that you can use Plugins, too. If you look at the last switch entitled “Use Sidebar Widgets”, this will create a separate column under your Presentation >>> Widgets menu. Simply create, add or move any widgets you want to show up on the Admin panel.

There are some limitations that you may wish to consider:
1. There’s no obvious way to have a widget in two places, though, ie. in your Admin Sidebar as well as the general sidebar(s). Also, the Admin sidebar is only available to those who login.

2. If your blog has many users who can register and login, you may wish to think carefully about the information you enter. For example, putting passwords for your email account in there may not be the wisest thing to do! Currently, there is no way to change the Admin area for different levels of users.

Overall, it’s easy to implement, easy to use, and easy to remove. We are looking forward to the developer adding features in the future!

New Themes: Revolution and the Morning After

The choice of a theme for a website using WordPress used to be: blog style theme or pay a lot of money to have your website designed professionally. But now, there is a lot of interest from publishers to use WordPress as the website, so it’s getting easier to find themes that can fit that need.

news revolution

Revolution Themes by Brian Gardner is one such set of themes which allow WordPress to appear as a magazine almost. The theme makes good use of a number of factors important to magazine sites including:

  1. front page space allowing main features to be shown,
  2. lots of links to recent articles,
  3. videos and large graphics
  4. mailing list box,
  5. 486×60 box for graphic,
  6. archives,
  7. Section Pages

There is also space for a lot of other things, too, at the bottom and in the middle. Since the quality of the design is excellent, and it would likely appeal to those creating a magazine style website, it’s not free, but at $99 for a single install, it could be a good deal! His other notable themes include the Blue Zinfandel series.

While for those on a budget, there are a couple of ‘free’ themes that work along the same line of thinking, of which the best seemed to be ‘The Morning After’ from Arun Kale.

home preview tma

To get the posts working, you’d need to create two additional categories for the blog. But it looks good and might be a good way to test out a magazine format. Other features include:

  1. A three-column home page
  2. “Featured” post highlighting
  3. Associating images/thumbnails with recent posts
  4. Customisable logo/header image
  5. Easy CSS classes for adding captions and wrapping text around images in posts
  6. Asides

Whether or not your blog is becoming a magazine, the number of links on the front page to your archives in either of these formats would be a good way to drive traffic to your older posts. You could tweak the formats even more to add extra stories, this would help your older stories be found more easily, especially if you have so much of the content that is hidden away (on my primary blog, there are now nearly 800 individual posts!).

Techniques: 5 ways to speed up WordPress

The last few weeks haven’t been the happiest time for my blog because of hosting issues, network problems, and server problems. But with them out of the way, I came across an interesting article on Lorelle on speeding up your WP installation. So I’m putting this in my ‘Sunday Projects’ category:

The 3 Easiest Ways to Speed Up WordPress
So, in the past 2 weeks I’ve had 3 articles hit the front page of Digg. Let me just tell you, the onslaught of traffic can bring a server to it’s knees. Over the last many months I’ve learned a thing or two about tweaking WordPress, and while this is not meant to be an exhaustive tutorial on how to survive a Digg, it will give you some tips that can definitely improve your blog’s performance for all of your visitors.

OK, what have I done? Let’s see, I’ve done five things to speed things along.

1. Unused Plugins: Or what do you do when you have more than 30 plugins?

On Lorelle’s advice, I moved ALL my unused plugins to a separate folder in my root folder, out of the way of the WordPress Software. If I need them, I can move them back. If not, why are they are there? She noted that they will slow down a WP installation.

2. Unused Themes: 49ers?

I also moved my 49 unused themes (some of them quite hideous) to the same location. I don’t know if it made any difference or not, but finding the theme should be much quicker when there is one in the theme presentation folder!

3. My Sidebar

I cut down, removed, and converted elements in my sidebar. I cut down on useless stuff such as Javascripts to online services (I only kept Payperpost, Google Adsense and Analytics, and Alexa). I trimmed my comments and recent posts to only five items each to see how that would fare. Also, I decided only to have twelve categories after all. I simply copied the text from the front page, pasted it into a new post, switched to code view, retrieved that new HTML code, and pasted it into an already used widget. You can’t tell, can you? I also did the same thing to the blogroll. Still can’t tell, can you?

4. Maximum number of posts per page

I trimmed the number of posts on each page to three. Most people have five or even ten, but I can’t at the moment. It slows the server down too much. So I opted for three. It’s not ideal, but…

5. Standard PHP Code

I am slowly thinking of following another of her suggestions: switching ‘static’ php code to its html equivalent to speed up things. For example, in this theme, a PHP call for the blog URL and title and so on would require three separate routines for the same information (ie. the same everytime it’s called). I’ve kind of already done it with the sidebar itself. I’m thinking of switching to HTML from PHP for some of the plugins that I use or use to have: such as using a real robots.txt file instead of a plugin, re-adding my signature as HTML with local hosted images, and so on. I already removed the footer PHP for that reason and the Archives page has become static HTML, too.

Anyway, we’ll see how it goes. In the meantime, I’d like to thank Jorge at Investing Adventures dot com for keeping an eye on things and giving me feedback when my blog is slow. It was taking 20 seconds or more for a page to load, right now as I type this pages are loading in under 10 seconds. But I’ll keep an eye on the load, speed and traffic over the next few days to make sure things are ‘normal’.

Dreamhost: A good place to start hosting

If you have never hosted your own website’s before, it’s actually not that complicated. But still those first steps into the unknown can be actually quite tricky. I’ve been a Dreamhost customer for quite some time, 2004 in fact. During that time, I’ve had good service, lots of space to grow, and some great tools!

Of Dreamhost, Servers and Coupons for all!

As I’m happy to report that I’ve been moved to a new Virtual Server, courtesy of Dreamhost. I had been thinking about it for a while, and finally opted to go for it after the problems with the blog on a shared server. You can check out how the PS works here. Since Dreamhost is now offering only one plan, I opted for that, and decided to spend the extra money on my server. Here are my stats for the last few days, it’s fun to see how things go up and down. There’s also a reboot server button for when things get sticky! It works a treat.

dhps

I’ll be doing a full review of the service in about a couple of weeks. Suffice to say, if you’re interested, you can use my special Dreamhost Coupon. To celebrate Dreamhost’s 10th birthday, I’m offering the Triple 10 – That’s get 10% more bandwidth, 10% more space, and 10% off the price, too, on ANY plan, and that’s in addition to the discounts that Dreamhost is offering for longer term contracts.

Payment Period

Cost

Discount

Monthly

$60.90

$5.10

Yearly

$119.40

$11.94

Two years

$214.80

$21.48

Three years

$286.20

$28.62

Five years

$417.00

$41.70

Ten years

$714.00

$71.40

If you’re interested, when you sign up, you can use the DreamHost Promo Coupon Code: DH10THBIRTHDAY . And yes, pass it on!