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=siria] [quote=JamesD][code] _FavRenAdd_Reload { macroinfo="Reload Favorites list"; ### from original favrenadd $_FavRenAdd_FavFolder=getpref(STRING,"kmeleon.plugins.favorites.directory"); $_FavRenAdd_FavFolder=substr($_FavRenAdd_FavFolder,0,length($_FavRenAdd_FavFolder)-1); $_FavRenAdd_FavFolder==""?$_FavRenAdd_FavFolder=readreg("HKCU","Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\Favorites"):0; [color=red]$_FavRenAdd_FavFolder==""?$_FavRenAdd_FavFolder=readreg("HKLM","Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\Favorites"):0;[/color] ### from reload_ie_fav $_favdir=readreg[color=red](HKCU,"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\\Favorites"); $_favdir==""?$_favdir=readreg[/color](HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Favorites"):0; [color=blue]$_favmenu=getpref(STRING,"kmeleon.plugins.favorites.menuFolder"); $_favmenu==""?0:$_favdir=$_favdir . "\\" . $_favmenu;[/color] ### plugin(favorites,"AddLink"); ### auto select code from siria $_FavRenAdd_winver=readreg(HKLM,"Software\\Microsoft\\Windows\\CurrentVersion\\VersionNumber"); [color=green]$_FavRenAdd_winver=""[/color]? $_FavRenAdd_winfam="winNT" : $FavRenAdd__winfam="win9x" ; $_FavRenAdd_winfam=="winNT" ? exec("cmd.exe /q /c del \"".$_favdir."\\.url\"") : exec("command.com /c del \"".$_favdir."\\.url\""); } [/code][/quote] IMO the red lines are not needed... The blue lines deal with the menu folder, but the newitems folder contains the dummy url... The green line is missing a "=" :)[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development