The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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.
![]() 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! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
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!
|
|
#4
|
|||
|
|||
|
Three sips for coffee!!
|
|
#5
|
|||
|
|||
|
Not sure why, but all I get, is a blank page when I click on the "Download PalmDoc Version" link.
|
|
#6
|
|||
|
|||
|
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) |
|
#7
|
|||
|
|||
|
nice hack, very handy!
-Tom |
|
#8
|
|||
|
|||
|
I made the code change to palmthread.php, but I still get a blank page. My site doesn't run in safe mode.
|
|
#9
|
|||
|
|||
|
Evidently something went wrong while making the PHP changes... hmm
-- Contemplative expression -- 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!
|
|
#10
|
|||
|
|||
|
...or try to disable gzip output in admincp. now it works for me! thx for support from author!
|
![]() |
|
|