My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ParentalControls  
This page explains how parental controls work in the default skin
Updated Jan 6, 2010 by Stuart.Boston

Introduction

The parental controls works by checking a movie's rating against the listed child's age. If the movie is rated higher then your child's age, it will prompt you for a password. If the movie is not rated higher then the childs age, you will be granted access to the movie's detail page.

Also, if parental controls are turned on, the page up/down keys will be disabled on the details page. So that a child can not go into a movie their old enough to see, and then use page up/down to get into one they're not old enough to see.

Details

Step 1:

To turn parental controls on open skin-options.xsl and change "parental-control-on" from false to true

<!-- Index Option #4:  This turns parental controls on in the index -->
<xsl:variable name="parental-control-on">true</xsl:variable>

Step 2:

Set the number of children you have. NOTE: 3 is the current maximum

<!--Index Option #5:  This sets the number of children you have -->
<!--Only applies if you have parental-control-on set to true. -->
<!--The value can only be 1,2 or 3 currently -->
<xsl:variable name="number-of-children">3</xsl:variable>

Step 3:

Set the ages of each of your children.

  • If you only have one child you only need to set the age of "childs-age-youngest". The other two will not matter.
  • If you only have two children, set the age for "childs-age-youngest" and "childs-age-oldest"
  • If you have three children, set all three child's ages
_<!-- Index Option #6: Age of your youngest child, if applicable (NOTE: use this one if you only have one child)-->
<xsl:variable name="childs-age-youngest">8</xsl:variable>

_<!-- Index Option #7: Age of your middle child, if applicable-->
<xsl:variable name="childs-age-middle">12</xsl:variable>

_<!-- Index Option #8: Age of your oldest child, if applicable-->
<xsl:variable name="childs-age-oldest">14</xsl:variable>

Step 4:

Set the passwords to give your children.

  • The password you give to the middle child will ONLY work for movies/shows they are old enough to see.
  • The password you set for the oldest child will ONLY work for all movies/shows they are old enough to see. This is the only password to give out if you only have two children.
  • The master password will work for ALL movies/shows. This is the only password that matters if you only have one child.
<!-- Index Option #9: This is the password to give to your middle child (if applicable)-->
<xsl:variable name="parental-password-middle">aaa</xsl:variable>

<!-- Index Option #10: This is the password to give to your oldest child-->
<xsl:variable name="parental-password-oldest">jjj</xsl:variable>

<!-- Index Option #11: This is the master password for parental controls, it works on all movies-->
<xsl:variable name="parental-password-master">ttt</xsl:variable>

Sign in to add a comment
Powered by Google Project Hosting