Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Okay, after being on the road for 4 days and using this daily, I'm happy to report it works well.

I can't give you the files because it's all really just renamed files from .threads with some changes and documenting the changes would take a little bit of work and I'm swamped right now (besides, I'm using a heavily modified older version of the code and not the latest build).

But, basically, what I did was take each file that would be used to read/post message, read/reply/send PMs and copied the original .php (15 scripts) and .tmpl files (15 tmpl files) with a mob prefix. Then I edited the templates and php files to remove the img references, rework the templates to not use more than one column and fixed any links to only those used by the mobile interface. I also cleaned up the php scripts to make them a little more efficent to reduce load times. Overall, I only had to make a small change to the send_header function in .threads and the rest is just modified scripts that have been renamed. Cell phones do use cookies, so I didn't have to do anything special for that.

The result is that people go to the wap page and stay within the grouping of "mob" scripts and templates. The changes to the php scripts are minimial - I removed the footer calls and modified the send_header function in ubbt.inc.php to look for a superglobal for "ismobile" when determining which header to send (regular headers or just the compact version). The tmpl files are all pointing to the mob* scripts and the php script are all pointing to the mob tmpl files.

I'm not saying it was easy, it took me about 5 hours of solid work; but hopefully this gives you an idea of what I did.

Sponsored Links
Entire Thread
Subject Posted By Posted
WAP/Cell Phone reading? PhotoPost 11/25/2004 1:16 AM
Re: WAP/Cell Phone reading? PhotoPost 11/25/2004 4:20 AM
Re: WAP/Cell Phone reading? Harold 11/26/2004 7:14 AM
Re: WAP/Cell Phone reading? monkeyra 11/26/2004 8:23 PM
Re: WAP/Cell Phone reading? PhotoPost 11/29/2004 6:47 PM
Re: WAP/Cell Phone reading? monkeyra 12/03/2004 3:15 PM
Re: WAP/Cell Phone reading? santana 12/08/2004 12:18 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)