website statistics
Talking Love » Technical Mumbo Jumbo – Welcome to the new Talking Love!
15th Sep, 2008

Technical Mumbo Jumbo – Welcome to the new Talking Love!

Hello, I am LadyCat’s friend and I’ve been helping her setup this new blog over the last few days (sorry for all the technical difficulties!). The two main things that have been changed are:

1) A new domain (instead of talkinglove.wordpress.com it is now talkingloveblog.com)

2) Advertisements banners

Please don’t ask LadyCat to translate this into Chinese or to explain the technical aspects of it, you’ll either be wasting her time or she’ll end up leading you in the wrong direction as she’s not an IT expert either! I know this will probably be confusing for most readers but I thought it was worth putting together just in case anyone was interested.

I’m not going to give you a perfect step-by-step tutorial; it gives you most of what you need. If you need any further help there are a lot of tutorials on Google.

The main reason behind this move is because WordPress doesn’t allow advertisement banners on their free web servers; however they have no problem with you using advertisement banners if you host the blog yourself. Think of a web server as just another computer but one that is designed specifically to host a website.

(please click the “Read More” button below to view the rest of this blog post)

So you will need three things:

1) The first thing is a domain, which you can buy for about $10US. I like GoDaddy.com, but there are many places online where you can buy a domain. I usually buy private registration on top of that, which is about another $10. Private registration hides your personal contact information from the general public. Once you’ve purchased a domain you have to point it towards the name server of your host. To do this you simply go into the domain management area and there should be a section about name servers. Go here and change it from the default to whatever your host’s name server is (see step 2), which usually looks like this: NS1.HOSTNAME.COM

2) Sign up for some shared web hosting. It usually costs about $5US a month. Once you’re here you need to enter the name of the domain (see step 1) into the settings and create a new database.

3) Sign up for an advertising program. Google AdSense is good (http://adsense.google.com), but it’s not the only option. I prefer Google AdSense because they are popular and it’s not too difficult to use.

Once you have all this ready you’ll need to upload your WordPress blog, which you can download at WordPress.org (NOT WordPress.com). Within this download zip file are some excellent and simple to follow instructions on how to get it all setup.

Before I continue I should clarify that websites are generally made up of two parts:

1) The website itself

2) The database

So once you’ve uploaded and installed the website (using FTP) you can import your old WordPress database so that you don’t lose all your old posts and comments.

That’s a rough overview on how it’s all done. Now here are some finer details on where the Google AdSense code is installed in your new blog. You can do this either through a WYSIWYG editor like Adobe Dreamweaver (to be applied to all your template specific code, found in > wp-content > your_template), or the built-in editor inside your WordPress blog.

index.php

Ad size: 468 x 60

Look for:

<?php if (have_posts()) : ?>

Directly above it, insert:

<?php

$postnum = 1;

$showadsense2 = 2;

?>

Look for:

<li><?php the_category(‘</li><li>’) ?></li>

</ul>

</div>

Directly below it, insert:

<?php if ($postnum == $showadsense2) {

echo ‘

<div align=”center”>

***YOUR GOOGLE ADSENSE CODE GOES HERE***

</div>

<br>

‘;

} ?>

<?php $postnum++; ?>

sidebar.php

Ad size: 180 x 150

  • <!–[if !supportLists]–>· <!–[endif]–>Simply cut and paste the ad above at the very top.

Ad size: 160 x 600

  • <!–[if !supportLists]–>· <!–[endif]–>Simply cut and paste the ad above at the very bottom.

footer.php

Ad size: 728 x 90

At the very bottom insert:

<div align=”center”>

***YOUR GOOGLE ADSENSE CODE GOES HERE***

</div>

single.php

Ad size: 468 x 60

Look for:

<li><?php the_category(‘</li><li>’) ?></li>

</ul>

</div>

Directly under it, insert:

<?php if ($postnum == $showadsense2) {

echo ‘

<div align=”center”>

***YOUR GOOGLE ADSENSE CODE GOES HERE***

</div>

<br>

‘;

} ?>

<?php $postnum++; ?>

style.css

Look for:

#content {

Directly after it insert:

min-height: 2500px;

For more detailed instructions see the following link: http://www.tamba2.org.uk/wordpress/adsense/

Also if you want some excellent stat tracking software try www.statcounter.com. It’s free to use and very powerful.

In the future I might write a more step-by-step tutorial with instructions for less technically minded people, if there is enough demand.

I hope you all enjoy the new Talking Love!


Responses

Hi, cat’s “friend”, thanks for the useful info. btw, can you tell me how you benefit from this move? Or you guys just want better control of the blog?

Yes it was about being able to control the blog, particularly from an advertising perspective.

She spent a long time deciding whether to make the move, as there are disadvantages too. Here’s a rough breakdown of the pros and cons:

Pros:
-More control, able to edit the source code
-Continuing from the one above, you can use other tracking tools, such as statcounter.com, which is much more powerful than the built-in WP ones
-Able to advertise. This is probably the reason why 99% of people make the move.

Cons:
-Having to manually update the WordPress code. Any hosted WP sites are all updated automatically and you don’t need to do anything. Here, you need to get in there and update everything by yourself everytime a new version of WordPress is released.
-Having to manually install plugins and themes and continually update them as above
-The cost of private hosting
-Losing the community integration of a WP hosted blog

I didn’t put having your own customized domain (www.YourSite.com) as a pro, because that’s something you can have on a free WP blog too.

wow, very detail answer. Thank you. Anyway, not many are eager to click those google advertisement. Good luck to you both.


Leave a response

Your response:


Categories