Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ desga2 I can confirm the count goes to -1 when extra deletes of a group are done. The following is some code I did for Groups Multisearch which is to verify that the name chosen by the user is in fact a multisearch group. Shall I work on putting something like this into Groups2 or are you already working on that? I know you are already busy with preferences stuff. Edit: I see you already have some code for this in HotGroups. Edit2: Groups2 is catching duplicate deletes, but Groups2_HotGroups is not. Also did not remove from menu on first delete. [code] ########## DELETES _Grp_M_Search_Del { macroinfo = _("Delete an existing multisearch group."); $_Grp_M_Search_Names = getpref(STRING,"k-meleon_search_group.names"); ## only 62 character display in prompt - display other name in statusbar if (length($_Grp_M_Search_Names) > 62 ) { macros(_Grp_M_Search_LongList); $_Grp_M_Search_Na62 = substr($_Grp_M_Search_Names, 0 , $_Grp_M_Search_pcp); $_Grp_M_Search_Na63 = substr($_Grp_M_Search_Names, $_Grp_M_Search_pcp +1 ); statusbar("Additional Names >> ".$_Grp_M_Search_Na63); $_Grp_M_Search_Delete = prompt($_Grp_M_Search_Na62, _("For delete, enter name without the %")); statusbar(""); } else { $_Grp_M_Search_Delete = prompt($_Grp_M_Search_Names, _("For delete, enter name without the %")); statusbar(""); } ## catch cancel $_Grp_M_Search_Delete == "" ? &_Grp_M_Search_CancelD : &_Grp_M_Search_Missing ; } _Grp_M_Search_LongList { ## compute position last delimiter in first 62 string $_Grp_M_Search_pos = 61 ; while($_Grp_M_Search_pos != -1 ) { if (substr( $_Grp_M_Search_Names, $_Grp_M_Search_pos, 1 ) == "%") { $_Grp_M_Search_pcp = $_Grp_M_Search_pos; $_Grp_M_Search_pos = -1 ; } else { $_Grp_M_Search_pos = $_Grp_M_Search_pos -1 ; } } } _Grp_M_Search_Missing { ## catch missing macros(_Grp_M_Search_DelV); $_Grp_M_Search_Mis == true ? &_Grp_M_Search_misx : &_Grp_M_Search_Del2 ; } _Grp_M_Search_CancelD { $_Grp_M_Search_Can = confirm(_("Did you mean to cancel?"), _("Prompt was cancelled"),YESNO,QUESTION); $_Grp_M_Search_Can == "YES" ? 0 : &_Grp_M_Search_Del ; } _Grp_M_Search_misx { $_Grp_M_Search_mis = confirm(_("The name ").$_Grp_M_Search_Delete._(" is not found."), _("Not in list"),RETRYCANCEL,QUESTION); $_Grp_M_Search_mis == 0 ? 0 : &_Grp_M_Search_Del ; } [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development