Struggling to get the action I want!

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nluk100 Offline
Junior Member
Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #1
OK, so I've changed the titles for the home page menu option to point to various directories on my SMB share, but I'm not happy with the way the videos / films menu items work.

I would like them to go directly to the smb share, but instead it defaults to my videos and I have to back track to then navigate to the films.

I think I need a new folder for my films to separate them from the videos, but have no idea where to start??

Here is the code snippets from my home.xml (I'm using the std PMIII)
Code:
<control type="button" id="2">
                    <description>MyVideos normal push button</description>
                    <posx>53</posx>
                    <posy>28</posy>
                    <width>12</width>
                    <height>14</height>
                    <hitrect x="45" y="15" w="220" h="40" />
                    <label>Movies</label>
                    <font>special13</font>
                    <onclick>ActivateWindow(MyVideos,smb://LAN/films)</onclick>
                    <onleft>98</onleft>
                    <onright>96</onright>
                    <onup>9</onup>
                    <ondown>4</ondown>
                    <texturefocus>home-focus.gif</texturefocus>
                    <texturenofocus>-</texturenofocus>
                    <textoffsetx>30</textoffsetx>
                </control>

and

Code:
<control type="button" id="5">
                    <description>My Videos normal push button</description>
                    <posx>53</posx>
                    <posy>119</posy>
                    <width>12</width>
                    <height>14</height>
                    <hitrect x="45" y="105" w="200" h="40" />
                    <label>3</label>
                    <font>special13</font>
                    <onclick>ActivateWindow(MyVideos,smb://LAN/videos)</onclick>
                    <onleft>98</onleft>
                    <onright>96</onright>
                    <onup>4</onup>
                    <ondown>3</ondown>
                    <texturefocus>home-focus.gif</texturefocus>
                    <texturenofocus>-</texturenofocus>
                    <textoffsetx>30</textoffsetx>
                </control>
Thanks for any help in advance.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
its
<onclick>ActivateWindow(VideoFiles,sharename)</onclick>

sharename = the title of a share you have created in xbmc not the actual path to smb
(This post was last modified: 2009-10-12 14:15 by Jezz_X.)
find quote
nluk100 Offline
Junior Member
Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #3
Thanks, but I already have that

Code:
<onclick>ActivateWindow(MyVideos,smb://LAN/films)</onclick>

The problem I have is that it never goes to my films DIR, it ends up in Videos (I have both Films & (home)Videos in the same folder - I'm trying to find a way to create a new folder to stick films in there??
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #4
Read it closer:
Jezz_X Wrote:sharename = the title of a share you have created in xbmc not the actual path to smb

ActivateWindow(VideoFiles,Yeah!)
ActivateWindow(VideoFiles,Kids)
ActivateWindow(VideoFiles,Wrastlin')

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote
nluk100 Offline
Junior Member
Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #5
Aah, I see it now - thank you for putting me straight!

I have no idea where to configure the share titles in xbmc, a quick search mentioned editing the config.xml file and adding a bookmark like so;
Code:
<bookmark>
<name>films</name>
<path>smb://LAN/films</path>
</bookmark>

Let me have a fiddle around with this file!

Thanks for your help (both of you!)
(This post was last modified: 2009-10-12 20:27 by nluk100.)
find quote
nluk100 Offline
Junior Member
Posts: 14
Joined: Apr 2008
Reputation: 0
Post: #6
OK, so I don't have a config.xml file ??

I've looked in guisettings.xml & sources.xml for existing boomarks, but can't find any.

Could you point me in the right direction please (I'm an xbox user btw).

Thank you.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #7
when you go to video files there should be an "Ad Source" button if not open the context menu and it should be there as well. Click it and add a source to your share
find quote