Classification icons (1 Viewer)

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
I was trying to make some adjustments to my Aeon wide skin. I'd like to have the icons for the classification for the selected program. In the US you have classification like PG-13 etc. same here (ofcourse with different names)
When I browse the TVDatabase I see the classification's been added and I can access them with the following bit of xml

<control>
<description>Kijkwijzer</description>
<type>label</type>
<id>32</id>
<posX>750</posX>
<posY>135</posY>
<align>right</align>
<font>font13</font>
<label>#TV.Guide.Classification</label>
<textcolor>ffffffff</textcolor>
</control>

This is offcourse not what I want, it just spits out some horribly formed string my TVGuide provider is giving me. This was just for testing purposes. Then I tried (couple of different forms) :

<control>
<description>Kijkwijzer</description>
<type>image</type>
<id>32</id>
<posX>750</posX>
<posY>135</posY>
<texture>#TV.Guide.Classification</texture>
<width>100</width>
<height>100</height>
</control>

still no luck. This "<texture>#TV.Guide.Classification</texture>" was just a wild shot. Wasn't expecting it to work.
When I look in the XML I see the following

<rating system="Kijkwijzer">
<value>seks</value>
<icon src="http:\\static.tvgids.nl\gfx\kw\seks.gif"/>
</rating>

So I can access the value of the rating, but not the icon that's associated with it. Anyway to get this to work?
 

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
To any of you who are interested, I've got it fixed as far as MP will let me.

This is the bit of xml skin I came up with

<control>
<description>Kijkwijzer</description>
<type>image</type>
<posX>770</posX>
<posY>105</posY>
<texture>kijkwijzer/#TV.Guide.Classification.png</texture>
<width>75</width>
<height>75</height>
</control>

the classification icons have to be in this directory:
MPDir\skin\the_skin_that_youre_using\media\ kijkwijzer (you could edit the skin to use another subdir of media)

It's only gonna show 1 of the icons since MP only parses the first value and puts it in the DB

You need to name the classification icons exactly the same as the classification description in order to make it work
 

Users who are viewing this thread

Top Bottom