2012-11-05, 22:18
Hi
I am a Noob when it comes to XBMC, and very much so with skinning, and righting code, but I'm trying to learn. I'm sorry if my questions are very basic and I seem a bit simple.
I thought it would be good to start by trying to edit an existing skin in a minor way, so I have been trying to alter the function of some of the buttons on the home screen in AEON MQ4.
I don't really have a lot of use for the images function, so wanted to change this to take me to a specific folder which holds my kids movies. To do this I have tried to follow the instructions here.
I have my sources set out as follows:
<sources>
<programs>
<default pathversion="1"></default>
</programs>
<video>
<default pathversion="1"></default>
<source>
<name>MoviesDownloadsNAS</name>
<path pathversion="1">smb://FREENAS/mediavolumeshare1/XBMC Media/Movies/</path>
</source>
<source>
<name>TVShowsNAS</name>
<path pathversion="1">smb://FREENAS/mediavolumeshare1/XBMC Media/TV Shows/</path>
</source>
<source>
<name>KidsMovies</name>
<path pathversion="1">smb://FREENAS/mediavolumeshare1/XBMC Media/Kids/Kids Movies/</path>
</source>
</video>
<music>
<default pathversion="1"></default>
</music>
<pictures>
<default pathversion="1"></default>>
</pictures>
<files>
<default pathversion="1"></default>
</files>
</sources>
And I believe the 'ActivateWindow' paths I am looking to alter for in MQ4 are found in the IncludesMainMenu.xml.
i have altered the code to what I believed to be correct as follows:
StringCompare(skin.s<include name="menu_pictures">
<label fallback="31008">$INFO[skin.string(pictures_label)]</label>
<icon>$VAR[value_mainmenubg_pictures]</icon>
<onclick condition="![Skin.HasSetting(custommode) | Skin.HasSetting(furnitureselectormode)]">ActivateWindow(videos,KidsMovies,return)</onclick>
<onclick condition="Skin.HasSetting(custommode)">Skin.SetString(custom_pos,menu_pictures)</onclick>
<onclick condition="Skin.HasSetting(custommode)">Skin.SetString(custom_bg,pictures_bg)</onclick>
tring(vpl7),mainmenu5) | StringCompare(skin.string(vpl8),mainmenu5) | StringCompare(skin.string(vpl9),mainmenu5) | StringCompare(skin.string(vpl10),mainmenu5)]] + [!StringCompare(skin.string(sublibraryvideos),pos0) | Skin.HasSetting(custommode)]</visible>
</item>
However, when I go into XBMC and select this button, I am taken to a blank list, and not the KidsMovies folder on my share.
I'm sorry if I'm not explaining myself clearly, but does anyone have any idea where I'm going wrong?
I know that MQ4 is a much more advanced skin that that which is used in the tutorial, and I am most defiantly trying to run before I can crawl, but It would be brilliant if I could change this functionality.
Sorry again if you feel I am waiting your valuable time.
Thanks
I am a Noob when it comes to XBMC, and very much so with skinning, and righting code, but I'm trying to learn. I'm sorry if my questions are very basic and I seem a bit simple.
I thought it would be good to start by trying to edit an existing skin in a minor way, so I have been trying to alter the function of some of the buttons on the home screen in AEON MQ4.
I don't really have a lot of use for the images function, so wanted to change this to take me to a specific folder which holds my kids movies. To do this I have tried to follow the instructions here.
I have my sources set out as follows:
<sources>
<programs>
<default pathversion="1"></default>
</programs>
<video>
<default pathversion="1"></default>
<source>
<name>MoviesDownloadsNAS</name>
<path pathversion="1">smb://FREENAS/mediavolumeshare1/XBMC Media/Movies/</path>
</source>
<source>
<name>TVShowsNAS</name>
<path pathversion="1">smb://FREENAS/mediavolumeshare1/XBMC Media/TV Shows/</path>
</source>
<source>
<name>KidsMovies</name>
<path pathversion="1">smb://FREENAS/mediavolumeshare1/XBMC Media/Kids/Kids Movies/</path>
</source>
</video>
<music>
<default pathversion="1"></default>
</music>
<pictures>
<default pathversion="1"></default>>
</pictures>
<files>
<default pathversion="1"></default>
</files>
</sources>
And I believe the 'ActivateWindow' paths I am looking to alter for in MQ4 are found in the IncludesMainMenu.xml.
i have altered the code to what I believed to be correct as follows:
StringCompare(skin.s<include name="menu_pictures">
<label fallback="31008">$INFO[skin.string(pictures_label)]</label>
<icon>$VAR[value_mainmenubg_pictures]</icon>
<onclick condition="![Skin.HasSetting(custommode) | Skin.HasSetting(furnitureselectormode)]">ActivateWindow(videos,KidsMovies,return)</onclick>
<onclick condition="Skin.HasSetting(custommode)">Skin.SetString(custom_pos,menu_pictures)</onclick>
<onclick condition="Skin.HasSetting(custommode)">Skin.SetString(custom_bg,pictures_bg)</onclick>
tring(vpl7),mainmenu5) | StringCompare(skin.string(vpl8),mainmenu5) | StringCompare(skin.string(vpl9),mainmenu5) | StringCompare(skin.string(vpl10),mainmenu5)]] + [!StringCompare(skin.string(sublibraryvideos),pos0) | Skin.HasSetting(custommode)]</visible>
</item>
However, when I go into XBMC and select this button, I am taken to a blank list, and not the KidsMovies folder on my share.
I'm sorry if I'm not explaining myself clearly, but does anyone have any idea where I'm going wrong?
I know that MQ4 is a much more advanced skin that that which is used in the tutorial, and I am most defiantly trying to run before I can crawl, but It would be brilliant if I could change this functionality.
Sorry again if you feel I am waiting your valuable time.
Thanks