Postnuke WAP module  Bottom

Go to page 1 - 2 [+1]:

  • With the massive growth in usage of the mobile Internet (fuelled by the extremely low cost of WAP over GPRS), any chance that we can extend our Postnuke site to cater for a mobile audience?
    Lee Eason in pnFlashgames has made a WAP version of his site www.pnflashgames.com. It lets site members login to the WAP site using their website login credentials (it's the same member DB of course).

    What I would like to see is a module that lets me choose what I would like mobile phone users to have access to, maybe the multiplayer trivia game being developed by pnflashgames; or a simple WAP chat room...or some of my articles so that people commuting to work can have a good read while on the bus/train/tram. This would definitely put Postnuke in a completely different league to any other CMS and the results will be tremendous I think.

    Anybody out there interested in getting this started? Even if the module just lets you login, see which members are online and allow you to send a Private Message to them...it would still be something I think my audience would love.
  • Guess nobody is interested in extending Postnuke to become the mobile-online community creating software of choice.

    I still think that adding some WAP functionality to this already kick-ass software would be GREAT!!
  • Your interested - that should be enough.... The vast majority of open source code and solutions come from a need. Someone sees a requirement for thier own purposes and fill that gap. documentation on how to write modules is available.

    My personal approach to this would to not write a module but to develop a WML Xanthia theme. Then once .8x becomes available each module can then be re-skinned into WML by overriding each module template in the WML theme.

    Add to this browser detection so that a different theme can be selected dependant on the input device and you have a flexible, scaleable solution to not only delivering WML but any future technology to any future device.

    What can be done now? The basic WML theme needs writing. A browser detection module exists (I posted this link in the thread on the pnflashgames site). The code to extend theme selection based on user agent needs writing.

    I'd start with the WML theme. A useful reference for creating themes that are non HTML would be the atom and rss themes that are in CVS at the moment. To develop this properly you'd need to check out cvs and begin working with the .8x codebase.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • I think this would be great! I would love for my site to be visible on the wireless internet. this would also allow me access at times when i can't get to a computer or regular internet.

    I'm all for it :D
  • I have always been interested in making this kind of theme, but I don't have access to the technology to test it. Dow anyone know of any emulation software that could be used?

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • search for WAP emulator: http://www.google.com/search?sourceid=mozclient&ie=UTF-8&oe=UTF-8&q=WAP+emulator

    The first result, http://www.gelon.net/, works fine for me.
  • nice maxus..

    I wonder if there would be a way to use 2 templates.. some kind of UA detection that would append the theme to the URL.. hmmm.. probably more trouble that it's worth, but I'd be interested in seeing more about the topic.
  • I imagine the UA detector in CVS can do what you need and can probably already switch the theme based on the UA. Probably just needs a bit of backporting and then you are done.
  • I imagine you're right.. i haven't poked at the code, but to append a theme to the URL based on the UA wouldn't be much of a task. so now we need a valid WAP theme ;)
  • First steps:

    1) Set up a wap server (better into the same server where the PN site resides, for further wap-postnuke interlacing).

    Code

    <VirtualHost wap.yoursite.com>
    ServerName wap.yoursite.com
    DocumentRoot /home/httpd/vhtdocs/yoursite/wap
    <Directory />
    AddType text/vnd.wap.wml wml
    AddType image/vnd.wap.wbmp wbmp
    AddType text/vnd.wap.wmlscript wmls
    AddType application/vnd.wap.wmlc wmlc
    AddType application/vnd.wap.wmlscriptc wmlsc
    </Directory>
    </VirtualHost>


    2) Allow the wap server run PHP scripts into .wml pages:

    Code

    AddType application/x-httpd-php .php .phtml .wml


    3) Prepare some plain .wml pages to test the wap server:

    Code

    <?xml version="1.0"?>
    <!DOCTYPE wml public "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml">
    <wml>
    <card id="imagicweb" title="imagicWAP">
    <p>Demo select
    <br />
    <select multiple="true" name="devices" title="devices">
    <option value="celular">Celular</option>
    <option value="pda">PDA</option>
    <option value="emulador">Emulador</option>
    <option value="other">Other</option>
    </select>
    </p>
    </card>
    </wml>


    4) Connect to the wap server from your mobile phone, and test the wap page. (Opera browser for Mac OS X offers a very good wap emulator).

    5) Write a PHP script (into the .wml pages) that read -or write!- some PostNuke database content (News ?) and parses it to the wap (I'm trying this, I'll post if I success ;) )

    This will read and print to WAP the last 10 story titles published (or not):

    Code

    <?
    include ('wml_header.php');
    include ('connect_to_pn_database.php');

    echo "<card id=\"imagicweb\" title=\"Reading Data\">\n";

    // reading last 10 (newest) story titles

    $result = mysql_query("SELECT * FROM _stories ORDER BY pn_sid DESC LIMIT 10",$db);
    while ($row = mysql_fetch_array($result))
    {
        $pn_sid = $row["pn_sid"];
        $pn_title = $row["pn_title"];
        $pn_hometext = $row["pn_hometext"];
        $pn_bodytext = $row["pn_bodytext"];
        $pn_topic = $row["pn_topic"];
        $pn_informant = $row["pn_informant"];
        $pn_ihome = $row["pn_ihome"];
        $pn_format_type = $row["pn_format_type"];

        echo "<p>\n";
        echo $pn_title;
        echo "\n</p>\n\n";
    }
    echo "</card>";
    include ('wml_footer.php');
    ?>
    It works for me...

    Reading is the first and innocuous step, writing maybe difficult and risky... but how about actualizing your postnuke from the mobile phone? or reading new stories published when you're at the sea side?

    To be continued... (any contributions, welcome ! )
  • jeanloui

    First steps:

    1) Set up a wap server (better into the same server where the PN site resides, for further wap-postnuke interlacing).

    Code

    <VirtualHost wap.yoursite.com>
    ServerName wap.yoursite.com
    DocumentRoot /home/httpd/vhtdocs/yoursite/wap
    <Directory />
    AddType text/vnd.wap.wml wml
    AddType image/vnd.wap.wbmp wbmp
    AddType text/vnd.wap.wmlscript wmls
    AddType application/vnd.wap.wmlc wmlc
    AddType application/vnd.wap.wmlscriptc wmlsc
    </Directory>
    </VirtualHost>


    1) Are these command lines or should this be saved as a file?
    2 If so, what file type?
    3) And what location should this file be in?
    Thanks, egar to try this...
  • urksaddy

    Are these command lines or should this be saved as a file?

    Oh, this is an Apache VirtualServer directive writen in the httpd.conf (the main setting of the server).
    You must have a total control of the server to do this...
    Ask your hosting provider...
  • I managed to enable news articles to be browsed over a wap phone in about 10 mins. Here is how;

    1) I downloaded DotWAP 2.0 from http://www.inetis.com/freeware.asp
    2) Launched DotWap and added a home page called "Lonehill Village"
    3) Added a link "Latest News" "http://www.lonehill.za.com/modules.php?op=modload&name=AvantGo&file=index"
    4) Created WML files and called it "wap.wml"
    5) Uploaded the "wap.wml" file into my site root directory
    6) Created a bookmark on my mobile phone "http://www.lonehill.za.com/wap.wml"
    7) Connected via phone to bookmark.
    Done- I can now browse recent news articles via my wap enabled phone.

    André
  • It sounds really interesting but DotWAP seems to be only for Windows, and I'm under the Unix - Darwin Mac OS X (and my server is with the Perfekt Linux ;) )

    Hope someone could write a similar OpenSource tool...

    PostNuke will go to mobile phones more fast than Microsoft to make something work, icon_lol icon_lol
  • This isn't WAP but if you have a WEB enabled phone or PDA the RemoteBlock module allows view individual blocks from your PN site.

Go to page 1 - 2 [+1]:

This list is based on users active over the last 60 minutes.