php forum
php mysql forum
php mysql smarty
 
Topic Options
#280488 - 10/06/04 05:00 PM Template/skin for Palm/PDA access
tpozzy Offline
Lurker

Registered: 05/28/02
Posts: 4
Has anyone developed either a skin/template or a special set of pages that provide for easy navigation from a Palm/Smartphone/PocketPC browser? I have a Treo 600, and would really like to be able to browse for new posts on our message board (www.pdga.com/msgboard/ubbthreads.php).<br /><br />Sincerely,<br />Theo Pozzy<br />PDGA Commissioner and Pdga.com Webmaster

Top
#280489 - 10/06/04 10:03 PM Re: Template/skin for Palm/PDA access [Re: nodream]
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25383
Loc: Texas
<img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" /> <br /><br />Would be an interesting project - probably a variation on the print page: <br />http://www.ubbdev.com/forum/printthread.php/Cat/0/Board/templates/main/121018/type/thread<br /><br />And a combo with the info found here: http://www.alistapart.com/articles/pocket/
_________________________
- Allen wavey
- What Drives You?

Top
#280490 - 10/07/04 01:27 AM Re: Template/skin for Palm/PDA access [Re: SurfMinister]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
I have a CSS style on my site with no graphics for mobile users, but I've never done a template layout for small screens. The only problem is detecting the browser that is being used, and then calling a different style sheet in the showflat and showthreaded sripts based on the results (the last part is easy: I do it now for my article templates). It would be better if it can be automatic, so that first time mobile users automaticly get a site formatted for a small screen...<br /><br />Once I finish the Facelift mod I'm working on I'll look inot doing this one -it's got a lot of "geek factor" <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#280491 - 10/07/04 10:09 PM Re: Template/skin for Palm/PDA access [Re: jacksonm99]
Ythan Offline
Newbie

Registered: 10/26/02
Posts: 24
Loc: Westminster, CO, USA
I think this would be cool too.<br /><br />Detecting the browser wouldn't be that tricky... you could just embed a little code in ubbt_header.tmpl:<br /><br />if ($HTTP_USER_AGENT == "mobilebrowser"){<br />echo "<link rel=\"stylesheet\" href=\"mobilestyle.css\">";<br />} else {<br />echo "<link rel=\"stylesheet\" href=\"$stylesheet\">";<br />}<br /><br />If you wanted to use entirely different templates and not just stylesheets, it's a little tricker but not much (I did this on an old version of UBB). If I can help let me know.<br /><br />-Y
_________________________
Mushrooms

Top
#280492 - 10/07/04 10:25 PM Re: Template/skin for Palm/PDA access [Re: yoki]
AllenAyres Administrator Online   content
I type Like navaho

Registered: 03/10/00
Posts: 25383
Loc: Texas
Share <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> I'll help if possible <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#280493 - 10/07/04 11:52 PM Re: Template/skin for Palm/PDA access [Re: SurfMinister]
Ythan Offline
Newbie

Registered: 10/26/02
Posts: 24
Loc: Westminster, CO, USA
In ubbt.inc.php, find the line: <br /> <br />// -------------------- <br />// set the style sheet <br /> $stylesheet = "{$config['styledir']}/$fstyle.css"; <br /> <br />Under this you can add: <br /> <br />if ($fstyle == "pdacss"){ <br /> $tempstyle = "pdatemplate"; <br />} <br /> <br />Now if someone selects the style pdacss.css, UBB will pull all the templates from /templates/pdatemplate instead of /templates/default. With a little more code, it could auto-select the PDA style if it detects that the user is on a non-standard browser. However I'm not sure how reliable that would be on all devices. <br /> <br />In this manner it's possible to create a totally stripped down layout and still have the control which templates give you (unlike a solution involving the print thread mechanism). <br /> <br />As far as creating the actual stylesheet and templates... I have my hands a bit full with upgrades on my own site at the moment but I might take that on at some time in the future if someone doesn't get to it first <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />. <br /> <br />-Y
_________________________
Mushrooms

Top
#280494 - 10/08/04 02:48 AM Re: Template/skin for Palm/PDA access [Re: yoki]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Excellent idea!!! <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" /><br /><br />I too will look into this one when I get the time...
_________________________
Da LAN Tech

Threads Dev Moderator

Top


Top Posters Last 30 Days
AllenAyres 63
Gizmo 27
sirdude 24
Zarzal 12
blaaskaak 10
tackaberry 4
winter 3
Who's Online
1 Registered (AllenAyres), 35 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
iPhone 3G
by AllenAyres
07/23/08 09:59 PM
[7.x] [Beta] Purge Welcome Messages
by Gizmo
07/23/08 06:58 PM
Team UBBDev Rides Again!
by AllenAyres
07/23/08 03:23 PM
User Authentication Class
by Gizmo
07/21/08 07:07 PM
Auto repair table
by blaaskaak
07/19/08 06:16 PM
[7.3.x] ubb.links
by AllenAyres
07/18/08 05:09 PM
ubb.social
by willing
07/17/08 06:29 PM
New Mods
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
Newest Members
nixadmin, Stanley, NazzaN, mmem700, Tyler
13310 Registered Users

 

 

 
fusionbb message board php hacks