MOD: Mobile Version of Snitz - Postet den (2286 Views)
Medlem er låst
cgcarter1
Innlegg: 14
14
I live by my Mogul.. So I decided to make a mobile version of snitz..
Basically what this does is if someone with a smartphone/blackberry/portable device hits your forum it will redirect it to the appropriate page...
Snippet follows:
Dim user_agent, mobile_browser, Regex, match, mobile_agents, mobile_ua, i, size
user_agent = Request.ServerVariables("HTTP_USER_AGENT")
mobile_browser = 0
Set Regex = New RegExp
With Regex
.Pattern = "(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|windows ce|pda|mobile|mini|palm)"
.IgnoreCase = True
.Global = True
End With

Make a change in the inc_header file and it successfully redirects mobiles to the page. Currently, in my sandbox I have it coded to show the last 25 topics added (this can easily be changed to show the whole forum).

The directory structure is forumroot\mobile (so we can reuse code from the original snitz I.E. config.asp)

I have successfully tested this with a Mogul and Blackberry.
It's a very rough draft and still working out the kinks but if there is interest I'll clean up the code and package it up.<
   
 Sidestørrelse 
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
sounds good, there has been some interest in the past, and someone did actually make some lite versions of the pages, but I'm not sure if it ever got finished.
Yo may want to take a look at the .net beta as this was something that I have in mind for a future .net version

Snitz .Net Beta<
Postet den
Medlem er låst
cgcarter1
Innlegg: 14
14
Is .net where snitz has gone to? I mean is the asp version still being developed?<
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
no, .net is just a .net version of Snitz, although there is little development of the ASP version other than bug fixes and minor updates since it already does what it is supposed to do and does it pretty well<
Postet den
Medlem er låst
cgcarter1
Innlegg: 14
14
I absolutely agree.. It's definitely performs as an ASP forum.<
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
Is this your forum http://forum.digitalpermutations.com by any chance ?<
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
I would really like this as I have my blackberry I would like to keep tabs on my forum with. I can do it now just has alot of extras I don't really want to see. smile<
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
can you consume RSS on your blackberry ?<
Postet den
Forum Moderator
AnonJr
Innlegg: 5768
5768
Originally posted by HuwR
can you consume RSS on your blackberry ?
But where's the fun in that? tongue
Seriously though, if you know of a good mobile RSS Aggregator that runs on Windows Mobile 6, I'd love to know for my own use.<
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
maybe?

http://www.newsgator.com/Individuals/NewsGatorGo/Default.aspx<
Postet den
Forum Admin
HuwR
Innlegg: 20611
20611
I found quite a few, but I think most of them rely on you to synchronise with your desktop<
Du må legge inn en melding