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

Ian Barton lists at manor-farm.org
Wed May 31 02:08:30 CDT 2006


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.

My version prompts you for a title then creates a new page in a group 
you define (mine is called Scrapbook) with the page name called 
yyyymmdd. Text highlighted on the originating page is copied to the new 
wiki page. If this page already exists, the text is appended to the 
existing text.

There are a couple of limitations:

Because I use the GET method the amount of text is limited by the limit 
on the length of a url and is roughly 1,000 chars.

There are a few problems urldecoding the encoded text, which means some 
special characters don't get pasted in the correct format.

Ian.




More information about the pmwiki-users mailing list