cymeradwyo.net  
 

Archive for February, 2010

Is this blog loading faster?

Friday, February 19th, 2010

Does this blog appear to be loading faster to you?

It should be, because I moved it from a hosted webspace onto a virtual server this week.

I was practising for my main blogs, which will be moving shortly.  These were originally setup on hosted webspace and have now outgrown it, making them slower.

Whilst I will probably leave the smaller blogs there for the moment along with any static pages, I obviously want my main projects to load as quickly as possible, and having had the server running now for several months for newer things, the time has come to move the older ones across.



How to add a lightbox form to WordPress

Thursday, February 11th, 2010

Here are the steps that I took to create the lightbox subscription form used on this site:

1. Download “Lightbox gone Wild” from this page.

2. Unpack the following files and save them to the “lightbox” directory on your site:

scripts\lightbox.js
scripts\prototype.js
css\lightbox.css

3. Save the HTML code for the lightbox as a file in the lightbox directory, eg. as form.html

4. To make the lightbox load automatically, make the changes listed on this page, but don’t add the last line of HTML to anything just yet.

5. Return to the Lightbox gone Wild site and search for a comment from “preaxz”.  Make the changes listed, so that the lightbox disappears when you press Escape or click in the shadowed area.

6. Create the following files within your WordPress theme directory:

— lightbox-cookies.php —

<?php
$lightboxcookie = $_COOKIE["lightbox"];
setcookie ("lightbox","1",pow(2,31)-1,"/");   // never expire
?>

— lightbox-header.php —

<!-- CSS -->
<link rel="stylesheet" href="/lightbox/css/lightbox.css" media="screen,projection"
type="text/css" />

<!-- JavaScript -->
<script type="text/javascript" src="/lightbox/scripts/prototype.js"></script>
<script type="text/javascript" src="/lightbox/scripts/lightbox.js"></script>

— lightbox-activate.php —

<?php
if ($lightboxcookie != "1")
{
echo "<input class=\"lbOn\" id=\"lbOnAuto\" type=\"hidden\"
value=\"/lightbox/form.html\">";
};
?>

7. Within the WordPress theme file header.php, add the following lines:

On the very first line (yes, before the DocType!) add:

<?php include "lightbox-cookies.php"; ?>

Before the </HEAD> tag add:

<?php include "lightbox-header.php"; ?>

After the <BODY> tag add:

<?php include "lightbox-activate.php"; ?>

8. Now upload the 4 files in the theme directory and the lightbox directory to your site!



Blog Masters Club

Thursday, February 4th, 2010

I took a brave step in my blogging career yesterday: I joined David Risley’s Blog Masters Club.

Why did I do it?  Well, after blogging for 3 years I am definitely more than covering my costs, but I would like to increase the amount that our main blogs earn.

I do not want to start new blogs and definitely don’t want to start blogging about making money.  This post should really be the exception!

So after deliberating for quite some time, I decided that I wanted to see what David had to offer.  Since I can theoretically cancel my subscription within 60 days, I guessed it was worth taking a look at just how much the members really do help each other and how good the quality of the learning materials are.

It is going to cost me $97 per month for the next 6 months, but a real incentive is being able to use the resources after that as well.  That’s about 69EUR for me each month.  I hope it is money well spent.



 

By continuing to use this website site, you agree to the use of cookies. [more information]

This website uses cookies to give you the best browsing experience possible. Cookies are small text files that are stored by the web browser on your computer. Most of the cookies that we use are so-called “Session cookies”. These are automatically deleted after your visit. The cookies do not damage your computer system or contain viruses. Please read our privacy information page for more details.

Close