[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[HTML SKIN] GTspecial Zappiti-look-a-like public beta (Update:24.06.2011)
02-15-2011, 03:33 PM (This post was last modified: 02-15-2011 04:07 PM by Kokonutcreme.)
Post: #60
RE: [SKIN] GTspecial Zappiti-look-a-like public beta (Update:12.02.2011)
(02-13-2011 04:11 PM)tommyboy70 Wrote:  I never thought i would leave the Aeon skin but man i'm loving this.

When you go to a sets page and you have lets say 3 movies and they are centered, when you scroll left and right the poster movies completely to the left of the screen.

i don't think this is the way it is supposed to be so do i have to change something in the settings

edit- i just found that the number in the set is what is giving me this problem

this is what i have to test

2-doesn't work
3-works
4-doesn't work
7-works

thanks

Ok I've figured out what was happening with the sets behaviour. I compared the index.xsl file from the public beta to the test beta I was using before.

There is some code missing. I've added in the missing code, tested and the sets are behaving as expected now. Disclaimer: I only have a maximum of six items in my sets so if you're still experiencing a problem with sets of seven items or more then you'll have to wait until GT returns.

Open index.xsl and copy this code in the <script type ="text/javascript'" section after the } bracket that closes the second "&#36;index-popup='true'" statement, around line 490.

<div class="codeblock">
Code:
<xsl:if test="$SetFanart='true' and contains(//index[@current='true']/@next,'Set_')">
                
                var mCount= <xsl:value-of select="$nbCount" />;
                <xsl:if test="(($gt.set.align) = 'center') and ($nbCount &lt; $nbCols)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Right_1 = ''+(12+<xsl:value-of select="ceiling((7-$nbCount)*(471 div 6))"/>+(i - 1)*155) +'';
                var Right_2 = ''+(Right_1-10)+'';
                var Right_3 = ''+(Right_1-4)+'';

                            
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.left=Right_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.left=Right_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.left=Right_1
                }
                </xsl:if>
                
                <xsl:if test="(($gt.set.align) = 'right') and ($nbCount &lt; $nbCols)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Right_1 = ''+(12+<xsl:value-of select="ceiling((7-$nbCount)*(936 div 6))"/>+(i - 1)*155) +'';
                var Right_2 = ''+(Right_1-10)+'';
                var Right_3 = ''+(Right_1-4)+'';

                            
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.left=Right_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.left=Right_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.left=Right_1
                }
                </xsl:if>
                
                
                var mLines= <xsl:value-of select="$nbLines" />;
                var mCols= <xsl:value-of select="$nbCols" />;
                
                <xsl:choose>
                <xsl:when test="($gt.set.row) &gt; ($mjb.nbThumbnailsPerPage div $mjb.nbThumbnailsPerLine)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Offset_1= ''+(10+<xsl:value-of select="((($mjb.nbThumbnailsPerPage div $mjb.nbThumbnailsPerLine)-$nbLines) * 211)+12" />+(Math.floor((i-1)/mCols))*211)+'';
                var Offset_2= ''+(Offset_1-10)+'';
                var Offset_3= ''+(Offset_1-4)+'';
                
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.top=Offset_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.top=Offset_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.top=Offset_1
                }
                </xsl:when>
                <xsl:otherwise>
            
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Offset_1= ''+(10+<xsl:value-of select="((($gt.set.row)-$nbLines) * 211)+7"/>+(Math.floor((i-1)/mCols))*211)+'';
                var Offset_2= ''+(Offset_1-10)+'';
                var Offset_3= ''+(Offset_1-4)+'';
                
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.top=Offset_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.top=Offset_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.top=Offset_1
                }
                </xsl:otherwise>
                </xsl:choose>            
    </xsl:if>

Rerun your jukebox.

(02-15-2011 03:33 PM)Kokonutcreme Wrote:  Ok I've figured out what was happening with the sets behaviour. I compared the index.xsl file from the public beta to the test beta I was using before.

There is some code missing. I've added in the missing code, tested and the sets are behaving as expected now. Disclaimer: I only have a maximum of six items in my sets so if you're still experiencing a problem with sets of seven items or more then you'll have to wait until GT returns.

Hopefully this appears now:


Open index.xsl and copy this code in the <script type ="text/javascript'" section after the } bracket that closes the second "&#36;index-popup='true'" statement, around line 490.

<div class="codeblock">
Code:
<xsl:if test="$SetFanart='true' and contains(//index[@current='true']/@next,'Set_')">
                
                var mCount= <xsl:value-of select="$nbCount" />;
                <xsl:if test="(($gt.set.align) = 'center') and ($nbCount &lt; $nbCols)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Right_1 = ''+(12+<xsl:value-of select="ceiling((7-$nbCount)*(471 div 6))"/>+(i - 1)*155) +'';
                var Right_2 = ''+(Right_1-10)+'';
                var Right_3 = ''+(Right_1-4)+'';

                            
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.left=Right_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.left=Right_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.left=Right_1
                }
                </xsl:if>
                
                <xsl:if test="(($gt.set.align) = 'right') and ($nbCount &lt; $nbCols)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Right_1 = ''+(12+<xsl:value-of select="ceiling((7-$nbCount)*(936 div 6))"/>+(i - 1)*155) +'';
                var Right_2 = ''+(Right_1-10)+'';
                var Right_3 = ''+(Right_1-4)+'';

                            
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.left=Right_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.left=Right_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.left=Right_1
                }
                </xsl:if>
                
                
                var mLines= <xsl:value-of select="$nbLines" />;
                var mCols= <xsl:value-of select="$nbCols" />;
                
                <xsl:choose>
                <xsl:when test="($gt.set.row) &gt; ($mjb.nbThumbnailsPerPage div $mjb.nbThumbnailsPerLine)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Offset_1= ''+(10+<xsl:value-of select="((($mjb.nbThumbnailsPerPage div $mjb.nbThumbnailsPerLine)-$nbLines) * 211)+12" />+(Math.floor((i-1)/mCols))*211)+'';
                var Offset_2= ''+(Offset_1-10)+'';
                var Offset_3= ''+(Offset_1-4)+'';
                
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.top=Offset_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.top=Offset_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.top=Offset_1
                }
                </xsl:when>
                <xsl:otherwise>
            
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Offset_1= ''+(10+<xsl:value-of select="((($gt.set.row)-$nbLines) * 211)+7"/>+(Math.floor((i-1)/mCols))*211)+'';
                var Offset_2= ''+(Offset_1-10)+'';
                var Offset_3= ''+(Offset_1-4)+'';
                
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.top=Offset_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.top=Offset_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.top=Offset_1
                }
                </xsl:otherwise>
                </xsl:choose>            
    </xsl:if>

Open index.xsl and copy this code in the script type ="text/javascript'" section after the } bracket that closes the second "$index-popup='true'" statement, around line 490.

Code:
<xsl:if test="$SetFanart='true' and contains(//index[@current='true']/@next,'Set_')">
                
                var mCount= <xsl:value-of select="$nbCount" />;
                <xsl:if test="(($gt.set.align) = 'center') and ($nbCount &lt; $nbCols)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Right_1 = ''+(12+<xsl:value-of select="ceiling((7-$nbCount)*(471 div 6))"/>+(i - 1)*155) +'';
                var Right_2 = ''+(Right_1-10)+'';
                var Right_3 = ''+(Right_1-4)+'';

                            
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.left=Right_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.left=Right_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.left=Right_1
                }
                </xsl:if>
                
                <xsl:if test="(($gt.set.align) = 'right') and ($nbCount &lt; $nbCols)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Right_1 = ''+(12+<xsl:value-of select="ceiling((7-$nbCount)*(936 div 6))"/>+(i - 1)*155) +'';
                var Right_2 = ''+(Right_1-10)+'';
                var Right_3 = ''+(Right_1-4)+'';

                            
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.left=Right_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.left=Right_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.left=Right_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.left=Right_1
                }
                </xsl:if>
                
                
                var mLines= <xsl:value-of select="$nbLines" />;
                var mCols= <xsl:value-of select="$nbCols" />;
                
                <xsl:choose>
                <xsl:when test="($gt.set.row) &gt; ($mjb.nbThumbnailsPerPage div $mjb.nbThumbnailsPerLine)">
                
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Offset_1= ''+(10+<xsl:value-of select="((($mjb.nbThumbnailsPerPage div $mjb.nbThumbnailsPerLine)-$nbLines) * 211)+12" />+(Math.floor((i-1)/mCols))*211)+'';
                var Offset_2= ''+(Offset_1-10)+'';
                var Offset_3= ''+(Offset_1-4)+'';
                
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.top=Offset_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.top=Offset_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.top=Offset_1
                }
                </xsl:when>
                <xsl:otherwise>
            
                for (var i = 1; i <xsl:value-of select="'&lt;='" disable-output-escaping="yes"/> mCount; i++)
                {
                var Offset_1= ''+(10+<xsl:value-of select="((($gt.set.row)-$nbLines) * 211)+7"/>+(Math.floor((i-1)/mCols))*211)+'';
                var Offset_2= ''+(Offset_1-10)+'';
                var Offset_3= ''+(Offset_1-4)+'';
                
                document.styleSheets[0].cssRules[1+(i - 1) * 5].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 1].style.top=Offset_1
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 2].style.top=Offset_2
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 3].style.top=Offset_3
                document.styleSheets[0].cssRules[1+(i - 1) * 5 + 4].style.top=Offset_1
                }
                </xsl:otherwise>
                </xsl:choose>            
    </xsl:if>

Don't know what is going on with the site but it's not displaying the code to insert so here is a link to download the updated index.xsl file to fix the sets problem.

Amended index file for GT Zappiti
PCH A110 - Mac OS X 10.6.8 - PCH Firmware 01-17-110314-15-POP-403 - Seagate 1TB HDD - YAMJ V2.4 - TOMY - GTSpecial Zappiti - Redefined 1.8 - Calm index 2.1.1 - Samsung 58" Series 8 Plasma
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [SKIN] GTspecial Zappiti-look-a-like public beta (Update:12.02.2011) - Kokonutcreme - 02-15-2011 03:33 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [HTML SKIN] All-in-One Package SabishGT skin [Update: 28.05.2011] gt-eins 2,092 473,857 Yesterday 08:18 AM
Last Post: HiSoC8Y
Video [HTML SKIN] Rutabaga_MOD_by_Hispanico [update 27.05.x11] hispanico 48 22,044 05-12-2013 01:51 PM
Last Post: Jascha
Star [TOOL] Dynamic YAMJ & Music JukeBox server - NMTServer 1.82 released [5 Feb. 2011] ithiel 2,258 849,238 05-05-2013 04:39 AM
Last Post: NeilN1
  [HTML SKIN] ÆON Movie Wall YAMJ *UPDATE* May 9, 2010 - Clean Up #4 ejp 8,798 2,221,793 05-01-2013 05:49 PM
Last Post: h3dman
  [FLASH SKIN] Legion's Overlays and Mods for evZap! (02/27 update) Legion455 294 44,370 04-22-2013 07:11 AM
Last Post: jluc2808
  [HTML SKIN] Alaska *UPDATE* May 9, 2010 - 3 Fixes, 1 Enhancement, and a Time Fix(?) ejp 352 130,038 02-15-2012 01:51 PM
Last Post: accident
  [FLASH SKIN] Eversion: Public Beta 1, (V0.1.4 R0039) accident 518 141,481 06-15-2011 06:53 AM
Last Post: Omertron

Forum Jump: