Editing the CSS of this blog for print

April 12th, 2008

For the final report I'm going to edit the CSS file of this blog so it will be printer friendly as the blog will be a seperate document as I have 88 posts and counting.

Michael Doyle Announcements

MoGo project finished :)

April 12th, 2008

I finished the project last night, there were a few small things I didn't get to finish before midnight...

The MoGo View isn't implemented, instead a user can see which applications they have added to their account by clicking on any application and it will tell them if they have it added or not.

The position of each element isn't implemented.

The mobile style sheet is working, but the output on a mobile phone differs greatly when viewed by the nokia browser compared to the opera browser, I'll demo the application on a mobile browser using Opera.

I didn't get to make the my.mogo-online.com URL only viewable by mobile browsers. I was planning on redirecting the site to mogo-online.com if viewed by a PC browser.

The one main issue I had last night was that the myspace script  was difficult to implement with the user page. There was a problem getting the comment number value from the database, after changing this manually on the database after much panicking, it worked fine. I created two more user accounts through mogo-online.com and saw that it worked fine.

Everything else I'm quite happy with, all in all, I've surprised myself as last wednesday I thought I wouldn't have the database inplemented or the user page fully implemented.

Michael Doyle Announcements

Website terms and conditions, privacy policy

April 10th, 2008

I've included  a footer at the bottom of the page showing a copyright notice and a privacy policy page, I got a template from

Free website legal documents

Michael Doyle General Update

Clickatell working!

April 9th, 2008

I posted on the support forums at clickatell and recieved no replies, so I began playing around with the formatting of the $num variable. I finally got it working late last night :) Here's the code:

 
$num = 'to:'.$mobile_num;
 
$subject = '';
$message = 'user:mickdoyle
password:xxxxxxx
api_id:3085215'
 
."\n". $num. "\n".
 
'text:Thanks for registering with MoGo, your mobile account is at: http://my.mogo-online.com';
 
$mailheaders = $message;
 
mail("sms@messaging.clickatell.com", $subject, $mailheaders);
 

Michael Doyle General Update

Clickatell API

April 8th, 2008

I've found an API that allows a user to send an email to their server and this is then sent as a text message to a phone number. I'm having major problems with this as I want to send each member that registers with MoGo a text message thanking them for registering with a link to my.mogo-online.com.

The major problem I'm having is with the formatting of the email, the "to:" field is not accepting the php variables. The email has to be in sent to sms@messaging.clickatell.com in this format:

user:xxxxx
 
password:xxxxx
 
api_id:xxxxx
 
to:xxxxxxx
 
text:'this is the contents of the text message';
 

This is then formatted at clickatell's servers and sent to the mobile number.

The problems I'm having is that I have to use the registers user's phone number, since this is a php variable, the phone number is just displaying as a variable. Here is the code I'm testing it out with.

$num = '0863775496';
 
$subject = '';
$message = 'user:xxxxx
password:xxxxx
api_id:xxxxx
to:"$num"
text:Testing Testing, 123!!';
 
$mailheaders = $message;
 
mail("doyle.michael@gmail.com", $subject, $mailheaders);

What is sent to email address is:

user:xxxxx
password:xxxxx
api_id:xxxxx
to:"$num"
text:Testing Testing, 123!!'

I have to try and get the $num variable to display as a phone number.

Michael Doyle General Update

Accessing mobile only web pages using a PC browser

April 6th, 2008

I was trying to obtain the google mobile form action, but the problem was that each time I accessed mobile.google.com it recognised that I was using a PC web browser. To get around this, I used cURL to set the user agent variable as a nokia phone using the Opera browser and I then was able access the mobile page. The curl script is located here.

I set the user agent value to:

Mozilla/4.1 (compatible; MSIE 5.0; Symbian OS; Nokia 3650;424) Opera 6.10 [en]

Michael Doyle Phone Dev, Research

Mobile mockup

April 1st, 2008

I've created a mockup of everything I have working so far, it's located at:

http://www.mogo-online.com/mockup/index.php

Michael Doyle Phone Dev, Prototype

Firebug

April 1st, 2008

I've been using firebug to monitor and inspect ebay and some tutorials on parsing webpages, so far, I've only been successful with parsing the comments from a users webpage, a lot of the tutorials I have tried bring back just standard empty arrays or they do not work at all.

I've been using curl to try and parse some webpages and also the regex function in php, I have had a little bit of success with curl, while regex seems to be not working at all. The examples I posted last weekend seem to be far too complex for me to manipulate with time constraints at the moment.

Michael Doyle PHP, cURL

MoGo site reinstated

April 1st, 2008

I received this email today:

Hi Michael,
I would recommend to avoid this sort of issue you put in place a form of authentication for folders where you are running your test scripts. You can setup basic authentication via the control panel (There is a guide on how to do this at http://hosting.digiweb.ie/docs/hsphere/userguide/tools.php#webshell )
I have resumed your account. If you need any help with the .htaccess protection let me know.

Michael Doyle General Update

MoGo website suspended

March 31st, 2008

Today while I was going through the MySpace code with Karl, a notice came up saying that mogo-online.com has been suspended:

Account Suspended

I accessed the digiweb to see if I could log in and saw this:

notice

I've emailed digiweb saying that it's college project and could they reinstate the site. I think the reason this happened today is because I ran the script on my phone and the user agent in curl may not have been sent. Otherwise, this might have been the final notice as this would explain the previous phishing notice.

Michael Doyle Announcements