![]() |
I have an old Palm Pilot Professional; it's like the original beetle. It doesn't surf the 'net, or do the cool stuff the latest palms do, but I can keep my address book on it, and read PalmDoc files. :cool:
I came up with this script about 6 months ago when one of my subscribers, a "palm fanatic" requested a means to get stories from my site in PalmDoc format. (The most common means of reading documents on a palm) The palmlib script for converting text to PalmDoc is not my own (I don't even understand it!), I just "tweaked" the original VB printthread.php to return a string instead of printing it out to the browser, then pass it through the "Palm Converter" No PHP changes are required, just 3 template changes... Included are 2 images: - palmpilot.gif (The VB 2.0.1 default graphic theme) - palmpilot_transparent.gif (A transparent .gif with a palm icon, to use on your own graphics) See a working demo at http://www.coffeeintherain.com/forums, or see the attached screenshot. (Download .zip: http://www.coffeeintherain.com/scripts/palm_hack.zip) Enjoy! |
As I was driving to work this morning, I realised that including a hacked version of printthread.php (as palmthread.php), was probably against the hacking rules. (VB source)
I removed the source from the zipfile, and included instructions on manually hacking printthread, line-by-line :) Sorry 'bout that! |
First of all....nice hack...I'll give this one a shot.
Second, awesome set of forums!!!!!! A community dedicated to my most favored beverage!!!!! Life does not begin without a good cup of java! :D :D |
Three sips for coffee!! :D
|
Not sure why, but all I get, is a blank page when I click on the "Download PalmDoc Version" link.
|
Try this:
Change the final line in palmthread.php from: PHP Code:
PHP Code:
Also, are you running PHP in safe mode? (I am, and occasionally palmlib makes my server burp about safe mode, but it still runs) |
nice hack, very handy!
-Tom |
I made the code change to palmthread.php, but I still get a blank page. My site doesn't run in safe mode.
|
Evidently something went wrong while making the PHP changes... hmm
-- Contemplative expression -- :rolleyes: Next thing I'd try is starting afresh. - Delete palmthread.php, make a copy of printthread.php - Run the link without any PHP changes. It should look identical to the printer-friendly version (duh!) - Then make the template changes, testing after each change. (The text displayed will look progressively uglier) - Finally, the last output change. Let me know where it croaks! :) |
...or try to disable gzip output in admincp. now it works for me! thx for support from author!
|
All times are GMT. The time now is 12:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|