Easy websites for the newly elected MP's

Print PDF

Now that I know who all the new MP's are, I thought they all could do with a new website. Here is one of the easiest website content management systems that I have seen - and I have seen a few! There is no need to install any software and it doesn't take weeks to learn how to use it. Please, MP's everywhere, take a look - I think its the ideal website CMS for busy people.

 


Price Plans


There's a small one-off setup fee of £27 (UK), or $37 for US customers, and €27 for European customers - Hey, the CMS is really easy, so I have simplified the exchange rate too! But if you are not entirely delighted by this easy to use system, I won't send you the bill. I don't even ask for any payment details - so you can give it a try without risking a single penny / cent, or reaching for your credit card.

No Contracts. Just pay for the plan you need each month, (or stay on the free Solo plan, for as long as you like).

Upgrade or Downgrade your plan any time. Cancel any time. Please give it a try - Set up your website now. Remember, there's no need to provide payment details to get started.





Get Started - Sign up and create your new website now


Remember. No payment details needed. No Contracts. Cancel anytime. Stay on the free monthly plan for as long as you like.


Automatic Update to your Website Copyright Date

Print PDF

Have you remembered to check that your website copyright statement has been updated to 2010?

Your Copyright statement is usually at the bottom of each page and may look something like this:

Copyright © 2010 Business Tools Limited. All rights reserved.
Company Registered in England. Company No. 06730248


If you are using a Content Management System (CMS) like Joomla, this is usually published in the Footer, or Legals position. For example, the screen-shot below shows the Joomla Administration screen while I am editing a Custom HTML Module in the footer position.

Copyright published in Joomla footer position

If you are wondering how to get the copyright symbol, it is character number #169 in the Standard ISO Character Set used by most browsers (ISO-8859-1).

In HTML, we can use © or © to get the desired effect.

For example:

<div id="thiscopyright" style="text-align: center;">
Copyright &copy; 2010 Your Business Name Here. All rights reserved.<br />
Company Registered in England. Company No. nnnnnnnn
</div>

Some websites automatically calculate the date and display the new year from January 1st onward. If you want the same effect, you will need some script like this (assuming your webserver is a php flavour):

<div id="thiscopyright" style="text-align: center;">
Copyright &copy; <?php echo(date('Y')); ?> Your Business Name Here. All rights reserved.<br />
Company Registered in England. Company No. nnnnnnnn
</div>

You could copyright from the date of your incorporation to the present day using something like this:

<div id="thiscopyright" style="text-align: center;">
Copyright &copy; 2008-<?php echo(date('Y')); ?> Your Business Name Here. All rights reserved.<br />
Company Registered in England. Company No. nnnnnnnn
</div>


Just change the 2008 to your start-up year.

Unfortunately, if you are using Joomla CMS, you can't just cut and paste the above code into your editor. When you try to save it, the script parts are removed. You can get special editor plug-ins which allow you to enter script into your content, but that is a lot of hastle for just this one small change. Alternatively, you can make a small code change inside your chosen Joomla web template to achieve the same result.
And its worth making this effort. Not only does it convey to your customers that you are on the ball with your website, but it also demonstrates to the Google Search Engine that your site is regularly maintained, implying fresh up to date content. 

So, hopefully you can now update your site Copyright this year, and relax on the 1st January next year, and the next, knowing that your dates will automatically change.

Or if you are happy to part with £10 to save you some time, Business2dot0 can do it for you.  

Choose web pages or template


If you wanted to put a registered trademark in your footer, like YourBusiness®, you need character number #174. In HTML use &#174; or &reg;.

How to Create Clean ZIP Archives on a Mac (OS X) with no .DS_Store Files

Print PDF

Pesky Hidden Files

As part of my web plumbing, I often need to transfer files from my local development machine (my Mac) to a web server out there. For a few small files, my favourite ftp program is great. However for larger applications, which may contain hundreds of directories and ten's of thousands of files, this just takes too long.

So I create an archive file and send this instead. Much quicker. On the Mac (OS X), the archive can be easily created directly from within the Finder application, using File > Create Archive of ...

However, when I unzipped | expanded | extracted this archive on an another machine, (including Windows - forgive me), I found a whole load of .DS_Store files and __MACOSX folders had been created.

These "hidden" files are of no use to my webserver or Windows. I am not sure if they do any harm, but they are not required. I don't want them. I want a clean build. So I could go round and clear them all off afterwards, but I would rather not have them there in the first place.

So what possible solutions are there?

Well I could go back to my FTP program, and set the options not to display the .hidden files, and then send my directory across. But there are some hidden files that I do want to send, for example, .htaccess files. Very important!

Some FTP programs allow you to specify which kind of files to ignore, so I could avoid sending the .DS_Store files. However, large applications would still take too long to transfer, and the FTP would usually time out. So, for my large applications like a Joomla Content Management System, or a SugarCRM system, this is unreliable and too high a price just to get rid of those pesky files.

Instead, I need to make a clean zip file. Here's How.

Well I could buy StuffIt which would do the job. Or according to some forums, I could get 60+ lines of unfathomable Apple Automator Script to achieve the same. Or I could bounce around the Internet for a few hours looking for free archive programs.

But there is a simple one line command I could use. Its been there all the while on my Mac, for free.

I simply open the Terminal utility, go to my working directory where the stuff I want to archive lives, and enter this command:

zip -r create_this_zipfile  my_directory_to_zip

The -r option means, recurse and delve deep into all my sub-directories too. Which is exactly what is needed for complex structures like Joomla and SugarCRM.

Example

I have a local working directory on my Mac where I keep all my development code. Each project will have its own directory which contains many sub-directories and script files. 

my_code_directory
joomla_application
joomla_component
joomla_module
joomla_plugin
plg_yoo_effects_1.5.1
really_big_crm_application


I now want to zip up one of my projects into a package to transfer quickly and easily to my web server. Lets take the plg_yoo_effects_1.5.1:

  1. Open Terminal (Finder > Applications > Utilities > Terminal)
  2. Change Directory to my_code_directory
  3. Create zip archive of plg_yoo_effects_1.5.1
  4. Check that a zip file has been created


This is what it looks like in Terminal.

cd my_code_directory
zip -r my_production_joomla_plugin joomla_plugin

  adding: plg_yoo_effects_1.5.1/ (stored 0%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/ (stored 0%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/changelog.php (deflated 33%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/index.html (deflated 18%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/ (stored 0%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/images/ (stored 0%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/images/index.html (deflated 18%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/images/loading.gif (deflated 18%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/images/overlay-85.png (deflated 4%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/index.html (deflated 18%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/shadowbox-mootools.js (deflated 69%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/shadowbox.css (deflated 68%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/shadowbox.js (deflated 77%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/lightbox/shadowbox_packed.js (deflated 71%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/reflection/ (stored 0%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/reflection/index.html (deflated 18%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/reflection/reflection.js (deflated 62%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/reflection/reflection_packed.js (deflated 53%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/spotlight/ (stored 0%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/spotlight/index.html (deflated 18%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/spotlight/spotlight.js (deflated 52%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/spotlight/spotlight_packed.js (deflated 46%)
  adding: plg_yoo_effects_1.5.1/yoo_effects/yoo_effects.js.php (deflated 47%)
  adding: plg_yoo_effects_1.5.1/yoo_effects.php (deflated 61%)
  adding: plg_yoo_effects_1.5.1/yoo_effects.xml (deflated 73%)


ls | more
joomla_application
joomla_component
joomla_module
joomla_plugin
my_production_joomla_plugin.zip
plg_yoo_effects_1.5.1
really_big_crm_application


The cd command changes my directory.

The zip command creates the archive, and the -r option makes sure I get all the files within my project. You can see all the individual files that have been compressed (deflated).

The ls | more command lists my current directory (a page at a time if there is a lot of stuff), and there I can now see a file called:

my_production_joomla_plugin.zip

I can now transfer this to my production machine or web server. On this machine, I can then expand, or extract from the zip file. This will create a directory of my Joomla plugin, in this case,
plg_yoo_effects_1.5.1

This contains all the code for that plugin. Nothing more, nothing less! The .DS_Store files have been left where they belong.

I noticed, that if I tried to create a zip file for a project with a version number stuck on the end, for example, my_production_module_1.5.3, the zip archive file would be created without the .zip file extension on the end. So it would not be obvious that this was in fact a zip file, and we (my computer) would not know what application to use if I clicked on it. So I could just omit the 1.5.3 from my zip file name. That works. If I really wanted to have the version number in the zip file name, then I would have to explicitly specify something like:

zip -r my_production_module_1.5.3.zip  my_joomla_module_1.5.3

Having the version number in the name isn't crucial, as I can check the changelog or some other manifest file inside the package, and I should only have one version sat in my production directory anyway (avoids confusion).


Finally, I have kept to nice unix / internet type file names - that is, I have used underscores, not spaces. Of course the Mac Finder offers nice long file names with spaces. So my top level directories might be something like Users > Grant > Documents > Business Tools > Digital Assets.

If I try to change directory in Terminal with the cd command, of course it will not recognise Business Tools or Digital Assets. To overcome this, I should use:

cd Business\ Tools 

Here the backslash space is used to resolve the proper directory name.