Kodi Community Forum
Help with coding - 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: Quartz (https://forum.kodi.tv/forumdisplay.php?fid=141)
+---- Thread: Help with coding (/showthread.php?tid=111438)



Help with coding - scrolling - 2011-10-02

I'm trying to personalize the media info 2 view in Quartz and have some questions.
I am changing this
<control type="label" description="Label3">
<visible>!Container.Content(Episodes)</visible>
<posx>10</posx>
<posy>38</posy>
<height>20</height>
<width>220</width>
<font>Label2</font>
<aligny>top</aligny>
<scroll>false</scroll>
<textcolor>Silver</textcolor>
<label>]$INFO[ListItem.Duration,, $LOCALIZE[12391] ]</label>
</control>
to this
<control type="label" description="Label3">
<visible>!Container.Content(Episodes)</visible>
<posx>10</posx>
<posy>38</posy>
<height>20</height>
<width>220</width>
<font>Label2</font>
<aligny>top</aligny>
<scroll>false</scroll>
<textcolor>Silver</textcolor>
<label>$INFO[ListItem.Year,, ยท ]$INFO[ListItem.Duration,, $LOCALIZE[12391] ]</label>
</control>

and all seemed to have gone well it's showing up in the movies like I want accept it''s also showing up in the TV shows as well which i don't want.

[Image

Image

I hope I provided enough information and any help would be greatly appreciated.


- pecinko - 2011-10-02

scrolling Wrote:I'm trying to personalize the media info 2 view in Quartz and have some questions.

Change

<visible>!Container.Content(Episodes)</visible>

to

<visible>Container.Content(Movies)</visible>

If you need it just for movies.

Post about your progress.


- scrolling - 2011-10-02

Thanks that worked great.

How do I add the mpaa rating image?


- pecinko - 2011-10-03

scrolling Wrote:Thanks that worked great.

How do I add the mpaa rating image?

Dharma or pre-Eden?


- scrolling - 2011-10-03

pre-Eden


- pecinko - 2011-10-03

Here ya go

https://github.com/pieh/xbmc/commit/b618a7245cc08495323c26a2fb8673128caeb684


- scrolling - 2011-10-04

Thanks


- scrolling - 2011-10-05

I'm stumped since I'm not a program of any kind I have know Idea of what to do with that code you provided. I apologize for bugging you.


- pecinko - 2011-10-05

scrolling Wrote:I'm stumped since I'm not a program of any kind I have know Idea of what to do with that code you provided. I apologize for bugging you.

Well you have to use checks from the link I provided in order to show MPAA images when those conditions are being met. E.g. show PG img when string 'Rating PG' is found anywhere in MPAA label.

Check:

PHP Code:
<variable name="rating">
    
<
value condition="substring(listitem.mpaa,Rated G)">mpaa_general</value>
<
value condition="substring(listitem.mpaa,Rated PG) + !substring(listitem.mpaa,Rated PG-13)">mpaa_pg</value>
<
value condition="substring(listitem.mpaa,Rated PG-13)">mpaa_pg13</value>
<
value condition="substring(Listitem.mpaa,Rated R)">mpaa_restricted</value>
<
value condition="substring(Listitem.mpaa,Rated NC)">mpaa_nc17</value>
</
variable

Image:

PHP Code:
<texture>$VAR[rating,flagging/ratings/,.png]</texture

I am doing some view revamping ATM so and some of the changes you're after will probably be a part of it, though I can not give ETA just yet.


RE: Help with coding - ggeegino - 2013-03-17

Hi im fairly new to coding but im very familiar with SSH i just want to know how i can ReName the Movies titile in the main home menu id rather it just say Videos? Can someone please help me with this? i tried to go to Home.xml but there was so much stuff names Movies that i didnt want to mess anything up? Again its just the "Movies" title in the home menu next to pictures, music, exct... thanks in advance


RE: Help with coding - pecinko - 2013-03-17

(2013-03-17, 05:28)ggeegino Wrote: Hi im fairly new to coding but im very familiar with SSH i just want to know how i can ReName the Movies titile in the main home menu id rather it just say Videos? Can someone please help me with this? i tried to go to Home.xml but there was so much stuff names Movies that i didnt want to mess anything up? Again its just the "Movies" title in the home menu next to pictures, music, exct... thanks in advance

Pay a visit to skin settings for starters. Customize home page offers a lot of possibilities, first one being.. ...renaming sections Smile