2010
Mar
Thu
11

Wordpress Mobile

Filed under: Web Technology, Wordpress

I have been reading peoples’ blogs at the train station and on the way to work through my iPhone. 90% of sites don’t have a mobile (cell phone) theme (including my own) and makes it extremely difficult to read. Imagine viewing the entire layout on the smallest screen ever! After I noticed that I went and downloaded a Wordpress plugin that will make my site more mobile (cell phone) user friendly by using a simple & easy to read theme when viewed from a mobile (cell phone).

I urge you all Wordpress users to install a mobile plugin. Just go to your “Plugins” -> “Add New” and search for “mobile”. There’s a few different mobile themes that you can install very easily. This will really help your readers to view your blog on their mobile phones easier. Even if you don’t have an iPhone etc you should still get it.

I have tried out the following and they all work pretty well:

This is what my sites looks like using the WPtouch iPhone Theme plugin on an iPhone/iTouch. Pretty easy to read huh?

2009
Aug
Sat
1

FireFox 4 going down the Google Chrome look

Filed under: Web Technology

FireFox 3.7’s new look

FireFox 3.7

Source: http://mashable.com/2009/07/20/firefox-37-screenshot/

Look’s a bit like IE in my opinion with the round tabs. I think the design is nice but I’m not so sure I like the transparentless of it though.

3.7 isn’t even released yet and Mozilla is already looking to the FireFox 4.0. Here’s a little glimpse of what they intend FireFix 4.0 to look like.

Source: http://mashable.com/2009/07/27/firefox-40/

Doesn’t that look just like Google Chrome with round bubble like buttons. It will be some time before we will be able to use 4.0 so by then it may not look like that anymore as I’m not the only one on the internet that thinks it looks too much like Google Chrome. They may change that so users won’t accuse them of copying Google. I have to admit, the tabbing in Google Chrome is pretty nice, shame that it lacks plugins and many layouts don’t really work that well on it.

2009
Jul
Mon
27

PHP: Getting the full URL of the current page

Filed under: Web Technology

A URL like http://www.somedomain.com/index.php?act=view contain three parts:

Part 1 – Domain name – www.somedomain.com
Part 2 – Path of current file – index.php
Part 3 – Query string – act=view

In PHP, it isn’t possible to get all three parts by using one method. We need to get each of the parts seperately then put it all together.

The code example below shows you how to retrieve each of these parts and then putting it all together for the full URL of the current page.

// find then domain:
$domain = $_SERVER['HTTP_HOST'];
// find the path to the current file:
$path = $_SERVER['SCRIPT_NAME'];
// find the Query String:
$queryString = $_SERVER['QUERY_STRING'];
// putting it all together:
$url = "http://" . $domain . $path."?" . $queryString;;

It is extremely simple isn’t it?