--------------------------------------------------------------------------------------------------
WRPAT ( WAP Recent Posts And Threads ) version 0.2
by JannoL
--------------------------------------------------------------------------------------------------
This version is for SP 1.3.1, SP 1.3.2

Description |
Installation | Uninstallation | Screenshots & Usage | My comments | About | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------
This Mod adds a simple WAP thingy that gives your visitors the possibility to view the 5 recent
posts and also to read those threads.
Note! ( These WAP pages are always readable and doesn't apply to if admin have enabled
Disallow guests from doing anything but login or register? in forum pref. )
Although, no email adresses are viewed and no posting possibility from these WAP pages so
there is no security risk but if you don't want to let guests even viewing your forums you should not
install this mod.

I might make a few settings and maybe a login with posting possibility and user controls in later
versions if there is a big interest of this mod.


Layout of the WAP.
Smilies is viewed as e.g. ;D :)
Flash and Images is not viewed, instead a small icon and the URL is viewed.
Some of the std YaBBC tags is used. ( Those that is compatible with WML code )
Some other of the std YaBBC tags is viewed as they are typed in, e.g. [ftp]ftp.something.com[/ftp]
Quote and Code are viewed as e.g. [Quote: some quote text], [Code: if (exists 'JannoL') { $yymain =~ s/.*\s*.*/Help Me/gi; }]


The WAP page is accessed by an URL as e.g.
http://www.yoursite.com/cgi-bin/yabb/YaBB.pl?action=waprecentposts

Depending of your server redirection options you could setup a redirection as e.g.
wap.yoursite.com that points to the complete URL.

Or you can create a new WML page that goes there, please read the installation
section if you need to do that.

If you use Opera or if you have a WAP-Browser as e.g. WinWAP or if you have a WAP Phone, you can check it out
at
wap.j-flames.com .
-----------------------------------------------------------------------------------------------------------------------------------------------------

Description | Installation | Uninstallation | Screenshots & Usage | My comments | About | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------
Your server must support wml mime types ( simply that means that the server can handle wap pages )
If you don't know, ask your provider. If you are the provider, be sure you have these mime types in your mime list.
application/vnd.wap.wmlc = wmlc
application/vnd.wap.wmlsc = wmlsc
image/vnd.wap.wbmp = wbmp
text/vnd.wap.wml = wml
text/vnd.wap.wmls = wmls


- Run wrpat_02.mod with BoardMod
- Copy the attached WAP.pl to your Sources Directory and chmod 644
- Copy the attached wbmp directory into your YaBBImages dir

- Upload enlish.lng, SubList.pl, WAP.pl and the wbmp directory
- Type your url as e.g. http://www.yoursite.com/cgi-bin/yabb/YaBB.pl?action=waprecentposts to view the WAP Page

Depending of your server redirection options you could setup a redirection as e.g.
wap.yoursite.com that points to the complete URL.


If you can't or wont do that you can create a new WML page that goes there like this >

Make a new directory and name it e.g. wap and then
open Notepad and type this code

<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml>
<head>
<meta forua="true" http-equiv="Cache-Control" content="no-cache"/>
</head>
<card>
<onevent type="ontimer">
<go href="http://www.yoursite.com/cgi-bin/yabb/YaBB.pl\?action=waprecentposts"/>
</onevent>
<timer value="1"/>
</card>
</wml>

Change the www.yoursite.com to your URL and then save this as index.wml in your new
directory ( Be sure that you save the new file as .wml and not as textdocument).
Now, you can type www.yoursite.com/wap in your phone to view the WAP Page.
Note! On some servers you have to include index.wml as e.g. www.yoursite.com/wap/index.wml
If so, ask your provider to include index.wml as a default page.


Please check out
Screenshots & Usage section further down in this page
Enjoy !
-----------------------------------------------------------------------------------------------------------------------------------------------------

Description | Installation | Uninstallation | Screenshots & Usage | My comments | About | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------
Uninstall with BoardMod
Delete WAP.pl.
Done !
-----------------------------------------------------------------------------------------------------------------------------------------------------

Description | Installation | Uninstallation | Screenshots & Usage | My comments | About | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------
( Note! Arrow cursors over the links in screenshots is infact hand cursors but my screenshot software can't capture them. )
I took the screenshots from WinWAP, it might look alot different in your phone.
First the recent posts view.

-----------------------------------------------------------------------------------------------------------------------------------------------------
Then the thread of that recent post that you 'clicked' on. At the screenshot to the right you will se how the Quote is viewed.

-----------------------------------------------------------------------------------------------------------------------------------------------------


Description | Installation | Uninstallation | Screenshots & Usage | My comments | About | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------
I have used very simple code and layout for the wml output so the WAP pages that are generated is compatible with
WAP 1.1 and probably even Nokia 7110.

Maybe WAP is just to dead but I did this anyway cause I wanted it and it will also work with the new phones,
also It will probably be easier for me when I make the XHTML version for mobiles later on.

Good Luck !
-----------------------------------------------------------------------------------------------------------------------------------------------------

Description | Installation | Uninstallation | Screenshots & Usage | My comments | About | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------
I read a few posts on the inet where one of them where started by Dave but overall at interest WAP seemed kinda dead but I
did this mod anyway, maybe I can interest a few more people with the possibility of including WAP for YaBB.

I begun this mod (2004-09-something). I first put a few lines into Recent.pl that viewed the recent posts. Then I put a few more into
Display.pl and suddenly I had an own file for this stuff. ;D
-----------------------------------------------------------------------------------------------------------------------------------------------------

Description | Installation | Uninstallation | Screenshots & Usage | My comments | About  | Version history
-----------------------------------------------------------------------------------------------------------------------------------------------------

version 0.2 ( 2004-09-14 ) Fixed the pageindex and a few Phone compatibility issues

version 0.1 ( 2004-09-14 ) Moved the code into the WAP.pl file in version 0.2

send email to jp@jannol.com or maybe we just meet at boardmod.