XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Skin Help and Support > MediaStream

MediaStream Subforum for the MediaStream skin (and mods for/of it).

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-09-25, 23:04   #1
midgetspy
Fan
 
Join Date: Jan 2008
Location: Edmonton, Canada
Posts: 444
midgetspy is on a distinguished road
Default Linking scripts on home menu? (AMT)

Is the easiest way to do this to replace the XML of one of the existing entries I'm not using (like Programs) or is there a relatively simple way of adding extra entries to the home menu? I have 2 scripts (AMT and Home Theater) that I'd like to add to my home menu if it's possible.

Thanks.
midgetspy is offline   Reply With Quote
Old 2008-09-26, 00:03   #2
Aenima99x
Fan
 
Join Date: Aug 2007
Location: California
Posts: 511
Aenima99x is on a distinguished road
Default

A menu item for AMT can be added by adding the following to the home.xml - find the <!-- Main Menu --> section and add it in after the DVD Button content.

Code:
          <item id="11">
            <description>AMT Button</description>
            <label>AMT</label>
            <onclick>XBMC.ActivateWindow(videofiles,plugin://video/Apple Movie Trailers II)</onclick>
          </item>
Home Theater or any other menu items can be added the same way, just make sure to change the id to 12 or higher, set the description and label appropriately and then change the onclick setting to reflect the appropriate plugin name.
Aenima99x is offline   Reply With Quote
Old 2008-09-26, 00:07   #3
midgetspy
Fan
 
Join Date: Jan 2008
Location: Edmonton, Canada
Posts: 444
midgetspy is on a distinguished road
Default

Fantastic, thanks for the quick response!
midgetspy is offline   Reply With Quote
Old 2008-09-26, 06:10   #4
tret
Member
 
Join Date: Aug 2008
Posts: 52
tret is on a distinguished road
Default

Good tip, I can confirm that this does work.

Is there any way to set backgrounds for additional items above #12? I know there is no option in the gui but is it possible to edit a config file to achieve this?

Thanks,
Rob
tret is offline   Reply With Quote
Old 2008-09-26, 06:55   #5
mst3kroqs
Junior Member
 
Join Date: Aug 2004
Posts: 15
mst3kroqs is on a distinguished road
Default Custom Background for Custom Button

Quote:
Originally Posted by tret View Post
Good tip, I can confirm that this does work.

Is there any way to set backgrounds for additional items above #12? I know there is no option in the gui but is it possible to edit a config file to achieve this?

Thanks,
Rob
I was just about the ask the same thing. As far as I can determine, the existing backgrounds are probably in the packed gfx files (textures/richer.xpr).

I think I see how Home.xml could be modified to display a new image for the new button, and I have an image, I'm just not sure how to get the skin engine to reference it given it isn't in (in my case) richer.xpr ...

-m
mst3kroqs is offline   Reply With Quote
Old 2008-09-26, 11:16   #6
midgetspy
Fan
 
Join Date: Jan 2008
Location: Edmonton, Canada
Posts: 444
midgetspy is on a distinguished road
Default

Hmm, I ran into a bit of a snag.

Home Theater worked properly because it's installed as a plugin. AMT, though, is installed as a script (and must be to interact properly with the Home Theater plugin). I couldn't figure out how to call the AMT script properly. The closest I came was:

XBMC.RunScript(q://scripts/Apple Movie Trailers/default.py)

This did run the script, but it created and used UserData\script_data\AMT.db instead of UserData\script_data\Apple Movie Trailers\AMT.db. How can I call this script properly? When I do it from within the skin I go:

System -> Scripts -> Apple Movie Trailers
midgetspy is offline   Reply With Quote
Old 2008-09-26, 11:36   #7
skunkm0nkee
Team Razorfish
 
skunkm0nkee's Avatar
 
Join Date: Aug 2007
Location: London
Posts: 1,823
skunkm0nkee is on a distinguished road
Default

Quote:
Originally Posted by mst3kroqs View Post
I was just about the ask the same thing. As far as I can determine, the existing backgrounds are probably in the packed gfx files (textures/richer.xpr).

I think I see how Home.xml could be modified to display a new image for the new button, and I have an image, I'm just not sure how to get the skin engine to reference it given it isn't in (in my case) richer.xpr ...

-m
Try putting the image in the media folder, that should work (I think)
skunkm0nkee is offline   Reply With Quote
Old 2009-05-10, 17:58   #8
pandapop
Junior Member
 
Join Date: Oct 2008
Posts: 7
pandapop is on a distinguished road
Default

Quote:
Originally Posted by midgetspy View Post
Hmm, I ran into a bit of a snag.

Home Theater worked properly because it's installed as a plugin. AMT, though, is installed as a script (and must be to interact properly with the Home Theater plugin). I couldn't figure out how to call the AMT script properly. The closest I came was:

XBMC.RunScript(q://scripts/Apple Movie Trailers/default.py)

This did run the script, but it created and used UserData\script_data\AMT.db instead of UserData\script_data\Apple Movie Trailers\AMT.db. How can I call this script properly? When I do it from within the skin I go:

System -> Scripts -> Apple Movie Trailers

Anyone know how to link a SCRIPT not a plugin and not have the error above? been looking and playing around with no luck
pandapop is offline   Reply With Quote
Old 2009-05-10, 21:03   #9
HexusOdy
Aeon Group
 
Join Date: Sep 2008
Posts: 362
HexusOdy is on a distinguished road
Default

Hmm, I've tried this for the iplayer plugin and done the obvious and change the AMT link to iPLayer but while I now have the iPlayer link on the Home menu when I click it it does nothing

Can anyone help?

EDIT

Figured it out, the link should be

XBMC.ActivateWindow(MyVideofiles,plugin: etc

instead of

XBMC.ActivateWindow(videofiles,plugin: etc

Last edited by HexusOdy; 2009-05-10 at 22:45.
HexusOdy is offline   Reply With Quote
Old 2009-05-16, 17:30   #10
Laser78
Junior Member
 
Laser78's Avatar
 
Join Date: May 2009
Posts: 8
Laser78 is on a distinguished road
Default

what I do and I worked until just now ...
after which I worked, it updates the XBMC to version 9.04 and now I see the buttons but not working!
know the reason?








Laser78 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:06.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project