[pmwiki-users] I need a bookmarklet ...

Andy Kaplan-Myrth andy1 at kaplan-myrth.ca
Wed May 31 14:24:56 CDT 2006

I thought a bookmarklet was a great idea when I saw the first post on
this yesterday (when I joined this list :-).

I use Kind-of-Blog for blogging, and Tags for tagging. The bookmarklet
that I made adds a blog entry for a page I'm visiting, includes the
selected text, prompts for tags, and adds a link to the page. If no text
is selected, it prompts for that too. It's my first recipe, and I'm an
amateur coder, but it seems to work for IE and Firefox -- it would be
great to get some feedback.

A couple of things I'd still like it to do are:
1) focus on the Save button when it gets to the new blog page so the
user can just hit Enter to save it;
2) open a new window to add the page, so the user doesn't lose the
original page.

I couldn't figure out how to do these things...

The code is attached. It's just a modified addlinks.php, so install it
the same way, except you also have to define a variable so it knows what
group your blog is in -- see the headers for instructions.


On Wed, 2006-05-31 at 09:15 -0400, Neil Herber wrote:
> At 2006-05-31  08:08 AM +0100, Ian Barton is rumored to have said:
> >Neil Herber wrote:
> >>At 2006-05-30  06:45 PM -0700, H. Fox is rumored to have said:
> >>>How close is this?
> >>>
> >>>   http://www.pmwiki.org/pmwiki/uploads/Cookbook/cmsb-addlink.php
> >>Pretty close to dead on what I want. I just wanted a naked URL, but 
> >>I can probably hack the code from this point on. Thanks!
> >
> >I have hacked the addlink script to do exactly what you want. I keep 
> >forgetting to post it to Cookbook. I'll email you the code later today.
> Thanks Ian, but I managed to don my PHP hat (rarely worn) and I 
> hacked Hagan's version to do exactly what I want, which is to go to a 
> dedicated bookmark page and insert the title of the source page, the 
> URL of the source page, and the selected text.
> Neil Herber
> Corporate info at http://www.eton.ca/ 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
Andy Kaplan-Myrth
email: andy1 at kaplan-myrth.ca
web: http://andy.kaplan-myrth.ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kob-addlink.php
Type: application/x-php
Size: 4083 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20060531/80e18c02/attachment.bin 

More information about the pmwiki-users mailing list