Thread Rating:
  • 0 Vote(s) - 0 Average
Struggling to get the action I want!
#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.
Reply
#2
its
<onclick>ActivateWindow(VideoFiles,sharename)</onclick>

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



Struggling to get the action I want!00