View previous topic :: View next topic |
Author |
Message |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
|
Back to top |
|
 |
kenahora
Joined: 22 Oct 2002 Posts: 2
|
Posted: Tue Oct 29, 2002 11:30 pm Post subject: |
|
|
I'm hardly an expert and can't claim to have done this specifically for PDAs, but it seems to me a relatively easy CSS kinda thing. I use a PHP style switcher similar to that described here -> http://www.alistapart.com/stories/phpswitch/ (and ably commented upon by michel himself.) For debugging purposes I have a blank style sheet called none.css to see what things look like for users of older browsers. That should achieve roughly the same effect as the MT hack you linked to. In fact, if you've properly separated your content and layout and the first commenter in that link is correct that most PDAs ignore CSS altogether (I have no idea, don't follow that stuff) then you shouldn't have to do anything at all. You can of course take advantage of the various media types defined in CSS2 if you desire something fancier.
K |
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Mon Nov 11, 2002 3:19 pm Post subject: |
|
|
Thanks for the reply, K! I'm finally getting the time to do this!
Sara |
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Sun Nov 17, 2002 7:23 pm Post subject: Hmmmmmmmm |
|
|
Well, I'm stumped. I use skins and I have separated the blog, index and nav. I have made a new .css, but I don't know how to tie them all together? I made a new page called pda.php and put it in my blog directory, but, I don't know what to put in for the code? I tried the b2 loop, starting with content...I'm missing something I know I am.
Help??!! Please??
Sara  |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Tue Nov 19, 2002 1:01 am Post subject: |
|
|
In my opinion - and I actaully use a wireless PDA for browsing - this example URL is NOT a good pda version of a blog. The page size is 45k, plus another 700k or so of images. A successful PDA page shouldn't be larger than 10k and ideally should be 2-5k.
I think a proper PDA version of a blog would show the current entry, plus the titles of the last 10-20 entries as links to those entries. Having a previous/next link would work well too. I guess comments should be inline on the page as well.
I've been considering creating a PDA version of my blog, maybe this will get me off my tail to work on it. If I do so, I'll post it... Probably just using the stripped version of the blog that comes in the archive is a good start if you want to make something handheld/PDA friendly without a lot of work. _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Wed Nov 20, 2002 9:18 am Post subject: |
|
|
I've made the first version of my crack at this available on my site.
Tested it on 4 different PalmOS browsers - I'll have some friends with other PDAs test it out when I can - worked fine for me.
I think I should add the following features:
- An override link to let mobile users choose to view the main blog instead of the mobile version if they choose to (if you are using the auto-redirect function)
- Add Next/Previous Post links
- Make full list of blog posts available, 10-20 at a time in chronological order _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Thu Nov 21, 2002 1:57 pm Post subject: |
|
|
Wow, thanks Alex! I will be looking at this closer this afternoon.
You are awesome!
Sara |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Thu Nov 21, 2002 6:23 pm Post subject: |
|
|
Whoops - I left something in the zip file I shouldn't have...
remove the lines at the top of the page body that look something like this:
Code: | <p>
<?
echo $HTTP_SERVER_VARS["HTTP_USER_AGENT"];
?> |
That was just for my testing so I could get the user agent strings from a bunch of mobile browsers (for the auto-redirect).
I posted a version that has only this change if you prefer to just download a new version.
I had my friends test this on Pocket PC and the Danger Hiptop (aka T-Mobile Sidekick) and the redirect and page formatting worked properly for them. _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Thu Nov 21, 2002 7:31 pm Post subject: |
|
|
Thanks Alex! Awesome job!!
Sara |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Fri Nov 22, 2002 9:19 am Post subject: |
|
|
Some new features included in a beta 5 zip file now available on my site - mainly links to archived posts and other assorted niceties. _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
Gadget Girl
Joined: 25 Jan 2002 Posts: 305 Location: Virginia
|
Posted: Fri Nov 22, 2002 11:23 am Post subject: |
|
|
Thanks Alex!
I did have one question though...when they are viewing the last 10, there is that \ before an ' such as Zalary's new site. It reads Zalary\'s new site. How do I get rid of the \ ??
Sara |
|
Back to top |
|
 |
alex_t_king
Joined: 09 Oct 2002 Posts: 194
|
Posted: Fri Nov 22, 2002 6:05 pm Post subject: |
|
|
That would be a bug
I forgot to put stripslashes($varname) on the post title. Thanks for catching that.
--Alex _________________ Yahoo! Messenger ID: alex_t_king |
|
Back to top |
|
 |
|