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

   Template/skin for Palm/PDA access to Del.icio.us Add to del.icio.us
  Digg Template/skin for Palm/PDA access Digg it
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 Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
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 Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
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


Who's Online
0 Registered (), 41 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 13
blaaskaak 9
tackaberry 7
FREAK1 6
Gizmo 4
Mike L_dup1 4
Chris Bale 4

 

 

 
fusionbb message board php hacks