Kodi Community Forum

Full Version: Struggling to get the action I want!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
its
<onclick>ActivateWindow(VideoFiles,sharename)</onclick>

sharename = the title of a share you have created in xbmc not the actual path to smb
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??
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')
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!)
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.
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