del.icio.us
Posted by: newform
Date: March 12, 2008 05:11PM

Does anyone have experience setting up the del.icio.us macro in k-meleon? I followed the directions @ http://kmeleon.sourceforge.net/wiki/DelIcioUs and whenever i hit f12 i get this message: invalid macro reference, the macro 'xul' does not exist. does anyone know how to fix this? thanks

Re: del.icio.us
Posted by: rstlne
Date: March 12, 2008 07:58PM

Looks like the XUL function is gone.

Try this instead:

RunDelicious{
$OpenURL="http://del.icio.us/".$word."?v=3&jump=bookmarks&url=".$URL."&title=".$TITLE;
&OpenURL_InNew;
}

Re: del.icio.us
Posted by: Fred
Date: March 12, 2008 08:01PM

The macro Xul is missing in the newer versions.
You have to add it yourself.
To make it usable in 1.1.4 (Layers) as well as in 1.5a2(Real Tabs)
I would have the Delicious page open in a new window.
So probably "Layers and Windows" would have to be enabled
in KM 1.1.4 .
Open Notepad and paste the following :


$de="kmeleon.general.deliciousUser";

XUL{
opennew($xul);
}

SetDelicious{
$word=prompt("Set del.icio.us username to: ", "del.icio.us setup");
$word=="" ? "" : setpref(STRING, $de, $word);
}

RunDelicious{
$xul="http://del.icio.us/".$word."?v=3&jump=bookmarks&url=".$URL."&title=".$TITLE;
&XUL;
}

Delicious{
$word=getpref(STRING, $de);
$word=="" ? &SetDelicious : "";
$word=="" ? "" : &RunDelicious;
}



Save the file as Delicious.kmm inside macros in the K-Meleon root folder.
But not as .txt but as "all files" with the correct .kmm ending.

If you are satisfied with using key shortcuts only, you
can create them after restarting the browser and going
in the menu bar to Edit > Configuration > Accelerators .
accel.cfg will spring up in notepad .

Add at the bottom

VK_F12 = macros(Delicious)
SHIFT VK_F12 = macros(SetDelicious)

Then go to in notepad to File/Save and save accel.cfg.

If you want menu entries for the shortcut commands,
you would additionally have to edit menus.cfg
which is inside the folder /defaults/settings in the
K-Meleon root folder.
I hope that it works but I can't check it because I am
not a registered Delicious user.

Fred

Re: del.icio.us
Posted by: Fred
Date: March 12, 2008 08:09PM

The solution of rstlne should also work.
But it should also be saved in a .kmm file.

Fred

Re: del.icio.us
Posted by: rstlne
Date: March 12, 2008 08:43PM

Or better yet, try this:
http://kmeleon.sourceforge.net/wiki/KmmDelicious

I just updated the macro set to work with new versions of K-Meleon. Let me know if anything goes wrong. I've only tested it on one KM setup so far.

Re: del.icio.us
Posted by: newform
Date: March 13, 2008 02:09AM

Thanks for the help guys! I'm up and running smiling smiley rstlne, I first tried your method over @ http://kmeleon.sourceforge.net/wiki/KmmDelicious
and for some reason it didn't work, but it could be me, (btw I have 1.1.4)
so then I tried fred's method, with f12 accel adjustment) and that worked for me.

K-Meleon forum is powered by Phorum.