Bristol Aerospace Sub-Aqua Club BSAC 88
Aerodivers  Logo Bristol Aerospace Sub-Aqua Club
BSAC 88

50 years of diving

Visit the BSAC
back one page
The Webmasters Blog
In latest-date-at-the-top order.
Some notes on programming this website.

Introduction
This website is entirely programmed and maintained by voluntry effort by club member(s). And always has been. This has the advantage of adding the personal touch, being possible to update, and (of some relevance) being cheap.
But it does take effort, and in the case of the acting Webmaster, I am not a pro' web programmer and am having to learn a lot of stuff to do it. So it's a bit of a slow process. So if you are interested in the development of the site, read on, starting at the end End, er start.

A quick note about Dive Reports
Any reports gratefully received, about diving or things vaguely associated that would make interesting reading, and not just for 2008, past years reports are also relevant. Just give me the text and pics if possible, and I can put it all together.
Also if anybody would like to comment on experiences with their diving equipment, this might be of interest to our fellow divers. Constructive criticism only please.
LaureB, Webmaster, August 2008.



Thursday 16/10/2008
I have been trying to get php to run on the Virgin Blueyonder web site. This is because it would be useful to be able to use php in the web coding if necessary, although at present the emphasis is on JavaScript. An advantage of php is it's server based, so it runs on the server machine, not on the client's (user's) browser. So clients do not need to have JavaScript on their browsers, although I think that most people must have this these days, still.
Anyway, I am no php expert so started playing around with some examples in a book. Loaded them onto the other site, anderlen.com and they worked fine. Loaded them on the Virgin site (anderlen.co.uk) and they wouldn't. So looked on the Virgin help and it says php will run, gives an example which runs, says they don't support it but it should run. Look in some of the Virgin coding and it's used there.
So get on to the Virgin tech support; they were very helpful and after a long 'phone call which included a lot of asking around apparently, they said nobody there knew anything about php and the only info was on the web site. I said that this does not even work so what else could I do. They replied talk to Customer Relations and I was transferred over. Another very helpful person could not help so said someone who could would ring me one evening. They did and I explained, they did not know anything about php but could transfer me to Second Line who would be able to help. Another very helpful person who after explaining again said they did not know anything about php and had not had any training either so could not help.
So that's it folks. There is nobody in Virgin Media (and I've talked to almost all of them except Richard himself, and I doubt he knows about php) who knows anything whatsoever about php, although their website says it can be used and their example works, and they use it in their coding. So don't use php in a web site that will run from Virgin Blueyonder. And this is from the Country's only supplier of hard wired cable internet.

Tuesday 7/10/2008
The website has gone fixed-width at 1000 pixels with the side columns at 150 pixels each. And background colours have also been put in to make things look a bit smarter. This could not be done by html alone and CSS (Cascading Style Sheets, apparently) had to be used. On reflection and looking at the World Wide Web Consortium site at www.w3c.org, W3C The worldwide Web Consortium , some of the html I used to start with is now not supported (deprecated), for instance the font tag, and was never intended for page formatting anyway. So when I introduced CSS formatting, the width became easily controllable in both Internet Explorer and Firefox. I now need to incorporate CSS throughout the whole site in order to make the formatting more controllable. This will be an ongoing task in my spare time (ha ha!).

Although some popular web sites use a fixed width of 1000 pixels, I am not sure this is the best setting because low resolution monitors will not display the whole width, which is annoying. Of course, if it's properly programmed, the web coding finds out what resolution the client is using and resizes accordingly. But that will have to wait until I find out how to do it !

Immediate testing showed that Firefox did not handle background colours as expected, and the "" had to be removed from hex numbers. Firefox only recognises #FFFFFF whereas IE will use this or "#FFFFFF". This lead me to look at how to control colours on a web site and various experiments with JavaScript.
Want to see a table of pretty colours? Then try this table of colours with their RGB (red green blue) decimal codes . It may take a few seconds to run so be patient. Note that the starting ones are dark because there is not enough light at 64 0 0, the starting value. 0 0 0 is black. This table produces 3072 colours, or 12 x 16 x 16. By special request I might add some coding so that it will display the hexadecimal codes instead of the decimal ones. (Done, hex and decimal now, Webmaster 19/10/08).




Friday 08/08/2008
In order to keep a website like this up-to-date with info on recent events takes quite a lot of regular efort.
In the past, a great deal of work has been put into the website by others, but not everybody can keep this up in their spare time for ever.

Although the club kept diving very actively all the time, the website only had basic updatig for the last couple of years, hence the lack of reports.
When I took it over, I found that php had been used to edit (*) the coding, and since I know nothing about this, had to reform the whole thing into a much more basic system. However I did not want to lose any of the existing articles, since this forms a basic record of club history. So I decided to rewrite the whole site using the most basic possible method - Notepad and html. Although this only allows a rather simple structure for the site, it has the advantage that it is also simple to maintain, and could be taken over by anyone with the most basic knowledge of website programming. My only previous experience of web programming is the website for my limited company, Anderlen , which I did several years ago and have done very little updating since, although I now have several things of interest that could go on it, time permitting.
I considered these things to be of major importance to our club. Another simplicity that has been built into the programming is that nowhere in the html files is there any reference to the club domain name. All file references have been done relatively using "./directory names" method. This allows the code to be completely portable; it will even run from a CD without internet connection if necessary. Of course, in this case, external links would not work.

This produced a big advantage initially because the webspace that I used to run the site from was a cheap one, I found quite soon that it ran out of bandwidth rather easily and shut down. This first happened on the evening before we were due to go on holiday. So I had to quickly upload all of the code onto my other web space at Blueyonder and change the redirection to suit this. It only took about an hour to do and the site ran exactly as before without any difference.
At this stage the site is entirely in html, except for the fun stuff which I copied from a CD of some of the previous site with only minor changes. Had to make some extractions because the sites that could be indirectly referenced must have changed and were not altogether suitable for the younger members, and some of the older ones probably !

* Actually no, php is a web programming language not a web editing program. (Ed. 11/10/08)



Contact Us

Back one page

Top

Home


Copyright © 2008 Bristol Aerospace Sub-Aqua Club