Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by CoffeeMugDude CoffeeMugDude is offline
Developer Last Online: Nov 2001 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-28-2001 Last Update: Never Installs: 5
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-30-2001, 06:08 AM
CoffeeMugDude CoffeeMugDude is offline
 
Join Date: Nov 2001
Location: South Africa
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #3  
Old 07-30-2001, 03:55 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 07-30-2001, 04:02 PM
CoffeeMugDude CoffeeMugDude is offline
 
Join Date: Nov 2001
Location: South Africa
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Three sips for coffee!!
Reply With Quote
  #5  
Old 07-31-2001, 12:38 AM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure why, but all I get, is a blank page when I click on the "Download PalmDoc Version" link.
Reply With Quote
  #6  
Old 07-31-2001, 07:57 AM
CoffeeMugDude CoffeeMugDude is offline
 
Join Date: Nov 2001
Location: South Africa
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

Change the final line in palmthread.php from:
PHP Code:
onTheFlyPalmDoc($output"$output"$pdbname); 
To:
PHP Code:
echo($output); 
If that gives you some garbled rubbish when you click on the "Download" link, then we know it's palmlib that's giving you trouble.

Also, are you running PHP in safe mode?
(I am, and occasionally palmlib makes my server burp about safe mode, but it still runs)
Reply With Quote
  #7  
Old 07-31-2001, 01:03 PM
ThomasP
Guest
 
Posts: n/a
Default

nice hack, very handy!
-Tom
Reply With Quote
  #8  
Old 07-31-2001, 01:39 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I made the code change to palmthread.php, but I still get a blank page. My site doesn't run in safe mode.
Reply With Quote
  #9  
Old 07-31-2001, 04:33 PM
CoffeeMugDude CoffeeMugDude is offline
 
Join Date: Nov 2001
Location: South Africa
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #10  
Old 08-11-2001, 06:32 PM
red red is offline
 
Join Date: Nov 2001
Location: vienna/austria/europe
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...or try to disable gzip output in admincp. now it works for me! thx for support from author!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09445 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete