Jump to content

Offical Hak5 Coding Challenge


VaKo
 Share

Recommended Posts

As some of you will have noticed the move from Simple Machines Forum to Invision Power Board resulted in the loss of the forums mobile interface. There are mods which can do a mobile interface but none of them are quite as good.

What it needs:

Ability to pick up on the user agent, detect mobile browsers (Blazer, PocketIE, Opera Mobile etc) and automatically redirect to the mobile interface.

Simple text only interface with the ability to post.

Look and work something like this

Anyone got any ideas?

Link to comment
Share on other sites

Why not redirect them by browser detection to the already built in lo-fi from IPB? If their user agent has mobile or other specifc identifier put them to: http://hak5.org/forums/lofiversion/index.php

edit:

Ok, think I have an easier way to do this. Put this somewhere in an .htaccess file for the forums

AddType text/vnd.wap.wml .wml 
AddType image/vnd.wap.wbmp .wbmp 
AddType application/vnd.wap.wmlc .wmlc 
AddType text/vnd.wap.wmlscript .wmls 
AddType application/vnd.wap.wmlscriptc .wmlsc

RewriteEngine on
RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml [NC,OR]
RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wmlscript [NC]
RewriteCond %{HTTP_ACCEPT} !text/html 
RewriteRule ^/forums/index.php$ http://hak5.org/forums/lofiversion/index.php/ [L,R]

And it should redirect them to the lo-fi page. Credit to http://www.jimmont.com/resrc/wap.htm

Link to comment
Share on other sites

Thats good, but it needs a post interface!

Not sure how it works or what files IPB uses to do it's pages, but maybe make a seperate php file that does the posting part, and do an "include" to that file somewhere in the "lofiversion/index.php" code somewhere.

Just a theory.

I didn't realize that the lo-fi link didn't allow posting until you mentioned it, so yeah, that can be a bit of a pisser.

There was some other code I saw on using alternate css coding to check for media="Screen" or something to that effect. It basically uses css to just switch the layout based on weather or not it finds the browser to be a pda or cell phone. You (Or someone interested in helping) would have to create seperate CSS files for PDA's and Phones though.

Opera has some info on how they do it: http://dev.opera.com/articles/view/how-to-...tent-to-mobile/

Link to comment
Share on other sites

This is my problem, I'm not a coder, and while I could learn it would take way to long. What I need is someone else who nail something together that can pull the user agent and redirect to a mobile interface with posting. Its probally not to hard, but realistically I can't put aside the time to do this myself and deliver a product that was anything other than pre-alpha quality. If you help, I'm sure Darren could be persuaded to ship you a stack of stickers or the like, and I'd certainly buy you a beer. Yeah, the reward sucks, I know, but you could probally do quite well by making it public.

Link to comment
Share on other sites

Try and add this to the top of the page

<style type="text/css" media="screen">
@import url(http://hak5.org/forums/lofiversion/lofiscreen.css) !important;
</style>

<style type="text/css" media="handheld">
@import url(http://hak5.org/forums/lofiversion/lofihandheld.css) !important;
</style>

<style type="text/css" media="print">
@import url(http://hak5.org/forums/lofiversion/lofiprint.css) !important;
</style>

and then view the forums with a cell phone to see what happens. I don't have a cell with internet capabilities, so I can't test this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...