2015-10-16, 00:12
That's what I get when I do a quick hack
The variable labels are the wrong way round, should be:-
And the conditions I was still playing around with, and never pushed the final versions (the StringCompare -> yes wasn't working, I was still trying to check why when I pushed that one) where I changed to SubString's:-
Sorry about that.
The variable labels are the wrong way round, should be:-
Code:
<variable name="passcode">
<value condition="[IsEmpty(Container(211).ListItem.Property(ParentalControl)) | SubString(Container(211).ListItem.Property(ParentalControl),no)]">No</value>
<value>Yes</value>
</variable>
And the conditions I was still playing around with, and never pushed the final versions (the StringCompare -> yes wasn't working, I was still trying to check why when I pushed that one) where I changed to SubString's:-
Code:
<override action="globaloverride">
<condition>[IsEmpty(Container(9000).ListItem.Property(ParentalControl)) | SubString(Container(9000).ListItem.Property(ParentalControl),no)] | StringCompare(Skin.String(mypassword),Skin.String(passcode))</condition>
<action>AlarmClock(parental,Skin.Reset(mypassword),3,Silent)</action>
<action>::ACTION::</action>
</override>
<override action="globaloverride">
<condition>SubString(Container(9000).ListItem.Property(ParentalControl),yes) + !StringCompare(Skin.String(mypassword),Skin.String(passcode))</condition>
<action>Skin.SetNumeric(mypassword)</action>
<action>AlarmClock(parental,Skin.Reset(mypassword),3,Silent)</action>
</override>
Sorry about that.