- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- November 2003
- Status:
- offline
- last visit:
- 26.10.04
- Posts:
- 15
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. -
- rank:
-
Freshman
- registered:
- November 2003
- Status:
- offline
- last visit:
- 26.10.04
- Posts:
- 15
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!! -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- online
- Posts:
- 7720
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 -
- rank:
-
Helper
- registered:
- May 2004
- Status:
- offline
- last visit:
- 05.08.08
- Posts:
- 100
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 -
- rank:
-
Professional
- registered:
- December 2002
- Status:
- offline
- last visit:
- 24.08.08
- Posts:
- 1588
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 -
- rank:
-
Professional
- registered:
- September 2003
- Status:
- offline
- last visit:
- 21.10.07
- Posts:
- 2423
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.
--
http://www.invalidresponse.com -
- rank:
-
Professional
- registered:
- September 2003
- Status:
- offline
- last visit:
- 21.10.07
- Posts:
- 2423
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 ;)
--
http://www.invalidresponse.com -
- rank:
-
Helper
- registered:
- October 2002
- Status:
- offline
- last visit:
- 18.02.06
- Posts:
- 109
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):It works for me...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');
?>
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 ! ) -
- rank:
-
Freshman
- registered:
- June 2004
- Status:
- offline
- last visit:
- 08.12.04
- Posts:
- 7
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... -
- rank:
-
Helper
- registered:
- October 2002
- Status:
- offline
- last visit:
- 18.02.06
- Posts:
- 109
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... -
- rank:
-
Freshman
- registered:
- August 2004
- Status:
- offline
- last visit:
- 02.11.05
- Posts:
- 20
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é -
- rank:
-
Helper
- registered:
- October 2002
- Status:
- offline
- last visit:
- 18.02.06
- Posts:
- 109
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,
