Re: [1.0RC1] Search Engine Configure
Posted by: jsnj
Date: July 13, 2006 03:17AM

N,

Did you remember to add the search engines to the menus file?

Re: [1.0RC1] Search Engine Configure
Posted by: kko
Date: July 13, 2006 09:13AM

@ndebord:

I see two such lines:

# Support for K-Meleon 0.9 engine macros: &EngineSync;
}

These lines are a part of macro EnginesSync. I told you to not touch it! You shouldn't find these lines, when you search for "EngineSync{" as I told you. Besides that, these lines should look like that:

# Support for K-Meleon 0.9 engine macros:
&EngineSync;
}

&

EngineSync{
}

These are the adressed lines! (You assumed right and the location is important.)


In the heat, I forgot to tell you about the menus!

1) Open your 0.9 menus.cfg and search for "Engines{" (should be on top of the file). You should find something like that:

Engines{
macros(Google)
macros(Yahoo)
macros(Wikipedia)
macros(Dictionaries)
}

Copy all the lines between line "Engines{" and line "}" (I assume, you will have more than four lines).

2) Open your 1.0 menus.cfg and search for "Engines{". You should find something like that:

# ----- Web Search

Engines{
macros(SE0)
macros(SE1)
macros(SE2)
macros(SE3)
macros(SE4)
macros(SE5)
macros(SE6)
macros(SE7)
macros(SE8)
macros(SE9)
-
macros(Metasearch,&Metasearch)
- <-- Add this minus here as a separator
<-- Paste here what you copied from 0.9
}

3) Save your modified 1.0 menus.cfg and restart K-Meleon 1.0.

Re: [1.0RC1] Search Engine Configure
Posted by: ndebord
Date: July 13, 2006 10:50PM

kko,

Heat, as in it's too hot to think much less work there? We have similar here. 90% humidiity and 90 degrees Fahrenheit, Last night was unbearable and although today was hotter, there was a breeze here in NYC, so not so bad. But definite AC weather! Tonight it cooled off considerably, but we're lucky since we're next to the Atlantic Ocean, so breezes can spring up sometimes to help out. It's when we get what we call a "Bermuda High" that there is no hope at all. Just a couple of weeks of 90+ weather without a break and usually without a breeze. The asphalt melts and anybody with any sense at all either goes to the beach or heads north to Maine or Quebec!

Anyhow, this last go around did it. Got both search engine methods working, with the new menu system up above and the old beneath it with a - to separate the two. Can now change the "hot" ten list with advanced preferences or use the old complete list, which in my case is a very small 49 search engines. <g>

Much thanks,

N

Re: [1.0RC1] Search Engine Configure
Posted by: ndebord
Date: July 13, 2006 11:27PM

jsnj,

Got it. kko's latest post did the trick and I now have both search engine methods up and working perfectly. Very nice indeed.

Tks,

N

Re: [1.0RC1] Search Engine Configure
Posted by: kko
Date: July 14, 2006 11:18AM

I'm glad to hear that you finally made it, ndebord!

After all, I guess, it was beneficial for all that you brought up this topic.


And thank you too, jsnj, for your valuable suggestions!

Re: [1.0RC1] Search Engine Configure
Posted by: ndebord
Date: July 14, 2006 12:16PM

kko & jsnj

It wasn't all that bad, even with the limitations of cross posting on this forum's messaging system! Anyhow, much thanks for putting up with my posts and for helping me work my way through this.

Figure there will be other little issues that pop up as people come to terms with the idea that an official release for K-Meleon 1.0 is not all that far off.

<LOL>

N

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 03, 2006 12:05PM


Hi! I just want to say that my K-M 1.0 crashes when I've done as kko's showed in his explanation above. So I need some help with the cfg to add engines like Icerocket for example. Can someone help me with that? I should mention that I get an error when K-m 1.0 crashes that says error in toolbar on place something and that is anoying.

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 03, 2006 12:30PM

Hi! Again this is the error in toolbar i get and that is anoying: error in Modul TOOLBARS.DLL on adress 0167:01f926a0. Can someone tell me what the heck this is please?

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 06, 2006 09:44PM


Hi! How do I add searchengines in k-m 1.0 since I can't see how to do so with a working macro here. The only thing I can see is a incomplete example above. When I'm looking in my old macrofile for v0.9 of K-M it seems that there is something call Oldsearch etc. with my own personal searchengines that worked with my searchbar.
The same searchbar that could be downloaded here at homepage and the one I use in K-m 0.9. But I can't get it to work in K-M 1.0 because of this new macro.cfg and menu.cfg. I'm in need of help here to understand the configuration above so can someone please help me?

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: jsnj
Date: August 08, 2006 05:33AM

Yes, it's been made a bit tricky visually for all but advanced users to add v0.9 engines to the v1.0 macros file.

1)From your v0.9 macros file, copy your search engines excluding the EngineSync portion.

2)In your v1.0 macros file, search (Ctrl+F) for # ----- Page Search

3)Above # ----- Page Search paste the engines you copied from your v0.9 macros file.

4)Go back to your v0.9 macros file, copy the EngineSync macro.

5)In your v1.0 macros file, right above the engines you just pasted, replace the empty EngineSync macro with the v0.9 version.

6)In your v0.9 menus file, copy your search engines.

7)In you v1.0 menus file, paste your search engines within the Engines{ section. Shouldn't matter where. Could be above inbetween or below the SE macros. Your choice.

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 08, 2006 12:19PM

jsnj I have done as you described above but it still not working for me. I can't see any of my engines and I can't use my searchbar so either i'm stupid or not but I think there is something wrong in my macros.cfg and in menus.cfg for K-m 1.0. It looks like this in my macros.cfg:

# ----- Web Search

$kw="keyword.enabled";
$SearchName="kmeleon.general.searchEngineName";
$SearchEngine="kmeleon.general.searchEngine";
$SearchEngineURL="";
$SearchEngineName="";
$sm=$macroPrefBranch."search.meta";
$se=$macroPrefBranch."search.engine";
$sl=$macroPrefBranch."search.locked";

EnginesSync{
$SearchEngineURL=getpref(STRING,$SearchEngine); $SearchEngineName=getpref(STRING,$SearchName); $n=0; while($n!=10) &EngineLoop;
setcheck("macros(SearchLock)",getpref(BOOL,$sl));
setcheck("macros(Keyword)",getpref(BOOL,$kw));
# Support for K-Meleon 0.9 engine macros:
&EngineSync;
}
EngineLoop{
setcheck("macros(SE".$n.")",getpref(STRING,$se.$n.".url")==$SearchEngineURL ?true:false); $n=$n+1;
}

KMF{
$SearchEngineURL=getpref(STRING,$macroPrefBranch."search.kmforums"); $SearchEngineName=_("K-Meleon Forums Search"); &Search;
}
SE0{
$n=0; menu=getpref(STRING,$se."0.name"); &SEgo;
}
SE1{
$n=1; menu=getpref(STRING,$se."1.name"); &SEgo;
}
SE2{
$n=2; menu=getpref(STRING,$se."2.name"); &SEgo;
}
SE3{
$n=3; menu=getpref(STRING,$se."3.name"); &SEgo;
}
SE4{
$n=4; menu=getpref(STRING,$se."4.name"); &SEgo;
}
SE5{
$n=5; menu=getpref(STRING,$se."5.name"); &SEgo;
}
SE6{
$n=6; menu=getpref(STRING,$se."6.name"); &SEgo;
}
SE7{
$n=7; menu=getpref(STRING,$se."7.name"); &SEgo;
}
SE8{
$n=8; menu=getpref(STRING,$se."8.name"); &SEgo;
}
SE9{
$n=9; menu=getpref(STRING,$se."9.name"); &SEgo;
}
SEgo{
$SearchEngineURL=getpref(STRING,$se.$n.".url"); $SearchEngineName=getpref(STRING,$se.$n.".name"); &SearchInit;
}

SearchInit{
$locked=getpref(BOOL,$sl);
$locked==true?0:setpref(STRING,$SearchEngine,$SearchEngineURL);
$locked==true?0:setpref(STRING,$SearchName,$SearchEngineName);
$locked==true?0:&EnginesSync; &Search;
}
Search{
$SearchEngineURL==""?$SearchEngineURL=getpref(STRING,$SearchEngine):0;
$SearchEngineName==""?$SearchEngineName=getpref(STRING,$SearchName):0;
$data=$SelectedText; $data==""?&SearchTyped:&SearchSelected; $SearchEngineURL=""; $SearchEngineName="";
}
SearchSelected{
$data=$SearchEngineURL.urlencode($data); &OpenSelected;
}
SearchTyped{
$data=$URLBAR; $data==$URL?$data=prompt(_("Enter search query:"),sub("%s",$SearchEngineName,_("Search (%s)"))):0;
$data==""?0:$data=$SearchEngineURL.urlencode($data); &OpenTyped;
}

PasteSearch{
$URLBAR=getclipboard(); &Search;
}

Metasearch{
$data=$SelectedText; $data==""?&MetaTyped:&MetaSelected;
}
MetaSelected{
$pref=$openSelected; &MetaOpen;
}
MetaTyped{
$pref=$openTyped;
$data=$URLBAR; $data==$URL?$data=prompt(_("Enter search query:"),sub("%s",_("Metasearch"),_("Search (%s)"))):0;
$data==""?0:&MetaOpen;
}
MetaOpen{
$how=getpref(STRING,$pref); $data=urlencode($data);
$how=="ID_OPEN_LINK"?$how=0:0;
$how=="ID_OPEN_LINK_IN_NEW_WINDOW"?$how=0:0;
$how=="ID_OPEN_LINK_IN_BACKGROUND"?$how=1:0;
$how=="layers(OpenURL)"?$how=0:0;
$how=="layers(OpenURLBg)"?$how=1:0;
&ResetURL; $n=0; while($n!=10) &MetaLoop;
}
MetaLoop{
$SearchEngineURL=getpref(STRING,$sm.$n.".url");
$SearchEngineURL==""?0:$how==0?($layer==true?pluginmsg(layers,"OpenURL",$SearchEngineURL.$data)yawning smileypennew($SearchEngineURL.$data)):0;
$SearchEngineURL==""?0:$how==1?($layer==true?pluginmsg(layers,"OpenURLBg",$SearchEngineURL.$data):OpenBg($SearchEngineURL.$data)):0;
$n=$n+1;
}

SearchLock{
togglepref(BOOL,$sl); &EnginesSync;
statusbar(sub("%s",getpref(BOOL,$sl)?getpref(STRING,$SearchName):_("Last used engine"),_("Default search engine: %s")));
}

Keyword{
togglepref(BOOL,$kw); &EnginesSync;
statusbar(sub("%s",getpref(BOOL,$kw)?$ON:$OFF,_("Keyword Autosearch %s")));
}

# Support for K-Meleon 0.9 engine macros:

$sen=$SearchName;
OldSearch{
}
SetSearch{
$SearchEngineURL=$eng; $SearchEngineName=$search; &SearchInit;
}
EngineSync{
setcheck("macros(Google)", getpref(STRING, $sen) == "Google" ? true:false);
setcheck("macros(Icerocket)", getpref(STRING, $sen) == "Icerocket" ? true:false);
setcheck("macros(AltaVista)", getpref(STRING, $sen) == "AltaVista" ? true:false);
setcheck("macros(Hotbot)", getpref(STRING, $sen) == "Hotbot" ? true:false);
setcheck("macros(IMDcool smiley", getpref(STRING, $sen) == "Internet Movie Database" ? true:false);
setcheck("macros(Findtarget)", getpref(STRING, $sen) == "Findtarget" ? true:false);
setcheck("macros(Joyscape)", getpref(STRING, $sen) == "Joyscape" ? true:false);
setcheck("macros(JoyScapeImages)", getpref(STRING, $sen) == "JoyScape Images" ? true:false);
setcheck("macros(Mamma)", getpref(STRING, $sen) == "Mamma" ? true:false);
setcheck("macros(Astalavista)", getpref(STRING, $sen) == "Astalavista" ? true:false);
setcheck("macros(MSCracks)", getpref(STRING, $sen) == "MSCracks" ? true:false);
setcheck("macros(IPDcool smiley", getpref(STRING, $sen) == "Internet Pinball Database " ? true:false);
setcheck("macros(Clusty)", getpref(STRING, $sen) == "Clusty" ? true:false);
setcheck("macros(ClustyImages)", getpref(STRING, $sen) == "ClustyImages" ? true:false);
}

Google{
&OldSearch; $search = "Google";
$eng = "........................../search?q=";
&SetSearch;
}

Icerocket{
&OldSearch; $search = "Icerocket";
$eng = "................................/search?tab=web&q=";
&SetSearch;
}

AltaVista{
&OldSearch; $search = "AltaVista";
$eng = ".............................../web/results?itag=wrx&q=";
&SetSearch;
}

Hotbot{
&OldSearch; $search = "Hotbot";
$eng = "......................................../cgi-bin/pursuit?query=";
&SetSearch;
}

IMDB{
&OldSearch; $search = "Internet Movie Database";
$eng = "...................................../find?";
&SetSearch;
}

FindTarget{
&OldSearch; $search = "Findtarget";
$eng = ".................................../search.php?q=";
&SetSearch;
}

JoyScape{
&OldSearch; $search = " JoyScape ";
$eng = " .................................../search/s?q=";[/url]
&SetSearch;
}

JoyScapeImages{
&OldSearch; $search = " JoyScapeImages ";
$eng = " ................................./search?t=images&gbs=no&q="
&SetSearch;
}

Astalavista{
&OldSearch; $search = "Astalavista";
$eng = " ............................./search.php?s="
&SetSearch;
}

Mamma{
&OldSearch; $search = "Mamma";
$eng = "http://www.mamma.com/Mamma?query=";;
&SetSearch;
}

MSCracks{
&OldSearch; $search = "MSCracks";
$eng = "http://mscracks.com/search.php?q=";;
&SetSearch;
}

IPDB{
&OldSearch; $search = " Internet Pinball Database ";
$eng = " ..............................search.pl?any="
&SetSearch;
}

Clusty{
&OldSearch; $search = "Clusty";
$eng =" ....................../search?query="
&SetSearch;
}

ClustyImages{
&OldSearch; $search = "ClustyImages";
$eng =".................../search?v%3aproject=clusty-images&query=";
&SetSearch;
}

# ----- Page Search.

And in my menus.cfg for K-m 1.0 it looks like this:

# ----- Web Search

Engines{
macros(SE0)
macros(SE1)
macros(SE2)
macros(SE3)
macros(SE4)
macros(SE5)
macros(SE6)
macros(SE7)
macros(SE8)
macros(SE9)
-
Engines{
macros(Google)
macros(Icerocket)
macros(AltaVista)
macros(Hotbot)
macros(IMDcool smiley
macros(Findtarget)
macros(JoyScape)
macros(JoyScapeImages)
macros(Astalavista)
macros(Mamma)
macros(MSCracks)
macros(IPDcool smiley
macros(Clusty)
macros(ClustyImages)
}
-
macros(Metasearch,&Metasearch)
}

&Web Search{
!Engines
-
macros(SearchLock,Use As &Default Engine)
macros(WebFind,Con&figure...)
}

%endif

# ----- Groups

So Can someone tell me whats wrong please?

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: kko
Date: August 08, 2006 03:37PM

The bold lines are wrong and must be deleted (you cannot define a menu inside a menu):

Engines{
macros(SE0)
macros(SE1)
macros(SE2)
macros(SE3)
macros(SE4)
macros(SE5)
macros(SE6)
macros(SE7)
macros(SE8)
macros(SE9)
-
Engines{
macros(Google)
macros(Icerocket)
macros(AltaVista)
macros(Hotbot)
macros(IMDcool smiley
macros(Findtarget)
macros(JoyScape)
macros(JoyScapeImages)
macros(Astalavista)
macros(Mamma)
macros(MSCracks)
macros(IPDcool smiley
macros(Clusty)
macros(ClustyImages)
}
-
macros(Metasearch,&Metasearch)
}

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 08, 2006 03:53PM


It doesn't work anyway. I still can't use my searchengines because they want show anywhere in K-meleon 1.0.

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 08, 2006 04:20PM


I just discovered that the profile box inside K-meleon 1.0 map was empty so that is perhaps the reason why nothing work!!! Could it be the reason?

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: guenter
Date: August 08, 2006 05:04PM

no, the default profile location is now where all programs have theirs
(depending on win version Main windows folder for older window or data on nt based)

to get the profiles folder to old location?

create a file named: profile.ini inside k-meleon main folder where exe is.
& write into it:

[profile]
path=profiles
IsRelatife=1

probably - a small typo // these config files are not very forgiving.

Re: [1.0RC1] Search Engine Configure
Posted by: Rapido
Date: August 08, 2006 05:10PM

Hurray!!! It actually works now when I reinstalled K-Meleon1.0 and got the profile map full of needed things such as macro.cfg and menus.cfg. So bingo that was the goofyplay made by K-Meleon1.0.

Yours: Rapido

Re: [1.0RC1] Search Engine Configure
Posted by: guenter
Date: August 08, 2006 05:14PM

You must have chosen the option mentioned at set up.
Else we have that this k-m sometimes does not install well ( like 0.8.2 often did).

glad to hear that You got ahead.

Re: [1.0RC1] Search Engine Configure
Posted by: ndebord
Date: August 10, 2006 06:55PM

Guenter,

Yes, the new install routine is designed more to use multiple profiles and place that info in c:\windows\application data (W98se) or elsewhere in NT.

In the past (KM 0.9 and before) I was accustomed to editing the random number.slt sub-folder with a hex editor to get a standardized SLT folder name that I could use across different k-meleon versions (helps greatly in terms of maintaining macros and similar stuff).

It took me a few questions here to figure out how to use Profile.Ini instead of the multiple profile routine.

N

Re: [1.0RC1] Search Engine Configure
Posted by: guenter
Date: August 11, 2006 01:06PM

Hi,
I have the Profiles in the K-Meleon folder - that is the easiest way to use the same
install and Profile across XP and ME and different language installs.

Re: [1.0RC1] Search Engine Configure
Posted by: ndebord
Date: August 11, 2006 11:28PM

Guenter,

<<I have the Profiles in the K-Meleon folder>>

You're right. That is the way to do this if you want a single profile and all your info in the program files, not in some kind of windows folder and registry. This using KM 1.0 of course, as KM 0.9 did it the old-fashioned way. I just wish the default for installing KM 1.0 was to use the Profile, not the multi-user method as I do NOT want anything floating around in the registry or the C:\windows, etc., etc., folders.

N

Re: [1.0RC1] Search Engine Configure
Posted by: guenter
Date: August 12, 2006 07:36PM

I also do not like that default but most windows users have nt based windows now.

Real novice user have a brand new machine and XP nowadays. The default is for xp.
It would be hard if any of them runs into trouble that he cannot solve alone.

ppl that have win98 or such have experinace or got their machine and system
from someone that knows enought to solve problems.
So it makes sence to have this default.

Re: [1.0RC1] Search Engine Configure
Posted by: ndebord
Date: August 13, 2006 03:30AM

Guenter,

Perhaps so. Sure would like to see a toggle that says, CHOOSE: Single Profile or Multiple and if you choose SINGLE, it would automatically use the PROFILE.INI routine. As it is, if you do not drill down beneath a check mark, the setup routine automatically gives you a multiple.

N

Re: [1.0RC1] Search Engine Configure
Posted by: alain aupeix chez wanadoo fr
Date: August 14, 2006 09:20AM

Hum...

I have tried to change the value dynamically, but NSIS doesn't allows it. I thought to test the win version (what I do now) and modify the default value, but I haven't found a solution to do it.

The test version setup, just keeps the state of the last install when installing over an old install, and restore this state. This version allows also to keep (by renaming) the old profiles to make some file recovering (bookmarks, s file, ...). This version also allows to install corrrectly the Loader , by always having the loader installed in K-Meleon folder. The install is then made or not by putting the loader shortcut in user's Startup folder (by default : Loader not loaded.This test version is also multi-language (4 now).

The future version (I hope, but no date) will include autodownload of locale setup.

In the future, I hope to have a NSIS plugin to allow deleting, writing or modifying lines in config files not to have to keep manually old parameters, and to make install completely transparent for basics users.

For the message, it's possible to open a message just before the components page, but too much boxes are a little ennoying

A+

K-Meleon forum is powered by Phorum.