SE-NSE Forums:

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

Question About Menu.ml Edit Rate Topic: -----

#1 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Post icon  Posted 02 August 2009 - 09:17 AM

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?????
<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.

This post has been edited by comic_fan_pz: 02 August 2009 - 10:05 AM

Posted Image
0

#2 User is offline   KK§cchaos Icon

  • se-nse's best staff member 09
  • Icon
  • View gallery
  • Group: Super Moderators
  • Posts: 6,470
  • Joined: 11-September 07
  • Gender:Male
  • Location:N51o03'19.25", W1o19'29.42"
  • Mobile:Helen, Wilma, Linda
  • Tutorials Submitted:2

Posted 02 August 2009 - 10:07 AM

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)

This post has been edited by cchaos: 02 August 2009 - 10:07 AM

0

#3 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 02 August 2009 - 10:32 AM

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.c...8ea42/menu.html

This post has been edited by comic_fan_pz: 02 August 2009 - 10:35 AM

Posted Image
0

#4 User is offline   pakraider Icon

  • Makes Se-nse
  • PipPipPipPip
  • Group: Members
  • Posts: 485
  • Joined: 26-January 07

Posted 02 August 2009 - 10:42 AM

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)

Posted Image
Posted Image

0

#5 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 02 August 2009 - 10:56 AM

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.

This post has been edited by comic_fan_pz: 02 August 2009 - 02:28 PM

Posted Image
0

#6 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 02 August 2009 - 12:54 PM

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.
Posted Image
0

#7 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 02 August 2009 - 01:58 PM

Aahhh <-< , 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!

<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!

This post has been edited by comic_fan_pz: 02 August 2009 - 05:09 PM

Posted Image
0

#8 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 02 August 2009 - 05:23 PM

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?

This post has been edited by comic_fan_pz: 02 August 2009 - 05:23 PM

Posted Image
0

#9 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 02 August 2009 - 07:55 PM

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: . The menu works normaly but that error which appears on every clicking of the menu button is ... :censored: 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:

<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>

This post has been edited by comic_fan_pz: 02 August 2009 - 08:02 PM

Posted Image
0

#10 User is online   Boysie Icon

  • Member of the year 2009 - Scotsboys' Award winner 2009
  • Icon
  • Group: SE-NSE Awards '09
  • Posts: 9,522
  • Joined: 31-July 08
  • Gender:Male
  • Location:Approx. 6.8 miles down the M3 from cchaos or exactly 268 miles from Corman! :D
  • Mobile:Pimped Wilma!

Posted 02 August 2009 - 08:03 PM

Do you realize you have posted 6 posts in a row! Use the edit button. <-<

Edit: Sorry, 5 posts. Thanks thomas :p

This post has been edited by Boysie99: 02 August 2009 - 08:13 PM

For helpful posts please use this...Posted Image...Thanks! ;)
Keeping K series modding alive: Amir_82111, mc_kibel & Pro - Respect! ;)
0

#11 User is online   thomassafca Icon

  • Don't know a custom title
  • Icon
  • Group: VIP
  • Posts: 2,280
  • Joined: 13-April 08
  • Gender:Male
  • Location:The Netherlands
  • Mobile:W995, S500@W580, V630@W660

Posted 02 August 2009 - 08:07 PM

View PostBoysie99, on 2009-08-02 22:11, said:

Do you realize you have posted 6 posts in a row! Use the edit button. <-<


:offtopic:
It were "only" 5 posts in a row :lol:
0

#12 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 03 August 2009 - 07:57 AM

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!
Posted Image
0

#13 User is online   Boysie Icon

  • Member of the year 2009 - Scotsboys' Award winner 2009
  • Icon
  • Group: SE-NSE Awards '09
  • Posts: 9,522
  • Joined: 31-July 08
  • Gender:Male
  • Location:Approx. 6.8 miles down the M3 from cchaos or exactly 268 miles from Corman! :D
  • Mobile:Pimped Wilma!

Posted 03 August 2009 - 08:47 AM

Try this...
http://forums.se-nse...t...st&id=34678
For helpful posts please use this...Posted Image...Thanks! ;)
Keeping K series modding alive: Amir_82111, mc_kibel & Pro - Respect! ;)
0

SE-NSE

#14 User is offline   comic_fan_pz Icon

  • Non-se-nse
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: 22-March 08
  • Gender:Male
  • Location:Bulgaria, Pazardzhik

Posted 03 August 2009 - 09:18 AM

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! :p :party: 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:

This post has been edited by comic_fan_pz: 03 August 2009 - 10:29 AM

Posted Image
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic
  • Bookmark

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users