2013-07-27, 23:24
I have been having an issue with something on my skin's homepage and after banging my head against it for a week I have begun to suspect the issue is with the SkinWidgets plug in (version 0.0.25).
I have added an assortment of panels to my homescreen and the user can choose which they prefer. I do this via call outs to an include file like this-
The include then call content like this-
This seems to work fine for sections using the built in recent function (LatestAlbums) but for several of the sections using the SkinWidgets (as seen above), it doesn't matter which panel is active after a few loads the content disappears. The panel is still working (if I remove the visible tags in the content area I can see the blank panels), but the label, label2, onclick and thumb content it is supposed to be showing just "goes away". I have tried changing the content IDs to see if there is a conflict somewhere, but that didn't help. I have looked through the debug logs and I don't see any errors or warnings that could be causing this (I would be happy to provide them if you like). Do you guys have any thoughts on what might be doing this?
Any help or insight would be greatly appreciated.
I have added an assortment of panels to my homescreen and the user can choose which they prefer. I do this via call outs to an include file like this-
PHP Code:
<control type="panel" id="67">
<include condition="Skin.String(Home.MusicPanel,Recent)">Panel_Albums_Recent</include>
<include condition="Skin.String(Home.MusicPanel,Recommended)">Panel_Albums_Recommended</include>
<include condition="Skin.String(Home.MusicPanel,RandomAlbum)">Panel_Albums_Random</include>
<include condition="Skin.String(Home.MusicPanel,RandomArtist)">Panel_Artists_Random</include>
<include condition="Skin.String(Home.MusicPanel,RandomSong)">Panel_Songs_Random</include>
</control>
The include then call content like this-
PHP Code:
<include name="Panel_Albums_Recommended">
<animation type="Conditional" condition="Control.IsVisible(87)">
<effect type="slide" start="0,0" end="190,0" time="300" easing="out" tween="cubic"/>
</animation>
<posx>810</posx>
<posy>310</posy>
<width>560</width>
<height>320</height>
<preloaditems>2</preloaditems>
<onup>67</onup>
<ondown>67</ondown>
<onleft condition="Control.IsVisible(87)">87</onleft>
<onleft condition="!Control.IsVisible(87)">679</onleft>
<onright>66</onright>
<orientation>horizontal</orientation>
<pagecontrol>98</pagecontrol>
<focusposition>0</focusposition>
<scrolltime tween="cubic" easing="out">400</scrolltime>
<itemlayout width="160" height="160">
<control type="image">
<posx>9</posx>
<posy>0</posy>
<width>155</width>
<height>155</height>
<texture border="2">backings/tile.png</texture>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<posx>9</posx>
<posy>0</posy>
<width>155</width>
<height>155</height>
<texture border="5">backings/tile2.png</texture>
<aspectratio>stretch</aspectratio>
<visible>Skin.HasSetting(TileBackground)</visible>
</control>
<control type="image">
<posx>14</posx>
<posy>5</posy>
<width>145</width>
<height>145</height>
<texture blend="false" fallback="defaults/DefaultAlbumCover.png">$INFO[ListItem.Thumb]</texture>
<aspectratio>scale</aspectratio>
</control>
</itemlayout>
<focusedlayout width="160" height="160">
<control type="image">
<posx>9</posx>
<posy>0</posy>
<width>155</width>
<height>155</height>
<texture border="2">general/accent.png</texture>
<aspectratio>scale</aspectratio>
</control>
<control type="image">
<posx>9</posx>
<posy>0</posy>
<width>155</width>
<height>155</height>
<texture fallback="defaults/DefaultAlbumCover.png">$INFO[ListItem.Thumb]</texture>
<aspectratio>scale</aspectratio>
<bordertexture border="5">general/accent.png</bordertexture>
<bordersize>5</bordersize>
<animation effect="fade" start="50" time="400" easing="out" tween="square">Focus</animation>
</control>
<control type="group">
<posx>0</posx>
<posy>0</posy>
<animation effect="fade" start="50" time="400" easing="out" tween="square">Focus</animation>
<control type="image">
<posx>9</posx>
<posy>115</posy>
<width>155</width>
<height>40</height>
<texture>general/accent.png</texture>
</control>
</control>
<control type="label">
<label> $INFO[ListItem.Label2][COLOR Black] $INFO[ListItem.Label][/COLOR]</label>
<posx>10</posx>
<posy>121</posy>
<height>30</height>
<width>153</width>
<font>button_bold</font>
<align>left</align>
<animation effect="fade" delay="200" start="0" time="300" easing="out" tween="square">Focus</animation>
</control>
</focusedlayout>
<content>
<item id="11">
<label>$INFO[Window.Property(RecommendedAlbum.1.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.1.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.1.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.1.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.1.Path))</visible>
</item>
<item id="12">
<label>$INFO[Window.Property(RecommendedAlbum.2.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.2.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.2.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.2.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.2.Path))</visible>
</item>
<item id="13">
<label>$INFO[Window.Property(RecommendedAlbum.3.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.3.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.3.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.3.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.3.Path))</visible>
</item>
<item id="14">
<label>$INFO[Window.Property(RecommendedAlbum.4.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.4.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.4.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.4.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.4.Path))</visible>
</item>
<item id="15">
<label>$INFO[Window.Property(RecommendedAlbum.5.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.5.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.5.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.5.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.5.Path))</visible>
</item>
<item id="16">
<label>$INFO[Window.Property(RecommendedAlbum.6.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.6.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.6.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.6.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.6.Path))</visible>
</item>
<item id="17">
<label>$INFO[Window.Property(RecommendedAlbum.7.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.7.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.7.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.7.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.7.Path))</visible>
</item>
<item id="18">
<label>$INFO[Window.Property(RecommendedAlbum.8.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.8.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.8.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.8.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.8.Path))</visible>
</item>
<item id="19">
<label>$INFO[Window.Property(RecommendedAlbum.9.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.9.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.9.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.9.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.9.Path))</visible>
</item>
<item id="20">
<label>$INFO[Window.Property(RecommendedAlbum.10.Title)]</label>
<label2>$INFO[Window.Property(RecommendedAlbum.10.Artist)]</label2>
<onclick>$INFO[Window.Property(RecommendedAlbum.10.Play)]</onclick>
<thumb>$INFO[Window.Property(RecommendedAlbum.10.Thumb)]</thumb>
<visible>!IsEmpty(Window.Property(RecommendedAlbum.10.Path))</visible>
</item>
</content>
</include>
This seems to work fine for sections using the built in recent function (LatestAlbums) but for several of the sections using the SkinWidgets (as seen above), it doesn't matter which panel is active after a few loads the content disappears. The panel is still working (if I remove the visible tags in the content area I can see the blank panels), but the label, label2, onclick and thumb content it is supposed to be showing just "goes away". I have tried changing the content IDs to see if there is a conflict somewhere, but that didn't help. I have looked through the debug logs and I don't see any errors or warnings that could be causing this (I would be happy to provide them if you like). Do you guys have any thoughts on what might be doing this?
Any help or insight would be greatly appreciated.