Posts Tagged ‘Development’

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

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

The Aftermath of Hurricane Nick

Wednesday, December 3rd, 2008

I went to see Nick today about the way PaedoBot is developing and he changed everything…
First off he said that I should change my idea from being about PaedoBot to having PaedoBot as the development side of it but releasing it under the illusion of it being a real person. He suggested that I could try and get it running over a social network(which I will be working on today) and then creating a profile for the person PaedoBot is pretending to be. Great Idea but that would mean I’m back to square one really.
The other thing we talked about was the 1000 words that accompanies the project. I have to give this in next wednesday so I’ll be doing it over this weekend. But I was told it can just be about the development of the project and if I think given more time would it mature into what i want it to be. Shouldn’t be too hard as my proposal for it was 800 words long.

  • Share/Bookmark

Organisation….

Friday, September 19th, 2008

I need to get organised. There’s no easier way to put it…..
By organised I dont mean making sure I feed the dog at 7 (mainly because I don’t have a dog(well I do, but he lives with my grandparents)) instead I mean sorting out how I run my life, both online and offline.
For starters I’m going to start giving back to the online community, I’ve experimented with this once in the form of a youtube video on how to use your Guitar Hero controller as a sampler using garageband (can be seen here ). The reason I want to contribute rather then use is simple really, no one looks up to users but people admire the ones that give things and help progress society and technology. Now I’m not saying I’m doing it because I want legions of fans but just to have someone online say “wow this is great” as opposed to “dude, you suck” (though this tends to come from someone with the number 666 in their username).
To follow up on the contributing aspect of things, I’m going to get really into what I’m doing at uni, instead of just using a technology I want to be able to hack it, maybe even help the developer out with some promotion or any other services I can offer. One of these things I’ve been looking at that I really want to get into is Augmented Reality and more specifically ARToolKit (which I did cover in the old blog, and will be covered in the new one.) ARToolKit is an excellent piece of open-source software that allows the user to experiment with Augmented Reality by just using a webcam and some paper in the safety of their own home, and I love it (though it took me a good old week to sort out how to get some functions to work.) I plan to use Augmented Reality for my Double Project so reading up on it won’t do any damage :P
I also need to sort this site, and the other 2 sites I’m supposed to be making out. My problem is I think of the job as work, it should be fun and educational. Either way I need to sort my arse out.
I think I myt have to use Things again.

  • Share/Bookmark