Our mobile site

QR Code - scan to visit our mobile site

I usually create sites in Joomla or WordPress, but the last nine or ten sites were done in WordPress only. So I will here gather several posts by people that also install WordPress frequently, to peek a little into their gardens and see what are they doing when they are alone with WordPress.

The first article was actually No. 1 on Google at the time of this writing for the phrase “10 things to do for a new wordpress site“. It was written by Amit Agarwal and published on his blog. The article is written purely from a programming point of view, and requires you to delve into the code of WordPress itself. It is fairly easy to do, should you be inclined to.

So, here is the article:

Things You Should Do After Installing WordPress

The WordPress tips and hacks mentioned below apply to a self-hosted installation of WordPress. You may skip if your WordPress blog is hosted on WordPress.com and not WordPress.org.

Tip 0: Change the Default Image Upload Folder

The default installation of WordPress will store all your images inside wp-content/uploads folder.

image-upload-folder

You can however use a different folder or even sub-domain on your web server for saving file uploads as in the setting screen above. This offers two advantages – your image URLs become relatively shorter and second, the size of your WordPress folder will always remain small and manageable.

Also deselect the option – “Organize my uploads into month- and year-based folders.”

Tip 1: Remove unnecessary code from your WordPress header.

WordPress by default adds a version number to the header of all your blog pages.

<meta name="generator" content="WordPress 2.5" />

This information may prove a goldmine for WordPress hackers as they can easily target blogs that are using the older and less secure versions of WordPress software. To completely remove the version number from WordPress header, add this line to your functions.php file in the WordPress themes folder.

<?php remove_action('wp_head', 'wp_generator'); ?>

Tip 2: Prevent people from casually browsing your WordPress Folders

Since you definitely don’t want Peeping Toms to navigate your WordPress files and folders using the explorer view in web browsers, add the following link to your .htaccess file that exists in the main WordPress installation directory.

Related tip: Most Essential WordPress Plugins

Options All -Indexes

Tip 3: Windows Live Writer Templates & WordPress

If you not blogging via the Windows Live Writer client, add the following line to your functions.php file.

<?php remove_action('wp_head', 'wlwmanifest_link'); ?>

The WLW-Manifest function is used by Windows Live Writer to download the styles / themes used in your WordPress blog. Windows Live Writer users who do not use the live preview feature may also turn off this function.

Tip 4: Turn off Post Revisions in WordPress 2.6

WordPress 2.6 introduced Wikipedia style document revisions where you have access to all previous version of the document making it easy to revert incase you make any mistakes.

This may be a great feature for blogs where multiple authors work on the same blog post but 99% of WordPress users don’t need it. Post revisions also increase the size of WordPress wp_posts table as each revision means an additional row.

To disable post revisions in WordPress 2.6, add this to your wp-config.php file.

define('WP_POST_REVISIONS', false);

Tip 5: Disable HTML in WordPress Comments

The comment box is WordPress is like a basic HTML editor – people can use HTML tags like <b>, <a>, <i>, etc to highlight certain words in their comment or add live links. If you like to disable HTML in WordPress comments, add this to your functions.php

add_filter( 'pre_comment_content', 'wp_specialchars' );

Tip 6: Change location of the Plugins & WordPress Themes folder

With WordPress 2.6, you can place the wp-content folder anywhere on your web server. This may come handy when you are upgrading the WordPress installation because none of your existing themes and plug-ins will get overwritten even if you replace all the WordPress files with a tar downloaded from wordpress.org.

If you decide to move the wp-content folder to another location, specify the path in the wp-config.php file:

define(‘WP_CONTENT_DIR’, ‘http://www.labnol.org/assets/wp-content’);

Tip 7: XML Sitemaps – Change the Building Mode

If you using XML Sitemaps plugin in WordPress, try changing the building mode to “manual.”

xml-sitemaps

When you publish (or delete) a blog post via the WordPress write panel, the entire XML sitemap is recreated from scratch and hence may increase the overall time it takes to publish a post as you’ll have to wait until the creation process is over.

Tip 8: Turn Off Image Thumbnails in WordPress (workaround)

disable-image-thumbnails When you upload an image to WordPress, it creates two additional thumbnail images in the uploads directory. I don’t know how to prevent WordPress from creating image thumbnails but there’s a workaround if you publish posts via Windows Live Writer.

Just use the FTP publishing option for images and this will automatically disable thumbnail creation because the upload happens through a different route.

Also see this tip on creating a mobile friendly WordPress blog using Google Reader. The upcoming article will be about XML-RPC support in WordPress 2.6. Stay tuned.

====================

After these PHP tips, which maybe a little dated but still function, here are the more classical pieces of advice on what to do after you install WordPress. It was written by Michael Martin of ProBlogDesign.com.

1. Change the Admin Password and Manage Your Authors

WordPress gives you some random concoction of a password that you’re *never* going to remember so the first thing you need to do is change this to something memorable.

Manage your user settings via the Users panel, and you can add any additional blog authors here.

2. Edit Permalinks

By default your articles’ urls will look something like www.leemunroe.com/?p=396. This url structure is poor for SEO and poor for usability (makes no sense to your users).

By changing your url structure to something like www.leemunroe.com/25-hot-female-web-designers you can include the post’s keywords in the url and it makes more sense to your users.

  1. Go to Settings > Permalinks
  2. Under ‘Common settings’ choose ‘Custom Structure’
  3. Enter %postname%/ in the field
  4. Or if you prefer to have the category in the url as well, enter %category%/%postname%/

pro-permalinks

3. Upload Your Theme and Activate It

  1. Download a theme or design your own
  2. Unzip and upload it to wp-content > themes
  3. Activate it via Appearance > Themes (then just click on your theme)

4. Add Your Categories and Change the Default

When you install WordPress the default category is ‘Uncategorized’ and this just looks ugly. Assume at some point you’re going to post an article and forget to select a category – what would you want that post to come under by default? I tend to use News or something general like that.

  1. Go to Posts > Categories
  2. Click on ‘Uncategorized’ to edit it – change it to ‘News‘ or similar
  3. Add your other blog categories

5. Activate Akismet

Akismet is a plugin that blocks comment spam and if your blog allows comments then trust me, you’re going to get spammed.

Fortunately Akismet comes with WordPress, you just need to activate it.

  1. Go to the Plugins page in the admin area and activate Akismet
  2. To complete Akismet activation, WordPress requires an API key. You can get this by registering on WordPress.com then viewing your profile.
  3. Now go to Plugins > Akismet Configuration, and paste in your key.

pro-akismet

6. Install Google XML Sitemaps

Google XML Sitemaps generates a compliant XML-Sitemap for your site, allowing the major search engines (Google, Yahoo, Ask, MSN) to easily index your site. Every time you edit or add a post, the sitemap will modify itself.

Click here for Google XML Sitemaps plugin.

Now go to Google Webmaster Central and log in with your Google Account. On the first page, there will be a link to “Verify” your site. Follow the instructions there.

Once that’s done, you can then click the “Add Sitemap” link from the first page and put in the URL to your sitemap, which will be http://www.yoursite.com/sitemap.xml

pro-sitemaps

7. Install WordPress Database Backup

Always good to have a backup in place. Things may go wrong with your server, or you could even make a mistake yourself.

WordPress Database Backup will backup your WordPress blog, and you can even set it so it will email you a backup on a weekly basis, so you don’t have to do anything yourself but activate it.

Click here for WordPress Database Backup plugin, or read a complete guide to automatic backups on Pro Blog Design.

pro-backup

8. Test Your Blog With Dummy Content

You’ll not know what your blog will truly look like until you have thoroughly tested it with multiple posts and all types of formatting applied.

Save yourself some time by using this sample post collection from WP Candy.

Import the sample post collection (Tools > Import > WordPress) and your blog will compile with sample posts including comments, parent/child categories and formatting, allowing you to thoroughly test it and make any theme alterations.

9. Add your RSS feed to Feedburner

First edit your RSS settings. Settings > Reading and you can edit how many posts you want to show in your RSS feed and whether they should show the full post or not.

Now you want to burn your feed with Feedburner. Feedburner will provide you with stats on your feeds and automatically ping services so your new content is updated immediately along with a whole host of other services.

Once you have signed up to Feedburner, change your feed subscription link in your theme. Place the following code between the head tags.

1
<link rel="alternate" type="application/rss+xml" title="Feed Title" href="YOUR FEEDBURNER URL" />

pro-feedburner

10. Activate your Analytics

Keep track of your users and traffic. I recommend Google Analytics. Other good analytic services available include Mint and StatCounter.

Optional

Here’s a few optional to-dos. Not as major as the above but you still might need to check them.

Change your Media image sizes

Change your image sizes depending on the size of your content area.

Settings > Media

Change your blog tagline

Your tagline may or may not be included in your theme but it’s most likely included in your RSS feed.

Settings > General

==============================

Here is another set of rules you might want to follow to update your new WordPress installation. It was written by Ajay from the WebTechLife.com blog.

Top 10 things you must do with your new WordPress blog

Posted In Blogging, Featured, Google, SEO, Wordpress – By Ajay On Saturday, February 5th, 2011 With 1 Comment

You have finally decided to start your own blog. So, you buy a domain and install wordpress. But, do you know what are the things you must do after setting up WordPress. Don’t worry if you don’t, we tell you what to do.

The user ‘admin’

Most of us are familiar with this but we’ll state it still for the information sake. When you setup wordpress for the first time you are the user ‘admin’ with ‘admin’ as the password. Change it. Create a new user with any name and password you wish and delete the user admin.

Permalink Structure

Change your permalink structure, that defines what your URL’s are going to be. URL’s containing the post names are more search-engine and reader friendly than with the one’s containing something like “?id=12?”. You can have whatever structure you like but most people set it to /%post name%/.

permalink settings

Robots.txt

Configure you robots.txt file to tell the search engine bots to not crawl on the content you specify. Configuring your robots.txt is easy.

You can include these 3 variables in your robots.txt file:

  • User-agent:
  • Disallow:
  • Crawl-Delay:

User-agent: - This is the name that the bots use to identify itself when accessing pages on your server. The value * is used to specify the bots.
Disallow: – Folder and filenames in this variable are the one’s that user-agent will not be able to access.

Crawl-Delay: – This is the time for which the bot should wait before moving on to the next page.

Allow: – This tag is read only by Googlebot. If you want to block every crawler for your whole site except Googlebot, the command will be like this

User-agent: *
Disallow: /

User-agent: Googlebot
allow: /

Add # symbol before a line if you want that line to be ignored by the BOT.

robots-txt customize

Be SEO friendly

Optimize your blog for better search engine results. You can use a plugin called ‘All in One SEO’ for this purpose. Search it through WordPress or grab it from here http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/. It is a must do as most of the traffic you receive will be from search engine results.

Customize your 404 Error page

If any of your user accidentally lands on an error page try to give them something better and informative. You can include your recent posts or tag clouds. And if they are on the error page from through a search result, try giving them list of posts in your blog that are related to there search query.

page-not-found-404

You can use a plugin called ‘Askapache Google 404’ to do this. It converts all such 404 Error pages into rich AJAX forms. You can download it from here http://www.askapache.com/seo/404-google-wordpress-plugin.html .

Reduce your Site load time

Speed is one of the most crucial factors in determining your site’s daily Indexing Rate. Obviously, the faster the bot can visit your site the more number of pages will get indexed. So you want to reduce the load time as much as you can. There are many ways to do that but the 2 most important things to do are

  1. Install this plugin called ‘WP-Super Cache’. It decreases the load time of your site and gives it a performance boost. It will also decrease the server load so your site won’t crash when its getting high amount of traffic. You can grab it from here http://wordpress.org/extend/plugins/wp-super-cache/ .
  2. Another thing to make sure is that you have a good web host. Never pay an unknown company for hosting your website just because it is cheap. Look for one’s who keep their servers updated so that you are not the one who has to suffer. Our personal recommendations are Hostgator and HostMonster. They have faster servers.

Use Google Webmaster Tools

If you want you site to be optimized for Google, Google Webmaster Tools are really a wonderful resource. These tools provide you with detailed reports about your pages’ visibility on Google. Visit this link to find out how to use it to your advantage http://www.dailyblogtips.com/the-bloggers-guide-to-google-webmaster-tools/ .

Add FeedBurner feed to your blog

It is really important that your daily visitors are able to subscribe to your blog and get updates directly to their inboxes, so make a feed for your blog. You can do that by downloading FeedBurner plugin for WordPress from here http://wordpress.org/extend/plugins/feedburner-plugin/ . And don’t forget to add the RSS icon on your blog page either in header somewhere or on the top of sidebar which is the best place for RSS.

Install Google Sitemap

For Google to start indexing your blog, you would have to submit your sitemap. The Google XML Sitemap plugin will do 90% of your job of generating and submitting your sitemaps to different search engines. The sitemap.xml file it creates is compatible with most of the search engines. Download it from this link http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/ .

google_sitemap

Setup Google Analytics

You can view and monitor your stats just by adding a script to your page. Signup for Google Analytics, they will give you a code which you will have to add to your website and verify. Now you are done setting up Google Analytics and are ready to monitor your stats.

===========

Finally, here is what I do with my WordPress blogs, apart from applying most of the above ideas:

I also change the height of the writing screen to 20, so that I can actually see something when I write or edit the text of the posts.

I create a new theme with Artisteer. If you are serious about making money with your sites, you must have Artisteer!

There are some 20-odd plugins that I almost always install with a WordPress site. Some of the will require additional setup, so you might be at work for your new site for hours in the end.

 

 

 

 

 

 

I followed the steps described in article How to Setup Eclipse with XAMPP, with the following tweaks:

For workspace, I used the folder that will go hand in hand with XAPP a bit later:

C:/xampp/htdocs/

There was no need to change the httpd.conf file in folder c:\xampp\apache\conf\

To install PHPEclipse, I used the repository

http://phpeclipse.sourceforge.net/update/stable/1.2.x/site.xml

That’s about it, Eclipse is working with PHP. The only thing that is missing is debugger, but it will come later on, I’m sure.

 

 

To get a good grasp of the problems when migrating a Joomla site, visit the official page for migrating from Joomla 1.5 to Joomla 1.6. If you can upgrade your site with jUpgrade than more power to you, but my sites appear not to be upgradable through jUpgrade, so here goes what I did.

I’m having several older sites that need to be updated to the latest versions of Joomla, in this case I am targeting versin 2.5.1. For WordPress, it is now really easy: if there is a new version, the system will tell you, and you just click and voila! the new version of WordPress is on your site. It works regardless of the version that you start from.

This is not so for Joomla, or at least, it starts to be so from the last two versions 1.75 and 2.5.0, up to 2.5.1. But if you have to start from the lower versions of Joomla, then you have a problem. The path is to upgrade in little increments up to 1.5.25, which is the latest version of 1.5 fork, then to use other software to upgrade to version 1.6, and then to piggyback on version 1.7.x up to 2.5.0 and 2.5.1, finally.

How To Find Upgrades for Old Joomla Versions

First find the page for Joomla downloads. Let us start with the version 1.5.22 and upgrade it to 2.5.1. The recommended path is to use the patch from 1.5.0 to 1.5.25, this seems to be a “one-size-fit-all” upgrade patch. If you want to, you can still find separate patches, by following the following advice from Jommla forums:

The patch packages are still available, you just have to search a bit harder (well, a little harder ;) )

Type ’1.5.23′ in the Search box on the Joomla! home page. This returns the ‘Joomla! 1.5.23 Released’ news article, which has the link to the packages on Joomlacode.org

The same applies for other releases.

An advantage of this method is that you can check each package what files are updated in case you have any core hacks.

The older versions of patches up to Joomla 1.5.23 are here. So I have downloaded the patch from 1.5.22 to 1.5.23 and uploaded the files directly to the Joomla directory, via FTP.  Then enter the Joomla backstage for administrators (/administrator) and refresh the screen, it dully shows version 1.5.23.

From Joomla 1.5.23 to Joomla 1.5.24 and then Joomla 1.5.25

Entering 1.5.24 into the search box in Joomla site, we get the location of the 1.5.24 upgrades. From there I download the patch and again FTP it to the site, extract it and check in the Joomla backend.

Repeating the process, we reach the final 1.5.25 stage of old Joomla versions. The upgrade packages for Joomla 1.5.25 are here.

Done.

From Joomla 1.5.25 to Joomla 1.7

I have found that the easiest way to jump from 1.5.25 to 1.7 is to export the data from 1.5.25 and import them into 1.7. For export we use J2XML for exporting and J2XML Importer for importing the data.

From this page we see how to use it:

I used this extension as an alternative to Jupgrade to migrate my 1.5 site to 1.7 since Jupgrade also migrates useless 1.5 extensions that you can’t get rid of except by editing your database. It worked perfectly. All I had to do was export all my articles and set it to also export users and images and then use the import tool on the 1.7 site to import the .xml file and, like magic, it structured all my categories and put the articles in where they belong. The only con is that it doesn’t export modules or menus but those are easy enough for me to rebuild, so I’m not concerned about that. This is a great way to perform a clean transition from 1.5 to 1.7.

Now erase the base files and directories for a Joomla installation, then use QuickInstall or Fantastico to install Joomla 1.7.3. Then install J2XML Importer and point it out to the file of data the you downloaded somewhat before. If all is OK, you will now have Joomla 1.7.3 with the proper data, just in the place in which the previous site was too.

All good, now from 1.7.3 up to 2.5.1. The instructions are here and I have tried the first method, using the Extension manager. It was easy, click on Purge cache, Find updates, and Update. Voila! here’s my Joomla 2.5.1!

Aftermath

Still not done, now you’d have to recreate the look and feel of the original site. Install the same or a new template, recreate the menus, upload the images needed. However, not all that dificult and I’m glad I did it!

Now, only 8 sites more to go!

 

 

 

This solution is taken from Joomla forum:

 

embed a video file in Joomla 1.7. Here’s what I have done and it appears to have worked for me.

You may want to try this:

Go to Plugin Manager/Editor – TinyMCE

Click Basic Options
On the right side of the page almost at the bottom, you’ll see

URLs: relative
New Lines
Prohibited Elements: script,applet,iframe
Extended Valid Elements

First, change URLs from relative to absolute
Next, go to Prohibited Elements and remove “iframe”

Save and Close.

Now, copy the EXACT full path URL to the file you want to embed.
Toggle the html editor.
Paste the code into the html window and you should get the results you’re after.

As beautiful as they are, the email entry forms automatically created by aWeber are alway vertical. Why aweber has no option to create a horizontal opt-in form is beyond me, but there seems to be a way.  From Warrior forum I gathered this much:

<form method=”post” action=”http://www.aweber.com/scripts/addlead.pl” target=”_new”>
<input name=”meta_web_form_id” value=”YOUR10Digit#” type=”hidden”><input name=”meta_split_id” value=”" type=”hidden”>
<input name=”unit” value=”CAMPAIGN-NAMEHERE” type=”hidden”><input name=”redirect” value=”http://www.YOURSITEHERE.com” type=”hidden”>
<input name=”meta_adtracking” value=”FORMNAME” type=”hidden”><input name=”meta_message” value=”1″ type=”hidden”>
<input name=”meta_required” value=”from,name” type=”hidden”><input name=”meta_forward_vars” value=”0″ type=”hidden”>
<table cellpadding=”0″ cellspacing=”10″>
<tbody>
<tr>
</tr>
<tr>
<td>Name:</td><td><input name=”name” value=”" size=”20″ type=”text”></td>
<td>Email:</td><td><input name=”from” value=”" size=”20″ type=”text”></td>
<td>Phone:</td><td><input name=”custom Phone” value=”" size=”20″ type=”text”></td>
<td>Website:</td><td><input name=”custom website” value=”http://” size=”20″ type=”text”></td>
<td colspan=”2″ align=”center”><input name=”submit” value=”CONTINUE >>” type=”submit”></td>
</tr>
</tbody>
</table>
</form>

There is also a corresponding video:

 

Here is a starting link, http://docs.joomla.org/How_to_create_a_blog_using_Joomla!

 

 

Here is a good article on creating perfect Facebook fan pages.

Here are several videos on how to create a custom Facebook fan page:

And then, there is this video:

Ok, my personal blog should be used for my personal adventures in programming. Recently, I have started list building in earnest, through Aweber. That is not my first try, I already have one list of 1500 people and counting, but that list was gathered by people opening accounts and registering for a Jommla site. Now I want to email all those people through Aweber, and I want all new members of the site to bu automatically on an Aweber list. Therefore, there is a definite need for a plugin that will do add new Joomla members to an aWeber list. There is one such piece of software, and I’d just like to buy, but they sell only through PayPal, and that is not available in my country. So, I’d either be without it or I’d have to write it on my own. Being a programmer since 1976, I thought that writing my own module or Joomla plugin might be a good “software adventure” and fun.

Looking around I saw that there used to be a Joomla plugin doing exactly that, but it is left in the dark, not being supported by any means. But it was useful studying it, because I saw that I needed a plugin and not a module. From Joomla 1.5 the names of mandatory Joomla events changed quite a bit, and here is the list. Since the original plugin used event onBeforeContentSave()which now is called onContentBeforeSave(), the idea is to catch the event onUserAfterSave and see whether I could write a message “Hello, world!”.

BTW, you can also have a look at Adapting a Joomla 1.5 extension to Joomla 1.6, which is a more formal introduction to the theme.

Learning to Write a Joomla 1.7 Plugin

This link, from Andrew Eddie, caught my attention. but it seems I was running before I learned to walk. So I typed “write a plugin in joomla from scratch” into Google and here’s an excellent introduction to writing a Joomla 1.5 plugin. (Once I learnt that, it would be just a matter of technicality to upgrade it to a Joomla 1.7 plugin.)

Still surfing, here is a good explanation of what user events do in Joomla 1.5.

 

Simple approach to using databases in RadPHP.

Here is the introductory lesson about using RadPHP XE2.

To learn programming in RadPHP, you can go to the Embarcadero help page.

An example how to create a comboBox in Delphi.

I have a Windows computer which is almost six years old and although it is not really slow, every bit of speed improvement is welcome. I regularly use FireFox, now in its version 9, and of lately, I also tend to use Google Chrome. I find FireFox very slow when browsing the administration panel of WordPress, so I use Chrome for that all the more.  But, it has always been possible to tweak FireFox a little and here is a post that I found useful. I have applied all FireFox speed tweaks  and it seems to me that this did speed FireFox up. I did not speed test FireFox so if there is improvement, it is not measured  scientifically.

Speed Up FireFox 9 by Changing Preferences

Here is the gist of the article I used to increase FireFox speed:

Changing Preferences

Change or add the following preferences to the new values shown. If the preference is already set to this value then skip it and move on the next. If the preference does not exist then you need to add it:

browser.display.show_image_placeholders: false

Stops the display of placeholders while images are loading to speed up the page. Default is True

browser.tabs.animate: false

Disables all tab animation features (e.g. when you click the ‘New Tab’ (+) button) to make the tab interface feel quicker. Default is True

network.prefetch-next: true

This allows Firefox to automatically prefetch (load) the contents of pages linked to by the page you are viewing e.g. this site uses prefetch to load the TechLogon homepage in the background, making it quicker for you to view next if you want to ;-) For pure internet speed, keep this setting at the Default which is True.

network.http.max-persistent-connections-per-server: 8

Increases the maximum number of persistent connections per server which can help speed up loading of multimedia rich sites. Default is 6

network.http.pipelining: true

Can send multiple requests to a server together in order to speed up loading of webpages. This is not supported by ALL servers – some servers may even behave incorrectly if they receive pipelined requests. Default is False

network.http.pipelining.maxrequests: 8

Sets a maximum number of multiple requests that can be pipelined to prevent overloading the server. Higher values will cause a delay before the first request completes but will make the last request complete sooner. Higher values will also cause more of a delay if a connection fails. The maximum value is 8. Default is 4

network.dns.disableIPv6: true

Disables IPv6 DNS lookups to prevent a significant delay with poorly configured IPv6 servers. Default is False

 

The last time I did something similar was to speed up FireFox 3, so I tried to find a video to make things easier.

Video to Boost FireFox Speed

Happy FireFoxing!