Hayabusa Club for iPhone / Smart Phone
#16
Sorry mate, that is the PHP which is generating the XML RSS feed on the AHC server. I should have been clearer about that.

Basically, I was wondering if we could modify it to create a "nicer" XML feed for your app to parse...

Anyway, how does this look? Very Happy

[Image: AHC_Reader.jpg]

[Image: AHC_Reader1.jpg]
Licence Back!
Reply
#17
Amazing you got it working!
Can you share your secret?
Are you viewing from the ahc server?
Reply
#18
Haha I only WISH I got it working. Very Happy

That is just a Dashcode website made for safari-mobile written in humble javascript. I'll email you the project.
Licence Back!
Reply
#19
looks very promising, guys.....
thanks for all ur hard work on this, should be good when its all sorted !
ClapPi_thumbsupClap
Reply
#20
Hey Samar open up Safari on your iPhone and point it to:

http://users.tpg.com.au/tjfra0/AHC_Feed/index.html

Doesn't work real great in Firefox on Mac OS X - needs Safari.
Licence Back!
Reply
#21
Ok now we're getting somewhere...

[Image: AHC_App.jpg]
Licence Back!
Reply
#22
Good stuff guys. Much Clap on all the hard work for all involved. Just got home from buying a new iphone so can't wait till it's up & running. Pi_thumbsup
Reply
#23
Ok now we're getting somewhere...

is that the actual app or dashcode ?
Reply
#24
Hey mate,

That's the actual app... I haven't gotten any further with it though - I've been busy with work. I'll send you the project back soon.

Cheers,
Tim
Licence Back!
Reply
#25
Hey Samar, I have just sent you the project files back.

Regards,
Tim
Licence Back!
Reply
#26
Hey Samar and anyone who may be interested, check out a video of the latest development here:

VIDEO

Note: probably requires Quicktime...
Licence Back!
Reply
#27
Holy CrapScaryScaryScary

Is there anything that can't be done via this forum
ClapClapClap

I loooooooooooove my iphone and can't wait for this one,

Hey Bill this kid any good with power commanders???????? Interested in bikes????
Reply
#28
BLIMEY! I have absolutely no idea what you are both talking about, but I'm REALLY IMPRESSED anyway!! Aren't you both CLEVER making this thing. Brain surgery next!
Reply
#29
(23-01-2010, 08:16pm)Heidi1 Wrote: BLIMEY! I have absolutely no idea what you are both talking about, but I'm REALLY IMPRESSED anyway!! Aren't you both CLEVER making this thing. Brain surgery next!

Hope so Heidi the you will be in good hands Lol2
Reply
#30
Below is the modified PHP file that will affect the syndication url. The main change is including the strip_tags function to create a nice clean feed for the iPhone XMLParser. I've also removed the hardcoded CDATA[] strings.

Have tested this as much as possible on my own system. Will try to load into production ASAP out of core hours, after liaising with the admin team and creating necessary backups.
PHP Code:
    function sanitize_content($content)
    {
        
$content preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i""&$1"$content);
        
$content str_replace("]]>""]]]]><![CDATA[>"$content);
        
        return 
strip_tags(str_replace("]""]"$content));
    } 
Licence Back!
Reply




Users browsing this thread: 2 Guest(s)