Help - Search - Members - Calendar
Full Version: Question About Menu.ml Edit
SE-NSE Forums > SE Firmware > Newbie Forum
comic_fan_pz
Hi. Today I tried to make some changes in my menu so I wanted to make a submenu from internet services with grid icons like the main menu. In the new submenu i paste 3 icons - Opera Mini, Skype and the Internet Services (which change for the submenu). I wrote the xml code in the menu.ml and upload it in the phone. The result wasn't good. The other icons disappeared, there where just the Play Now and my submenu. When I opened the submenu it was list menu (not like the main menu). Unselected icon was on left, selected on right and in the middle the name of icons. Opera and Internet Services
links work but the skype not. So can someone help me! I've seen somewhere in YouTube phone with that kind of menu. Here is the code i changed:

Where is my mistake?????
CODE
<element id="Internet">
          <label type="name" textid="MENU_INTERNETSERVICES_TXT"/>
          <icon pos="unselected" source="file">icon2_unselected.png</icon>
          <icon pos="selected" source="file">icon2_selected.png</icon>
          <menu id="Menu_InternetServices_Id">
            <label type="title" textid="MENU_INTERNETSERVICES_TXT"/>
                    <element id="InternetServices">
          <label type="name"><text>Opera Mini</text></label>
          <icon pos="unselected" source="file">opera_unselected.png</icon>
          <icon pos="selected" source="file">opera_selected.png</icon>
          <link type="java" javasuitename="Opera Mini" javasuitevendor="Opera Software ASA" javasuitepoint="Browser"/>
        </element>
            <element id="InternetServices">
          <label type="name"><text>Skype</text></label>
          <icon pos="unselected" source="file">skype_unselected.png</icon>
          <icon pos="selected" source="file">skype_selected.png</icon>
          <link type="java" javasuitename="Skype" javasuitevendor="Skype Limited" javasuitepoint="Browser"/>
        </element>
            <element id="InternetServices">
          <label type="name" textid="OLP_TITLE_TXT"/>
          <icon pos="unselected" source="file">internet_unselected.png</icon>
          <icon pos="selected" source="file">internet_selected.png</icon>
          <link type="internal"/>
        </element>
            </element>


And last. What is the code line for changing w800 menu.ml file to k750i because my k750i is not flashed and it gives me error when opens the menu.
cchaos
If the above code is the whole of your menu.ml, Im not surprised that the other icons have disappeared.

Upload an original menu.ml and I will try to see what I can do with it (or someone else will)
comic_fan_pz
No it is not. It's just the part I modified. Here is the file. I made some changes in IDs of the new objects and made the menu style like the main menu - DesktopTopMenuGFX2.

http://www.4shared.com/file/122357398/18d8ea42/menu.html
pakraider
just from a quick glance... you dont have a </menu> tag... and it might not like the fact that multiple <element> tags share the same ID (InternetServices)
comic_fan_pz
The menu tag must be pasted after the two lines of the menu.ml file

<?xml version="1.0" encoding ="UTF-8" standalone="yes"?>
<mml ver="1.0">

and in the end of the file.

Between must be the all information about icons. I think..


EDIT:

I don't know what is happening but after the code of the submenu i change in the menu.ml code all other tags for icons after the internet one stop working deactivate. I think there is somewhere mistake in the IDs and maybe the menu id MENU_INTERNETSERVICES_TXT can't exist.

EDIT 2:

One problem solved! I forgot to paste the end tag </menu> for the submenu, thats why the other icons disappear. Sorry for my little knowledge pakraider but I thought the menu tags are just at the begining and in the end. But other problem still unsolved - the name of the internet icon disappear and when i click on it my phone crashes.
comic_fan_pz
I fixed the code. All was depending on IDs and forgoten </menu> tag. Just last question - how can I convert w800 menu.ml to k750i menu.ml because that error when pressing the menu is awful.
comic_fan_pz
Aahhh glare.gif , I'm so bored with trying to convert the menu.ml file. It shows that "Errors occuur in the menu.ml file. This may render the menu unusable." I think that is not for w800, I think it is somewhere in the code i wrote even the menu works pretty well. Here is the part I changed and the menu.ml file. Please help!

CODE
<element id="InternetServices">
          <label type="name"> <text>Internet</text> </label>
          <icon pos="unselected" source="file">icon2_unselected.png</icon>
          <icon pos="selected" source="file">icon2_selected.png</icon>
          <menu id="Menu_InternetServices_Id" layout="DesktopTopMenuGFX2">
            <label type="title" textid="MENU_INTERNETSERVICES_TXT"/>
           <element id="InternetServices">
             <label type="name"> <text>Opera Mini</text> </label>
             <icon pos="unselected" source="file">opera_unselected.png</icon>
             <icon pos="selected" source="file">opera_selected.png</icon>
             <link type="java" javasuitename="Opera Mini" javasuitevendor="Opera Software ASA" javasuitepoint="Browser"/>
        </element>
   <element id="InternetServices">
     <label type="name"> <text>Skype</text> </label>
     <icon pos="unselected" source="file">skype_unselected.png</icon>
     <icon pos="selected" source="file">skype_selected.png</icon>
     <link type="java" javasuitename="Skype" javasuitevendor="Skype Limited" javasuitepoint="a"/>
        </element>
   <element id="InternetServices">
     <label type="name" textid="OLP_TITLE_TXT"/>
     <icon pos="unselected" source="file">internet_unselected.png</icon>
     <icon pos="selected" source="file">internet_selected.png</icon>
     <link type="internal"/>
        </element>
            </menu>
            </element>


EDIT: It can be from multiple element id like pakraider told but if i change it, for example "Opera_Id", "OperaMini" or many others, when I try to open the submenu the phone crashes because (i think) that IDs don't exist. So the IDs must be "real" and unique but with what name if they mustn't be multiply?

Download: MENU.ML

Thanks in advance!
comic_fan_pz
I reached the conclusion from where is the error at last

<element id="UNIQUE1">
<label type="name"> <text>Opera Mini</text> </label>
<icon pos="unselected" source="file">opera_unselected.png</icon>
<icon pos="selected" source="file">opera_selected.png</icon>
<link type="java" javasuitename="Opera Mini" javasuitevendor="Opera Software ASA" javasuitepoint="Browser"/>
</element>
<element id="UNIQUE2">
<label type="name"> <text>Skype</text> </label>
<icon pos="unselected" source="file">skype_unselected.png</icon>
<icon pos="selected" source="file">skype_selected.png</icon>
<link type="java" javasuitename="Skype" javasuitevendor="Skype Limited" javasuitepoint="a"/>
</element>
<element id="UNIQUE3">
<label type="name" textid="OLP_TITLE_TXT"/>
<icon pos="unselected" source="file">internet_unselected.png</icon>
<icon pos="selected" source="file">internet_selected.png</icon>
<link type="internal"/>
</element>

Where writes UNIQUE the element ID must be unique but how to be unique if I can't use other used for the menu.ml and can't make my own (random). Is it possible to make something.

The other thing I have some fear is that lines are correct

<element id="InternetServices">
<label type="name"> <text>Internet</text> </label>
<icon pos="unselected" source="file">icon2_unselected.png</icon>
<icon pos="selected" source="file">icon2_selected.png</icon>
<menu id="Menu_InternetServices_Id" layout="DesktopTopMenuGFX2">
<label type="title" textid="MENU_INTERNETSERVICES_TXT"/>

Any ideas?
comic_fan_pz
I found three element IDs witch I don't use and changed it with the multiple InternetServices. I also changed the menu id with that New_Container. So I uploaded the menu.ml file but the same error appear again argue.gif . The menu works normaly but that error which appears on every clicking of the menu button is ... censored.gif Is the mistake is in the green one. Please someone with menu.ml knowledge (or more correctly - XML) help me with that new sub menu! help.gif

<element id="New_Container">
<label type="name"> <text>Internet</text> </label>
<icon pos="unselected" source="file">icon2_unselected.png</icon>
<icon pos="selected" source="file">icon2_selected.png</icon>
<menu id="New_Container" layout="DesktopTopMenuGFX2">
<label type="title" textid="MENU_INTERNETSERVICES_TXT"/>
<element id="Camera">
<label type="name"> <text>Opera Mini</text> </label>
<icon pos="unselected" source="file">opera_unselected.png</icon>
<icon pos="selected" source="file">opera_selected.png</icon>
<link type="java" javasuitename="Opera Mini" javasuitevendor="Opera Software ASA" javasuitepoint="Browser"/>
</element>
<element id="DemoMode_Id">
<label type="name"> <text>Skype</text> </label>
<icon pos="unselected" source="file">skype_unselected.png</icon>
<icon pos="selected" source="file">skype_selected.png</icon>
<link type="java" javasuitename="Skype" javasuitevendor="Skype Limited" javasuitepoint="a"/>
</element>
<element id="InternetServices">
<label type="name" textid="OLP_TITLE_TXT"/>
<icon pos="unselected" source="file">internet_unselected.png</icon>
<icon pos="selected" source="file">internet_selected.png</icon>
<link type="internal"/>
</element>
</menu>
</element>
Boysie
Do you realize you have posted 6 posts in a row! Use the edit button. glare.gif

Edit: Sorry, 5 posts. Thanks thomas tongue.gif
thomassafca
QUOTE (Boysie99 @ 2009-08-02 22:11) *
Do you realize you have posted 6 posts in a row! Use the edit button. glare.gif


offtopic.gif
It were "only" 5 posts in a row lol.gif
comic_fan_pz
Yes I posted many posts (somewhere with edits). But please help me with the problem I have because yesterday I spent all day in trying fixing that code. Please help!
comic_fan_pz
I have the same program and use it for some purposes, but the problem (I think) can't be solved with it. It is somewhere in the code in my previous post because if I upload the original menu.ml it works correctly. Also checked phone codename and it's right - Clara (k750i). I start feeling fear that custom sub menus can't exist if they are not real (somewhere in the phone)

P.S. Thanks for the reply

EDIT:

At last! tongue.gif partyhat.gif The problem is completely solved! The only thing which I had to change (andwhere my mistake) was the <label type="title" textid="MENU_INTERNETSERVICES_TXT"/> with <label type="title" textid="MENU_GENERAL_SETTINGS_TXT"/> because MENU_INTERNETSERVICES_TXT doesn't exist and the textid's on label type line can be multiple so I choose one from the settings menu. After I uploaded it there were no problems or errors. I think the problem was in that the menu id wasn't ligitimed because when I tried to set my fast button from the settings it doesn't work. Clicking but nothing happens. But now I can choose even the apps for fast buttons which I paste in my submenu. cool.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.