Page 2 of 2

Posted: Thu May 18, 2006 7:58 pm
by garvinhicking
Then this here should work:

Code: Select all

javascript:bm=document.selection?document.selection.createRange().text:document.getSelection();void(open('http://projekt.blangstrup.org/serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new&serendipity[title]=' + escape(document.title) + '&serendipity[body]=' + escape(bm) + '&serendipity[url]=' + escape(location.href), 'new_log_entry', 'resizable=yes, scrollbars=yes, width=750, height=420, location=yes, status=yes'));
Regards,
Garvin

Posted: Fri May 19, 2006 5:11 pm
by davidcrickett
Thanks! Could you make it a plugin, so Serendipity users just have to draw and drop it on the bookmarks line of the browser - like in Pivot and other blog systems? (I can't get it to work like a normal bookmark). :roll:

Posted: Mon May 22, 2006 11:20 am
by garvinhicking
Hi!

How would I make such a plugin? What should it do exactly?

Adding it should work quite easily. Create a webpage with this code:

Code: Select all

<a href="javascript:bm=document.selection?document.selection.createRange().text:document.getSelection();void(open('http://projekt.blangstrup.org/serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new&serendipity[title]=' + escape(document.title) + '&serendipity[body]=' + escape(bm) + '&serendipity[url]=' + escape(location.href), 'new_log_entry', 'resizable=yes, scrollbars=yes, width=750, height=420, location=yes, status=yes'));">Bookmark me</a>
And then save that file as "test.html", view it in your browser, and bookmark that link. First you need to replace your URL to the real URL of course.

Ah, scrap that, how about this one:

http://spartacus.s9y.org/bookmarklet.html

Regards,
Garvin

Posted: Tue May 23, 2006 5:49 pm
by davidcrickett
thnx! :)
later: It crashed my MIE 7, and didn't work in FireFox. But... ;) I think the url puts a 'projekt' in front of the url.
Later yet: Still crashes IE 7...
A very good idea, though!

I tried some other blog systems this week, seems I've nearly tried them all, and I still return to Serendipity, it's the best... :)