Posts Tagged ‘website’

Creating an iPhone Friendly Website with iWebkit

Sunday, December 20th, 2009

As an ongoing effort to make my website as accessible as possible, I’ve decided to make an iPhone friendly version of my website.

While searching through google I discovered iWebkit. iWebkit is a site template that makes creating iPhone websites a breeze. By dropping the files on your server you can create a website by following the included guide.

This will be the first in a series of posts showing you how to create a killer iPhone site using iWebkit.

Part 1: Installation
iWebkit can be downloaded from the www.iwebkit.net. I suggest that before you do anything you set up a subdomain for your iPhone site (i.e. iphone.gimpneek.com) this can be done in your control panel for your website and makes it easier for users to remember the url.

Once you have the subdomain set up, open the iWebkit folder and copy the contents of the framework folder into the subdomains root folder. When you view the site you will see an empty iPhone style page. If you don’t see this make sure you have copied all the files into the folder on the server.

You can edit this page by adding the various HTML code to the file. First off we’ll be building an ‘Under Construction’ page. This will let anyone viewing the site that we are still working on it and give them a way to view your normal website.

Editing the template

The body of the page is made up of 3 divs: topbar, content and footer.
Topbar contains everything that will be in the header bar, so things like the page title, any navigation elements etc.
Content is where you’ll be adding your content (duh…). This can contain lists, pictures and paragraphs of text.
Footer contains the made with iWebkit text, though you could add copyright information.

Inside the topbar div add the following code:



div id="title">iPhone /div
div id="leftbutton"> a href="http://www.example.com"> Normal Site /a /div

This will add the page’s title and a button on the left that leads to the non-iPhone version of your site. This can be replaced later with a home button.

In the content div add the following code:



ul class="pageitem"
li class="textbox"> This site is currently under construction, please come back later /li
/ul

This will add a text box to the page. You can split up page content by using different ul and li tags.

You don’t need to change the footer just yet. So at the moment your page is just a static website that says the page is under constuction. In the next post I’ll show you how to add a popup that alerts the user that the website is still under construction and navigates them to your normal website.


  • Share/Bookmark

Lock and Load

Friday, February 20th, 2009

Today it was the second lesson of MMA and I showed Mark what I’ve managed to get going on growyourownhuman He was happy with my progress. He suggested that I spend the week designing how I want my humans to look (so I’ll be doing that, expect posts). I think I’m going to have to use an MySQL database as the hitcounter because the txt file I’m using as my tests won’t allow me to use the value for height /width/x-pos/y-pos etc. But more about that later…..

  • Share/Bookmark

Papervision3D: Bitmap material

Saturday, February 7th, 2009

One of the main problems I’m going to be facing with the website I want to make is textures. The shape of the building can only do so much to make an impression, you also need some colour. Today I managed to work out how to include bitmaps into my scenes, I’m hoping as time goes by I should be able to have bump maps and transparency maps so I can have windows and more detailed models. This is a start at least.


  • Share/Bookmark

Papervision3D: rotating a model by dragging the mouse

Friday, February 6th, 2009

So after the basic example of moving a model around with the mouse I managed to track down the source for a file that allows the user to drag the model around, I hacked it so it did what I wanted it to do in my file and got some good results. I just need to work on getting textures on the model.


  • Share/Bookmark

Papervision first try

Thursday, February 5th, 2009

For my Multimedia Application module for uni, I’m hoping to make a website for local architect’s ZedFactory which showcases their past and present works. I’m still awaiting reply to an email I’ve sent them asking to act as a client for the site, so I can get some realistic feedback on the project. I am planning to use Papervision3D for the project as it’s great for simple 3D models in flash, and buildings aren’t that complex so the models will be simple. The one problem I am facing is the ActionScript 3 language, it’s so different from ActionScript 2 which I’m fairly good at. After much going through tutorials and such I managed to get mouse input working. I found an excellent source file on importing Collada models from Cinema 4D so I made my own mockup model, changed some code added basic mouse input (you have to click on either side of the screen to rotate the model) and came up with this, obviously as I work through Papervision3D I will learn how to add bitmaps to things and then I can have some serious fun with textures but for now this will do.


  • Share/Bookmark

What a relief…

Friday, December 19th, 2008

My dad said today that I don’t have to get the Woodies site done until next yeah so that’s a huge weight off my shoulders. I think I’ll just focus for the moment on getting my CGA done and making the bare bones of the Woodies site (just making the content pages, no fancy stuff :P ) I had some fun today learning that the site I’ve put together is too big. As I’m on a Mac Pro with a HDTV as my monitor, my screen res is 1680×1050 and thats what I made it for. When I went to test it on 1024×768 there was mayhem because I was using fixed positioning. I sorted it out in the end though. You can see the front page at http://www.woodiesfreehouse.co.uk/new.

  • Share/Bookmark

New Website I’m designing

Sunday, December 14th, 2008

I do a tad bit of cash in hand website coding for my dad from time to time and because of a recent phonebill from Orange I needed £240 I’m helping my dad build the new Woodies site. Woodies is a 3 time CAMRA Award winning pub in New Malden so I’m very excited to be the one responsible for making their new site. My dads old one isn’t much to look at (if you clicked on the link you’d know why :P ) as it was made in iWeb many times and doesn’t work too well.

So I sat down with my dad yesterday to go over what he needed doing and suggested some ideas to improve the site. Some things unfortunately have to stay like the pictures of the menus though I’m sure I’ll be able to get round that. He wanted a blog but I can’t see that being much use on what will mainly be a static site, maybe a forum or a guest book but not a blog. One thing I want to implement is an RSS feed for the guest ales being put on and a system which will allow my dad to update the guest ales with ease. BEST BREAK OUT THE PHP THEN!
I definitely can’t wait to add this site to my portfolio as I’m sure the site once given SEO will be a good earner.

  • Share/Bookmark