View previous topic :: View next topic |
Author |
Message |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Tue Feb 12, 2002 9:12 pm Post subject: post using avantgo on a palm pilot |
|
|
the bookmarklet function would be perfect if there were the ability (perhaps I'm missing it) to forward along authentication information with the url. Yes, I do realize this is a security risk, but it's required to post using avantgo offline (and avantgo can encrypt the information if the destination supports it).
(Avantgo is an internet-esque sort of service which allows users of Palm powered devices to download specific internet pages, any forms submitted are cached within the device and then later uploaded).
To make use of this feature, to download the actual posting page of the bookmarket.php one needs to authenticate in the URL itself, as there is no client/server interaction available after the initial page download.
Another solution, I suppose, would be to create a page with author information built in and then protected via .htaccess, as htaccess can be authenticated via URL.
Any thoughts on this, even if just in a "hack" sort of way?
(I suppose this could better be a feature req, but it seems as though the core is already available, just need a way to access it in this way). |
|
Back to top |
|
 |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Wed Feb 13, 2002 5:21 am Post subject: |
|
|
I thought figured it out...
http://yourdomain.com/b2bookmarklet.php?log=USERNAME&pwd=PASSWORD&Submit2
but it yields the "Error: wrong login or password" but when you click the "ok" button with the prefilled fields it logs in...
this is an important function for me, so if anyone has any ideas that might help they'd be appreciated greatly. |
|
Back to top |
|
 |
gidget
Joined: 25 Jan 2002 Posts: 21 Location: chicago
|
Posted: Sat Feb 16, 2002 8:54 pm Post subject: |
|
|
would that work with just wireless palms or would it work with regular palms too? |
|
Back to top |
|
 |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Sat Feb 16, 2002 9:05 pm Post subject: |
|
|
it would work with both, you just would need to have an avantgo.com account and their browser ( which is free ) .
On non-wireless palms (such as mine) you'd go to the posting page through the avantgo browser (which is stored in memory from the last sync) , make your post, and then click submit. It would then stay in memory until you'd sync the palm again, when you sync it would then be added to the database/your site.
Michel said he'd be looking into having an avantgo client using xmlrpc which is good news. ;)
If you have a palm and don't have an avantgo account I'd recommend going to http://www.avantgo.com and getting one, it's very useful to take webpages with you when you're away from the computer. |
|
Back to top |
|
 |
gidget
Joined: 25 Jan 2002 Posts: 21 Location: chicago
|
Posted: Sat Feb 16, 2002 10:26 pm Post subject: |
|
|
thx
I'm checking it out now
 |
|
Back to top |
|
 |
Slide
Joined: 01 Mar 2002 Posts: 3
|
Posted: Fri Mar 01, 2002 11:12 pm Post subject: Try This.. |
|
|
I "hacked" up a little form to make this easier. Instead of hacking around b2bookmarklet.php or doing something nasty to the general structure of b2, I just ripped some code from b2verifauth.php and b2edit.php, called a couple functions from b2functions.php, made a few tweaks, and a simple form (works well on the Palm's tiny screen), and made it just load into the database.
It's *not* secure, use at your own risk. I'd advise creating a seperate account on your b2 system for a palm user, and leave it at level 1, just for posting from your AvantGo account.
The file is at http://lorien.optera.net/b2avantgo.zip . Then, just make a custom AvantGo page that uses a URL like:
http://yourdomain.com/b2avantgo.php?uname=youruser&pass=yourpass
It's VERY basic, and does pretty much no checking of content or anything (it does make a couple calls to things from b2-include/b2functions.php, but nothing beyond that). Consider it public domain.. :)
Cheers!
Last edited by Slide on Tue Mar 05, 2002 2:23 pm; edited 1 time in total |
|
Back to top |
|
 |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Sun Mar 03, 2002 12:12 pm Post subject: |
|
|
I get a page cannot be displayed error on your file. |
|
Back to top |
|
 |
Slide
Joined: 01 Mar 2002 Posts: 3
|
Posted: Mon Mar 04, 2002 5:08 am Post subject: |
|
|
imeridian: Soory, my bad...my webserver has been down off and on today...try it again sometime.. :) |
|
Back to top |
|
 |
imeridian
Joined: 12 Feb 2002 Posts: 191
|
Posted: Mon Mar 04, 2002 5:31 pm Post subject: |
|
|
thanks for this... it appears to be working perfectly. |
|
Back to top |
|
 |
Slide
Joined: 01 Mar 2002 Posts: 3
|
Posted: Tue Mar 12, 2002 10:11 pm Post subject: Another one, but not using AvantGo.. |
|
|
I've coded up a little interface between b2 and the handX webLog tool at http://www.handx.net/. It works pretty well, and doesn't require the overhead of having AvantGo installed. It's not as nicely integrated, but it works for my purposes...
The interface is at http://lorien.optera.net/b2handX-1.0.tar.gz. Requires Perl, DBI and DBD::mysql, and has some pretty basic/arcane install. I've only tested it under Linux with MySQL, but it should work with pretty much any database DBI supports, and on any of the various *nix flavors that Perl and DBI will run on.
The nice thing about the handX setup is that handX's program actually uses ftp or scp to move data to a text file on your webserver, and when using scp, is probably a lot more secure than my b2avantgo interface mentioned above.
Cheers! |
|
Back to top |
|
 |
chibidave
Joined: 22 Mar 2002 Posts: 3
|
Posted: Fri Mar 22, 2002 7:50 am Post subject: |
|
|
has anyone come up with a reliable bookmarklet for ie? on just a regular computer? _________________ we dedicate this to girls kissing girls
boys kissing boys
girls kissing boys
and everything in between!
the future is bleak, uncertain, beautiful
tommorrow they might come and arrest us all
[gybe!] |
|
Back to top |
|
 |
Aubrey
Joined: 18 Jun 2002 Posts: 6
|
Posted: Tue Jun 18, 2002 9:04 pm Post subject: |
|
|
I'm checking out handx, but I don't see how it posts the entry to b2. How do you go about doing that? _________________ you seem star shaped. |
|
Back to top |
|
 |
shaun
Joined: 04 Mar 2003 Posts: 2 Location: BC, Canada
|
Posted: Tue Mar 04, 2003 3:05 am Post subject: Re: Another one, but not using AvantGo. |
|
|
Well, I installed handX (again) today and got it working. It doesn't seem to like uploading files (with pscp, at least) when the names start with a slash (/home/shaun/www/...) so instead, just start off from your home directory and go from there (www/...).
In addition it didn't like it when I tried to add ".txt" to the filename. Don't play with the settings too much and it works fine.
I had intended to post a note asking where the file was now because I couldn't download it from your link, but I just realized that phpBB put a period "." after the filename. Truncated that and away we go (I also edited the quote above so anyone wanting the file can just click on the link in this post).
I'll report back here if I get it going. Or if I don't.  |
|
Back to top |
|
 |
|