Kodi Community Forum
Struggling to get the action I want! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: PM3.HD (https://forum.kodi.tv/forumdisplay.php?fid=75)
+----- Thread: Struggling to get the action I want! (/showthread.php?tid=59570)



Struggling to get the action I want! - nluk100 - 2009-10-12

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.


- Jezz_X - 2009-10-12

its
<onclick>ActivateWindow(VideoFiles,sharename)</onclick>

sharename = the title of a share you have created in xbmc not the actual path to smb


- nluk100 - 2009-10-12

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


- rwparris2 - 2009-10-12

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


- nluk100 - 2009-10-12

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


- nluk100 - 2009-10-12

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.


- Jezz_X - 2009-10-12

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