boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PDA blog

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Tue Oct 29, 2002 9:58 pm    Post subject: PDA blog Reply with quote

This link: http://www.scriptygoddess.com/archives/001492.php shows how to make a PDA page so people can read your blog on the go. Anyone ever done this with b2 and can it be done?

Smile Sara
Back to top
View user's profile Send private message
kenahora



Joined: 22 Oct 2002
Posts: 2

PostPosted: Tue Oct 29, 2002 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Mon Nov 11, 2002 3:19 pm    Post subject: Reply with quote

Thanks for the reply, K! Smile I'm finally getting the time to do this!

Sara
Back to top
View user's profile Send private message
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Sun Nov 17, 2002 7:23 pm    Post subject: Hmmmmmmmm Reply with quote

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 Smile
Back to top
View user's profile Send private message
alex_t_king



Joined: 09 Oct 2002
Posts: 194

PostPosted: Tue Nov 19, 2002 1:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
alex_t_king



Joined: 09 Oct 2002
Posts: 194

PostPosted: Wed Nov 20, 2002 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Thu Nov 21, 2002 1:57 pm    Post subject: Reply with quote

Wow, thanks Alex! I will be looking at this closer this afternoon. Smile

You are awesome!

Sara
Back to top
View user's profile Send private message
alex_t_king



Joined: 09 Oct 2002
Posts: 194

PostPosted: Thu Nov 21, 2002 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Thu Nov 21, 2002 7:31 pm    Post subject: Reply with quote

Thanks Alex! Smile Awesome job!!

Sara
Back to top
View user's profile Send private message
alex_t_king



Joined: 09 Oct 2002
Posts: 194

PostPosted: Fri Nov 22, 2002 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Gadget Girl



Joined: 25 Jan 2002
Posts: 305
Location: Virginia

PostPosted: Fri Nov 22, 2002 11:23 am    Post subject: Reply with quote

Thanks Alex! Smile

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 \ ??

Smile Sara
Back to top
View user's profile Send private message
alex_t_king



Joined: 09 Oct 2002
Posts: 194

PostPosted: Fri Nov 22, 2002 6:05 pm    Post subject: Reply with quote

That would be a bug Smile

I forgot to put stripslashes($varname) on the post title. Thanks for catching that.

--Alex
_________________
Yahoo! Messenger ID: alex_t_king
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group