General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=jsnj] [quote=JamesD] [quote=SoerenB ] Is there any way to open a "Groups2" group from a hotlink .. [/quote] Yes, you can. This requires a change to the KM macro file 'hotlink.kmm'. The first macro named 'hotlink' in that file can be replaced with the following code: [code] hotlink{ macroinfo=_("Open the specified hotlink"); $OpenURL=getpref(STRING,$_hotlink.$ARG.".url"); if ( substr ( $OpenURL,0,1) == "&" ) { $_Groups2_GName = substr( $OpenURL,1); plugin(macros, "Groups2_OpenGroup(" . $_Groups2_GName .")") ; } else { $OpenURL=="" ? 0 : (getpref(BOOL,$_hotlink.$ARG.".new")?&OpenURL_InNew:open($OpenURL)); } } [/code] For whichever hotlink number that you wish to be a group, just enter the group name preceded by the & character in the place where you would normally put a site URL.[/quote] You can also just check for a dot. All hotlinks whether they are JS or URLs should have a dot. The following should work. No need for the "&" character. hotlink{ macroinfo=_("Open the specified hotlink"); $OpenURL=getpref(STRING,$_hotlink.$ARG.".url"); $OpenURL==""?0 : (index($OpenURL,".")==-1 ? &hotlinkgroup: (getpref(BOOL,$_hotlink.$ARG.".new")?&OpenURL_InNew:open($OpenURL))); } hotlinkgroup{ $_Folder=pluginmsgex(bookmarks,FindNick,$OpenURL,STRING); $_Folder ? 0 : $_Folder=pluginmsgex(hotlist,FindNick,$OpenURL,STRING); $_Folder ? $URLBAR=$OpenURL : plugin(macros, "Groups2_OpenGroup(" . $OpenURL .")"); $_Folder ? id(ID_SELECT_URL):0; $_Folder ? id(ID_NAV_GO):0; } *[i][b]Edit[/b][/i]: Following Siria's thinking, added [url=http://kmeleon.sourceforge.net/wiki/QuickNick]folder group[/url] recognition.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development