Improvement requests
: K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ Yogi Finally got it working. Problem was where I placed the button for proxy in the privacy bar. I does not seem to work if placed after user agent. It does work if placed before cookies. [code] &Privacy Bar(54,10){ %ifplugin macros [b] Proxy{ macros(_PBProxTog_Button) Toggle proxy PBProxyTog.bmp[1] PBProxyTog.bmp[0] } - [/b] Cookies{ [/code] Use the image posted by Yogi on March 19. Give it the name PBProxyTog.bmp and place in the Default folder under the skins folder. In order to pick up on changes from TOOLS - PROXY, you will need to add a line of code in proxy.kmm file in two places. [code] Proxy_None{ macroinfo=_("Connect directly to the Internet"); menuchecked=(getpref(INT,$_Proxy_Type)==0); setpref(INT,$_Proxy_Type,0); statusbar(_("Connecting directly")); [b]&PBProxTog_ToolsAlert;[/b] } [/code] and [code] _Proxy_Custom{ setpref(STRING,$_Proxy_Current,$_proxy); $ExecMacros="_Proxy_SetPref"; $_type=BOOL; $List=$_Proxy_PrefBool; &ExecMacros_List; $_type=INT; $List=$_Proxy_PrefInt; &ExecMacros_List; $_type=STRING; $List=$_Proxy_PrefStr; &ExecMacros_List; statusbar(sub("%s",getpref(STRING,$macroPrefBranch.$_proxy.".name"),_("Connecting over proxy '%s'"))); [b]&PBProxTog_ToolsAlert;[/b] } [/code] [b]PBProxTog.kmm[/b] [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # # ---------- PBProxTog.kmm # ---------- Icon for proxy on and proxy off as part of privacy bar # ---------- Does not yet handle auto detect # # Dependencies : main.kmm, proxy.kmm # Resources : # Preferences : "network.proxy.type" # Version : 0.5 3/21/09 # Author : JamesD # -------------------------------------------------------------------------------- _PBProxTog_Status{ $_PBProxTog_ToolbarName = "&Privacy Bar" ; $_PBProxTog_Command = "macros(_PBProxTog_Button)" ; if (getpref(INT,"network.proxy.type") == 0) { $_PBProxTog_IconTag = $_PBProxTog_ToolbarName.",".$_PBProxTog_Command.", COLD, PBProxyTog.bmp[2]" ; pluginmsg(toolbars, "SetButtonImage", $_PBProxTog_IconTag); } } _PBProxTog_Button{ $_PBProxTog_Status = getpref(INT,"network.proxy.type"); if ($_PBProxTog_Status != 0) { setpref(INT,"network.proxy.type",0); $_PBProxTog_IconTag = $_PBProxTog_ToolbarName.",".$_PBProxTog_Command.", COLD, PBProxyTog.bmp[2]" ; pluginmsg(toolbars, "SetButtonImage", $_PBProxTog_IconTag); } else { setpref(INT,"network.proxy.type",1); $_PBProxTog_IconTag = $_PBProxTog_ToolbarName.",".$_PBProxTog_Command.", COLD, PBProxyTog.bmp[0]" ; pluginmsg(toolbars, "SetButtonImage", $_PBProxTog_IconTag); } } PBProxTog_ToolsAlert{ if ( getpref(INT,"network.proxy.type") == 1) { $_PBProxTog_IconTag = $_PBProxTog_ToolbarName.",".$_PBProxTog_Command.", COLD, PBProxyTog.bmp[0]" ; pluginmsg(toolbars, "SetButtonImage", $_PBProxTog_IconTag); } else { $_PBProxTog_IconTag = $_PBProxTog_ToolbarName.",".$_PBProxTog_Command.", COLD, PBProxyTog.bmp[2]" ; pluginmsg(toolbars, "SetButtonImage", $_PBProxTog_IconTag); } } $OnStartup=$OnStartup."_PBProxTog_Status;"; $macroModules=$macroModules."PBProxTog;"; [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development