You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

3. April 2003, 13:40:42

Opera Software

haavard

Desktop QA

Posts: 16056

Ini file tweaking

This is important for people who want to customize Opera by editing the .ini files. It was posted to the opera.beta newsgroup by a developer.

==================================================

How things are now:

The program directory has a "defaults" folder with the following files:

standard_toolbar.ini
minimal_toolbar.ini
standard_menu.ini
standard_keyboard.ini
standard_mouse.ini

DON'T TOUCH THOSE!

Instead, you put your stuff in your "profile" folder, under
the subfolders named "toolbar", "menu", "mouse" and "keyboard".

Everything except menus are now configurable from inside Opera, and Opera
will automaticly put all that in the those subfolders.

IMPORTANT: Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.

This is important so that when upgrading later, you will at least
get our newest setup in those areas where you didn't change things.

(the premade minimal_toolbar.ini is an example of this)

There will soon be possible to upload your changed files to my.opera.com,
for others to download, just the same way as with skins,
and that's why it's very important that those changed setup files
only contains sections that is actually different from "standard.ini"

Note that you can now define custom mouse gestures everywhere, to do
anything!

Happy tweaking.

==================================================
The Opera Ninja recommends a forum search to find answers to your questions ninja

Håvard Kvam Moen @ My Opera / Twitter

3. April 2003, 14:08:19

alkaliguru

Almost Certainly Bored

Posts: 1742

I think I love you.
I've gone off signatures.

3. April 2003, 14:54:48

elcid73

has a user's POV

Posts: 470

oh man.. me too.
Usability, Human Computer Interaction, Human Factors, and the design of everyday things at:
http://my.opera.com/usability

3. April 2003, 14:55:00

Tiram

Inveterate cat lover

Posts: 576

Another one stumbles out of the closet;)
The knuckles, the horrible knuckles!
Tiramteatret

3. April 2003, 14:58:51

elcid73

has a user's POV

Posts: 470

Where does the search.ini go? profile directory?
Usability, Human Computer Interaction, Human Factors, and the design of everyday things at:
http://my.opera.com/usability

3. April 2003, 14:59:34

elcid73

has a user's POV

Posts: 470

Never mind.. (i'm dumb)
Usability, Human Computer Interaction, Human Factors, and the design of everyday things at:
http://my.opera.com/usability

3. April 2003, 16:51:22

Moderator

sgunhouse

Volunteer

Posts: 64825

Question - a similar situation possible with the skin? If you create a new button (for example, Opera just created Rewind, Info and Notes), there won't be any corresponding image in the skin file. (I use small images in my UI and the BreezeII skin, all three of those have no images in BreezeII - yet.)

We need a similar setup for skin.ini, that you will be able to add or modify the skin - had several requests for removing the background image from a skin also. If there were also a profile\skin.ini, then when you create a new toolbar button you can also provide an image for it (or two images to include ".large").

3. April 2003, 17:57:40

JD5000

Posts: 91

Customizable mouse gestures.. Oh how I love Opera.. bigsmile

4. April 2003, 02:12:58

Ketlan

Posts: 4909

Quote from Haavard
'There will soon be possible to upload your changed files to my.opera.com,
for others to download, just the same way as with skins...'

And people wonder why Opera users love it so much. It ain't just the browser, that's for sure. What an excellent company - can we buy shares?smile

Ketlan

4. April 2003, 14:18:03

Moderator

sgunhouse

Volunteer

Posts: 64825

I was just looking at profile/toolbar/minimal_toolbar(1).ini, seems to me they'll need some work before uploading/downloading is really feasible ...

What would be nice is something along the lines of a diff in Linux, or more like a .reg file in Windows - something which lists additions, subtractions and modifications rather than whole sections. Currently, if all you do is change a toolbar to Images only, the entire toolbar shows up in the file rather than only the change. If you're trying to add one button and don't want to change your entire toolbar, the current format won't allow that. You're stuck with the button author's entire toolbar, until you modify it yourself - and if you already had a different custom button which the author didn't have, you lose your button to gain his.

4. April 2003, 21:40:08

bubbah

Be-elzebub !!

Banned user

It is truly refreshing to see the quick evolution from 7.0-->7.1b with CLEAR evidence this dialog is being carefully read by the developers...

i.e.

the "add here" dialog is back for bookmarks!
the bookmark pulldown is back
the ini files are still customizable (I quickly was able to acomplish this with Haarvard's timely and clear post at the top here...!!
Opera is growing and getting bigger...but still retains its ability to be responsive to the users!!
GREAT!!
from the Garden State using Win7hp desktop & Win7pro netbook with opera10.62 & oMob10 on wm6.1 on motosurf a3100 touchscreen

5. April 2003, 05:52:56

terrapin

Posts: 37

I noticed that the ini files are getting a major overhaul especially in 7.10b2. Are there any plans for a FAQ or guide detailing the changes and what settings are available? Along the lines of the system administrators guide published for earlier versions.

5. April 2003, 17:07:26 (edited)

Tricolor

@opera.fan.club

Posts: 728

I think we've got the most tweakers-friendly browser on earth!! smile Thanks again to Opera developers.

BTW, I have a problem about editing menu.ini. In order to switch between couple of encodings easily, I added the following in my profile menu folder, but O7.10 doesn't recognize the submenu that I created.

[Document Popup Menu]
Submenu, "Encoding", Document Popup Encoding Menu

[Document Popup Encoding Menu]
Item, "Automatic selection" = Set encoding, ""
Item, "Shift-JIS" = Set encoding, "shift_jis"
Item, "EUC-JP" = Set encoding, "euc-jp"

Is this a bug? It works fine in O7.03.

Anyone have the same problem?

5. April 2003, 18:00:13

Nixer

Librarian

Posts: 948

From v7.0x, there are some changes, as i noticed. Instead words, like "euc-jp" there are numbers. Every option has an unique number. You have to do like that:

[Document Popup Menu]
Submenu, "Encoding", Document Popup Encoding Menu

[Document Popup Encoding Menu]
Item, 51750= Set encoding, ""
Item, 51778= Set encoding, "shift_jis"
Item, 51781= Set encoding, "euc-jp"

It should work.
Pozdrawiam,
Marcin Malinowski
http://malin.net.pl

5. April 2003, 18:12:44

bubbah

Be-elzebub !!

Banned user

Haarvard...you say to leave the "defaults" alone, but in order to add a "close page" dialog to the right click menu in a page, you have to add it into the "standard_menu.ini" as the terms "--------------------n Item, 53027 = Close page" where "n" is the numeric for the item placement in the browser window list. This .ini file gets overwritten with upgrades. Should the entire "standard_menu.ini" be copied into the "menu" folder in profiles then? Or what? Also, could someone post a listing of the Item numbers for editing of .ini files for convenience instead of looking around for the one you want and using cut/paste? ...thanks!
from the Garden State using Win7hp desktop & Win7pro netbook with opera10.62 & oMob10 on wm6.1 on motosurf a3100 touchscreen

5. April 2003, 19:51:11

anibanging

Posts: 8

Am I blind? I see the defaults folder in the program directory but no profiles folder. Am i looking in the wrong place?

Running 7.1 on Windows 2000 by the way

6. April 2003, 08:01:32

Thomaschah

Posts: 1192

Originally posted by Tricolor
I think we've got the most tweakers-friendly browser on earth!! smile Thanks again to Opera developers.

BTW, I have a problem about editing menu.ini. In order to switch between couple of encodings easily, I added the following in my profile menu folder, but O7.10 doesn't recognize the submenu that I created.

[Document Popup Menu]
Submenu, "Encoding", Document Popup Encoding Menu

[Document Popup Encoding Menu]
Item, "Automatic selection" = Set encoding, ""
Item, "Shift-JIS" = Set encoding, "shift_jis"
Item, "EUC-JP" = Set encoding, "euc-jp"

Is this a bug? It works fine in O7.03.

Anyone have the same problem?



I am an Opera user in Korea. I also need to put a similar one to, but that doesn't work for me either.

6. April 2003, 08:15:32

Thomaschah

Posts: 1192

Originally posted by Nixer
From v7.0x, there are some changes, as i noticed. Instead words, like "euc-jp" there are numbers. Every option has an unique number. You have to do like that:

[Document Popup Menu]
Submenu, "Encoding", Document Popup Encoding Menu

[Document Popup Encoding Menu]
Item, 51750= Set encoding, ""
Item, 51778= Set encoding, "shift_jis"
Item, 51781= Set encoding, "euc-jp"

It should work.




I put the above in named standard_menu.ini in my "profile" folder, under the subfolders named "menu". That doesn't work.

6. April 2003, 08:37:50

Opera Software

haavard

Desktop QA

Posts: 16056

Did you select it from "File/Preferences/Toolbars and menus"? And avoid the name "standard_anything" for customized ini files.
The Opera Ninja recommends a forum search to find answers to your questions ninja

Håvard Kvam Moen @ My Opera / Twitter

6. April 2003, 09:06:26

Tricolor

@opera.fan.club

Posts: 728

Nixer,
I copied yours into my custom_menu.ini and it worked. But I read somewhere in this forum that the five digit numbers are only necessary for non-English language files, so I tried with mine again and it worked too! I have no idea why the submenu didn't pop up yesterday... Did I make a typo??? o Anyway thanks for the help and for your time.

bubbah,
I think there's no need to copy the entire menu.ini. I only saved the sections that I made changes to (e.g. [Document Popup Menu]) as custom_menu.ini in the menu folder and it works fine.

anibanging,
Help > About Opera shows the path to your profile folder.

Thomas,
Both Nixer's and mine work for me now. Good luck.

6. April 2003, 13:36:29

Thomaschah

Posts: 1192

Thanks Tricolor and Haavard. This is just what I wanted, and the really localized Opera does.

[Document Pop Menu]

Item, 51750 = Set encoding, ""
-------------------1
; Doublebyte far east
Submenu, 157840, Korean Encoding Menu = Set encoding, "euc-kr"
Submenu, 157880, Japanese Encoding Menu = Set encoding, "AUTODETECT-JP" | Set encoding, "shift_jis" | Set encoding, "iso-2022-jp" | Set encoding, "euc-jp"
Submenu, 157890, Chinese Encoding Menu = Set encoding, "AUTODETECT-ZH" | Set encoding, "big5" | Set encoding, "big5-hkscs" | Set encoding, "euc-tw" | Set encoding, "gbk" | Set encoding, "gb18030" | Set encoding, "hz-gb2312" | Set encoding, "iso-2022-cn"
-------------------2

7. April 2003, 19:21:32

bubbah

Be-elzebub !!

Banned user

wanted a key on the window browser right click dialog...there is nothing in my profiles/menu directory ...added the key into the standard_menu.ini file and it works fine. Copied that file to profiles/menu directory, renamed it custom_menu.ini & restarted opera 7.03 ...no dice!! doesn't have the key. Put it back in defaults and renamed back to standard_menu.ini ...there's the key!! What have I misunderstood?
from the Garden State using Win7hp desktop & Win7pro netbook with opera10.62 & oMob10 on wm6.1 on motosurf a3100 touchscreen

11. April 2003, 14:00:02

punix

Posts: 3

translating/encoding types

hi,

i just want to know, how to translate the toolbar.ini and co correctly to german, so i can use special characters like ä,ö,ü in it. i dont know the syntax. it would be very nice, if someone could show me an example. (like from other countries like french.. they need the specialcharacters too)

thx

12. April 2003, 00:04:17

FrankL

Posts: 208

originally posted by alias

Can't choose alternate keyboard file

Trying to change the ini file used for keyboard shortcuts from "Preferences->Mouse and Keyboard" has no effect: The default ini file is being re-selected when pressing 'Apply' or 'OK'.


PLEASE HELP!!!!!!!!!
Top 2 Opera Modification Wishes:
1. Collapsable Folders in the "Bookmark Properties" window
2. Option to Minimize to System Tray
Both were granted and then taken away!!!

12. April 2003, 15:02:09

Tricolor

@opera.fan.club

Posts: 728

Trying to change the ini file used for keyboard shortcuts from "Preferences->Mouse and Keyboard" has no effect: The default ini file is being re-selected when pressing 'Apply' or 'OK'.


I have the same problem, and it happens only with keyboard setup. What's going on? sad

12. April 2003, 18:10:44

Lillian

Posts: 4

im out of ideas, i have this:

; Menu specification file for Opera 7.0

[Version]
File Version=2

[Info]
Name=Custom_menu


[Link Popup Menu]
Item, "Copy Text" = Copy
Item, 67389 = Open link
Item, 53018 = Open link in new page
Item, "Open in background page" = Open link in background page
--------------------1
Item, "Open in new window" = Open link in new window
Item, "Open in background window" = Open link in background window
Item, "Open in Internet Explorer" = Execute program, "iexplore","%u"
--------------------2
Item, 50418 = Add link to bookmarks
Item, 50216 = Copy link
Item, 50761 = Save link
Item, 67350 = Download url
--------------------4
Submenu, 22235, Document Popup Menu

in my opera7.1 profile->menu folder, named it custom_menu.ini (also in dos so its definatly a valid .ini file) but when I go to my opera preferences->toolbar and menu's section, the whole file doesnt show up. Only the Opera standard file shows up. What am i missing here? Anybody who can help?

12. April 2003, 18:55:55

bhusan

Posts: 493

I use SDI. I want Ctrl + Tab go through windows rather than Pages. I changed "Tab + Ctrl" to "Cycle to next window" under "Application", using O7 edit window from preferences. it didn't work. what could I be doing wrong?

12. April 2003, 22:35:31

bhusan

Posts: 493

Univarsal Browsing?

I saw the note about being able to upload INI files to my.opera.com. Why not make it auto downloadable?
When opera starts, its can ask for username. Based on it, it will download all your custom settings. This would include all the skin/menu/kb/mouse settings. Not only that also, bookmarks. I have installed opera on 4 different computers. Everytime a new version comes out, I have to customize all of them manually. That doesn't happen very often but its still pain.

Being able to have universal bookmarks will be a major point I think. You can use opera on any computer in the world and it will look/behave just like you want everytime.

Of course this will require a lot resources so this could be for the registered users! ( HINT OS! more money!! )

This is like "roaming profile" in Netscape but instead of local servers, this will be coming from Internet.

Being able to get bookmarks from anywhere in the world will be so cool! ( Sans private bookmark folder you can make for your secret bookmarks )

13. April 2003, 05:38:36

Moderator

sgunhouse

Volunteer

Posts: 64825

Lillian - did you try including a full Info section? Description, author, version, and name? (Not certain why there's a [Version] section and also a Version= line under [Info], but there is.)

What you have is almost like what I did with the Edit Widget Popup Menu, except that I have a full [Info] section and mine works. So that would seem to be the problem.

13. April 2003, 08:53:50 (edited)

Lillian

Posts: 4

sgunhouse: thnx for the reply. smile


edit: ok, it works now. I ended up manually changing the path to the menu configuration to "profile/menu/custom_menu.ini" in my opera6.ini file. The custom_menu.ini still doesnt show up in my preferences but as long as it works, im happy smile

13. April 2003, 07:55:22

Lillian

Posts: 4

*yawn* must be early, i got an error while trying to edit my post. Then a new post:

obviously i meant to say
"The odd thing is that when i edited the standard_menu to see if it worked at all, the changes inthere also didnt give effect."

13. April 2003, 14:28:28

tim71

Posts: 54

Nope - doesn't work with menu customisation. This "unfinished" window in "preferences" ( the one with only one button on aside - "delete" ) shows only "Opera standard", no matter whatever I do.

Would it been wiser try to finish this part of UI before adding it to "final" release???

We have to wait for 7.11 ( or something like that ) to come out? Or won't we??

13. April 2003, 21:56:37

liam

Posts: 53

hi folks. you'll have to forgive my ignorance here, but i've been using Opera for all of three or four days and i'm a bit of a newbie in general wink
first let me just say how impressed i am with this browser. i've only used the internet for two years and have used ie the entire time, but now i've seen just how, um...special Opera is...
in short, it's a sweet browser.
but anyway, the reason i'm posting here is because i've been reading bits and pieces about customizing Opera and it's all pretty interesting, but i'm getting confused. frankly, i'm not real bright.
i really need a couple of basic things explained to me if anyone can take the time out to help. and i'd be most grateful if anyone did.
in the quote at the beginning of the thread, 'profile' folders are talked about. my question is, am i supposed to have a folder in my main Opera7 folder called 'profile'? cause i don't have one. do i just make it? along with the subfolders mentioned? and do i put a copy of the five .ini files mentioned in there? i'm lost here.
and then, i don't know which ini files i need to edit sad
what i'm trying to do, is (1.)move all of the eight drop down menus from the very top panel (minus the bookmarks) all together into one button that can be placed on the far left of the main bar.
(2.)i also want to move the bookmarks drop down menu into a button format and put it on the main bar next to my new button.
this done, i can rid myself of that top panel, allowing for a nice minimal set up and more room for webpages smile
i have so far got it as minimised as i can, still with the buttons and fields that i would like to keep (see the attachment) but i'll be a very happy man when i work out the things mentioned above.
a friend over at another forum has helped, but his help came before reading this thread and it involves editing the default ini files, so i thought i'd try you guys.
much thanks in advance if anyone has the time to help out a newbie Opera fan smile

14. April 2003, 09:11:07 (edited)

bhusan

Posts: 493

liam:
Can't help you much with editing INIs as I haven't tried yet. But you may want to try full screen mode. I have attached the screen shot of how I prefer using opera.
I have to go through some keystrokes to have everything look like the screen-shot. Thats because Opera turns off every toolbar when you go to Full-Screen mode.

First, use customize menu and drag all the icons u want to status bar. I dragged the address bar, clock and Go as those are the only ones I ever need. Everything else is in mouse gestures or KB shortcuts.

Hit F11.
All the menu options are available with ALT.
Alt + v + a + t to bring page bar on top.
Alt + v + s + b to bring status bar on bottom
Ctrl + F7 for scroll bars.
F6 to type in URL.

I have to do this everytime I get in/out of full screen mode. Remember not to exit from Full screen mode as weird things may happen on next start. If it happens, select start with homepage from the startup dialog.

Other thing to note is that on win98, full screen mode hijacks the windows toolbar from other applications. You will have to Win + D to desktop. Win Toolbar will now work properly, untill you go to opera again.

Also, everytime you go to full screen mode, the win toolbar will be visible encroaching on Opera workspace. Alt + Tab to other application and then come back. Opera will kick the toolbar and reclaim the screen property.

Setting up everything may not look convenient, but once you get used to it, you won't have any trouble remembering those Alt Sequences.

14. April 2003, 14:09:04

Trof

Blüe frëak

Posts: 420

I start with my first customizing, something easy for beginning, adding "Open with IE" to my custom Link Popup Menu with this "Execute program.." ad so on and I read I have not to name the Item, but to assign it yet unused number.. so I write there:
Item, 88888 = Execute program etc.
And that item appeared in the menu, but like an empty line, it hasn't a name.. then I realized I have to name that item, I found this could be done in the english.lng file, so I write there a new line
88888="Open with IE"

After all this it worked, and had a name in the menu.

So in Opera 7.10 I have to create a new item entry (the number) and then name this entry in the lng file? As I understood this is different from how it was before, right?
Or did I anything wrong?
Opera 11/12 on WinXP/Opera Mobile on Google Nexus S

Our country has a serious deficiency in lighthouses. I assume the main reason is that we have no sea.

15. April 2003, 00:54:02

ECM

Posts: 122

OK, how exactly would I maintain my skins/customizations/menus/toolbars (removed and added)etc. when upgrading to 7.10 and please don't tell me that I have to re-do everything... sad

15. April 2003, 05:05:02

bettyvanwall

Posts: 101

Seem to have opposite problem?

I have put a menu.ini file (named mymenu) into the Opera\Profiles\Menu directory. It correctly shows up in Preferences-Toolbars and Menus underneath Opera Standard, in contrast to a couple of the above postings. However, when I select it, that's ALL that shows up for the particular menu (in my case, right-click "Open in IE" in the Document Pop-up menu). The rest of the Document Pop-up menu in Opera default does not appear.

Instructions are NOT to copy the entire default menu into the Profiles directories, but how do I get this to work properly?

15. April 2003, 16:11:31

the_frogger

Posts: 101

Kudos on the new "profiles" procedure for maintaining user customizations when upgrading to new versions! It is also super that Opera now allows customization of mouse gestures, but so far I have been unable to achieve the results I wanted.

I open in background more than anything else, and I wanted to put this on the left-hold-right-click operation. I used:

FlipForward = Open link in background page

...and this appears to do nothing. I then tried:

FlipForward = Open link in background page | Duplicate page

...and this always does the Duplicate page action, even when performed on a link.

Can anyone help out here? Are the "Flip" gestures just not programmed to operate on links?

15. April 2003, 16:17:12

the_frogger

Posts: 101

Re: Seem to have opposite problem?

Originally posted by bettyvanwall
Instructions are NOT to copy the entire default menu into the Profiles directories, but how do I get this to work properly?



Opera replaces "the entire section" when it uses your custom menu file. So what you want to do, is grab the section you wish to modify from the standard_menu file, then add your "Open with IE" action.

15. April 2003, 17:12:38

bubbah

Be-elzebub !!

Banned user

must rename the ini file and edit the first few lines in it to identify it and then select it in profiles/menus
from the Garden State using Win7hp desktop & Win7pro netbook with opera10.62 & oMob10 on wm6.1 on motosurf a3100 touchscreen

15. April 2003, 18:10:32

bettyvanwall

Posts: 101

Re: Re: Seem to have opposite problem?

Originally posted by the_frogger
Opera replaces "the entire section" when it uses your custom menu file. So what you want to do, is grab the section you wish to modify from the standard_menu file, then add your "Open with IE" action.



Worked like a charm, thank you very much.

17. April 2003, 15:35:36

spacewanderer

Posts: 60

Re: Ini file tweaking in 7.10

Originally posted by haavard

How things are now:
The program directory has a "defaults" folder with the following files:
...
DON'T TOUCH THOSE!
Instead, you put your stuff in your "profile" folder, under
the subfolders named "toolbar", "menu", "mouse" and "keyboard".
...
IMPORTANT: Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.
...
There will soon be possible to upload your changed files to my.opera.com,
for others to download, just the same way as with skins,
...
Happy tweaking.



Thank you guys, I really LOVE Opera! This idea is GREAT in concept.
Its implementation, however, leaves much to be desired. Yet...

0. The bug with keyboard settings has already been reported. I confirm. Clean install of 7.10, you have to edit the defaults for changes to take effect.

1. You instruct to include only changes in customized .ini files. However, when you duplicate a setting for editing, it is duplicated entirely, with all the defaults! On the other hand, duplication makes customization easier (it is easier to edit than to copy-and-paste). I suggest a "cleanup" option, that will compare the customized file with the default file and strip away from the latter everything that is similar. And maybe it is worthwhile to get rid of the "Duplicate" button altogether, since it creates confusion. See also 3, below.

2. As far as I understand now, the files are handled section per section. While quite appropriate with menus, this approach is faulty with keyboard shortcuts and the like. Suppose I want to add (or worse, to remove) a few shortcuts - do I have to copy the entire [Application] section? This just defeats the whole idea. I think it is more appropriate to implement another, maybe DIFF-like approach, with extended syntax that will allow not only to replace an .ini section, but also to modify it (include, remove, and replace individual lines), maybe like that:


keyboard.ini
[application]
+<line to add>
-<line to remove, contracted form should be available (only option, no value)>
<line to replace>


Where order matters, e.g., menus, added items may be placed at the end. If someone wants it other way, she will have to rewrite the section.

3. I think that another strategy should be used in the interface settings. Because .ini files are tweaks and do not (should not, at least) include defaults, the dialogs (the way they look now) are quite misleading. It would be better if they listed all customizations with a checkbox beside each one. Turning off all of them means reverting to the defaults. Options may be included to merge, split, and edit (with an external editor) customized files, as well as to duplicate individual sections from defaults, so that they can be edited and saved as customizations. This is a superior method of creating new ones than to duplicate everything and then remove what is not needed.

OF COURSE, for all these wonders to be implemented, Opera should have a fast and bugless INI-engine and a CLEAR policy of resolving conflicts between options in:
- files in \defaults folder
- files in the Opera folder
- files in the subfolders thereof, such as \skin
- files in the \profile folder and its subfolders
- files in the windows\profiles\<...> folders {if any, I have not tested that in 7.10}.

As for now, it is pretty confusing what is stored where, and what priority each location has. And - why are there so many locations to store configuration files? Maybe it can all be merged down to two things - defaults and profile (single or multi-user)?

I do realize that implementing all this takes time. But we have patience, even more so if we know the developers are trying hard to get things right. And I think we all should say a big THANK YOU for beginning to make Opera even more flexible.

21. April 2003, 22:18:33

Shandra

Some Being

Posts: 4239

Hi Folks,

All Thumbs up for this - before I read this sticky my intention was to post a question why my modifications for the menu are not recognized by Opera...
And now I am totally convienced that my decision to pay again for 7 (updating from 6) was the right decision wink
Thanks - wonderfull concept!

CU,
SHAnDRA
Experience all is of use, save one, to have angered a friend. Break thy heart for a maid; another shall love thee anon. The gold shall return thou didst spend, Ay, and thy beaten back grow whole. But friendship's grave is the end.
[THE WISDOM OF MERLYN by WILFRID SCAWEN BLUNT]

26. April 2003, 01:07:51

baudbarf

Posts: 2

Alright, I know for a fact that the INI files have percent codes (%u, %t, etc) which hold special context values at runtime. I'm getting frustrated rapidly in the pursuit of some sort of DOCUMENTATION of them!!! Is there a public resource anywhere on this planet that discloses a complete list of these codes and their meanings? And more importantly, and I the only one who thinks there should be such a thing?

I mean, the Opera guys said "You can now edit your menu.ini!", and I said,"Great, so I can now add all the functionless options I want!" Come on, guys, if you're gonna make the menu.ini alterable, at least document what these tokens mean so we can actually USE them!

And as for the rest of you, how the heck have you NOT asked this question yet!?

27. April 2003, 23:14:36

closet geek

- moderator -

Posts: 9899

wizard party party

cg

3. May 2003, 16:57:21

user1

Posts: 26

Im getting a little confused atm - been playing with the menu.ini, following the guidelines given earlier, but i've run into two small problems..

1) I want to create a menu item that takes me to a certain URL, but i cant seem to get it to display anything but an icon (the page itself loads fine, but theres no description in the menu..)

2) since i started playing, the rightclick - open in background has stopped working. the mouse gesture for it works, as does crtl+shift+click, but...


can anyone give me a clue on what ive gone and done??

14. May 2003, 12:31:40

Ernst-24

rebmem tnelis

Posts: 280

@user1:

-> 1)
Did you add a line like
item, 12345=...
?

Did you also edit the language file in the program's folder?
(Insert a line (correct section!) with item number and your description.)

-> 2)
Perhabs, you entered a wrong typed command?

I think it's best that you upload your configuration files.
(menu.ini, mouse.ini, keyboard.ini, whatever you edited)
Ernst
*ready to learn*

Opera Preview/Beta/RC Tester

14. May 2003, 19:39:15

user1

Posts: 26

MANY THANKS!!

Ive managed to fix the problems thanks - just managed in the last few hours!

I seem to be making a hash of a lot of things at the moment :S

The history thing was sorted simply by copying the line from the navigation menu - they were absolutly identical to look at, but obviously not...

opera fixed the secong problem all by itself - just happened over time. I still have no idea what the problem was, but its gone now..

im sure there are creatures living in my file system..

thanks again ernst!

5. June 2003, 07:40:19

Ronald Wee

Posts: 14

Which .ini files in which folders and other questions

Havarrd wrote:

“The program directory has a "defaults" folder with the following files:
standard_toolbar.ini
minimal_toolbar.ini
standard_menu.ini
standard_keyboard.ini
standard_mouse.ini
DON'T TOUCH THOSE! Instead, you put your stuff in your "profile" folder, under
the subfolders named "toolbar", "menu", "mouse" and "keyboard".”

What I’m confused unlcear about is:

1) Do you mean that I should create a folder named ‘profile’ in Opera’s install directory as in: C:\Program Files\Opera7\Profile\
or is he referring to the Windows Profile folder in
C:\WINDOWS\Application Data\Opera\OPERA7\profile ?

If it’s the former, then I should create the following folders:
C:\Program Files\Opera7\Profile\toolbar.ini etc
C:\Program Files\Opera7\Profile\menu.ini

If its the later, then I create:
C:\WINDOWS\Application Data\Opera\OPERA7\profile\toolbar.ini etc

2) Can I rename ‘Profile’ to something more descriptive like C:\Program Files\Opera7\RonProfile\

3) Havaard also wrote: “Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.”

So for example I wanted to be able to open a webpage in Mozilla from Opera, I would insert only one line in the desired section of the menu.ini file:
Item, "Open in Mozilla" = Execute program, " of mozilla", "%u" .

Thanks in advance for any help

5. June 2003, 10:12:59

Ernst-24

rebmem tnelis

Posts: 280

Re: Which .ini files in which folders and other questions

Originally posted by Ronald Wee
Havarrd wrote:

“The program directory has a "defaults" folder with the following files:
standard_toolbar.ini
minimal_toolbar.ini
standard_menu.ini
standard_keyboard.ini
standard_mouse.ini
DON'T TOUCH THOSE! Instead, you put your stuff in your "profile" folder, under
the subfolders named "toolbar", "menu", "mouse" and "keyboard".”

What I’m confused unlcear about is:

1) Do you mean that I should create a folder named ‘profile’ in Opera’s install directory as in: C:\Program Files\Opera7\Profile\
or is he referring to the Windows Profile folder in
C:\WINDOWS\Application Data\Opera\OPERA7\profile ?

If it’s the former, then I should create the following folders:
C:\Program Files\Opera7\Profile\toolbar.ini etc
C:\Program Files\Opera7\Profile\menu.ini

If its the later, then I create:
C:\WINDOWS\Application Data\Opera\OPERA7\profile\toolbar.ini etc


(See also my answer to your 2nd point.)
If you chose to have opera using user profiles,
then there will be a folder for every user who starts opera(!). The first time a user starts opera, opera will create this profile folder.

Example: Opera has been installed into 'C:\Program Files\Opera'.
Using WinNT (in C:\WinNT) opera will create/use a profile folder in
C:\WinNT\Profiles\%UserName%\*\Opera\Opera\profile
Using Win2000 it will be at
C:\#\%UserName%\*\Opera\Opera\profile

(* has to be substituted with the folders name for application specific files, but I don't know its exact name... I was using the german version)
(# has to be substituted with the folders name for documents and settings {the profiles folder for NT}, but I don't know its exact name... I was using the german version)

If you have a look at it you'll recognize, that the profile is divided into the 'profile' folder and the 'mail' folder. Within the 'profile' folder you can find subfolders named 'keyboard', 'menu', 'mouse' and so on.
These folders carry the user's definitions and setting for keyboard, menu, ...

--
If you press [Alt]-p to open the preferences dialog, choose 'Toolbars and menus' or 'Keyboard and mouse'. Then have a klick on one of the 'Duplicate' buttons. Finally take a look at the above mentioned folders where you can find your new preference file.

2) Can I rename ‘Profile’ to something more descriptive like C:\Program Files\Opera7\RonProfile\


Yes,
just edit 'opera6.ini' in your profile folder.
You'll find entries for several folders and files. Define them the way you like smile

___
Add:
You may even choose an absolute other path (e.g. "G:\my stuff\o settings\THIS ONE\" or simply "H:\O\1")
All you have to do is to tell opera where to find the settings.
Add the "/settings" option to the link to opera
e.g. "C:\Program Files\Opera\Opera.exe" /settings "H:\O\1\opera6.ini"


Or if you are a friend of very short folder and file names:
Rename your files and folders and
C:\Proggies\O7\O.exe /settings H:\O\1\O.ini wink



3) Havaard also wrote: “Only CHANGES needs to be put in such new files. Opera
will read from standard files the sections that are missing.”

So for example I wanted to be able to open a webpage in Mozilla from Opera, I would insert only one line in the desired section of the menu.ini file:
Item, "Open in Mozilla" = Execute program, " of mozilla", "%u" .


Simplified spoken, yes.

Hope this helps.
Ernst
*ready to learn*

Opera Preview/Beta/RC Tester

6. June 2003, 06:30:47

Ronald Wee

Posts: 14

Re: Re: Which .ini files in which folders and other questions

Originally posted by Ernst-24
If you have a look at it you'll recognize, that the profile is divided into the 'profile' folder and the 'mail' folder. Within the 'profile' folder you can find subfolders named 'keyboard', 'menu', 'mouse' and so on.
These folders carry the user's definitions and setting for keyboard, menu, ...

--
If you press [Alt]-p to open the preferences dialog, choose 'Toolbars and menus' or 'Keyboard and mouse'. Then have a klick on one of the 'Duplicate' buttons. Finally take a look at the above mentioned folders where you can find your new preference file.



There should be a 'Duplicate' & 'Rename' button for the menu section too.

Forums » General Opera topics » Customizing Opera