2015-10-15, 16:38
(2015-10-09, 09:24)BobCratchett Wrote: @tomer953 - with this truly global override, you could extend the parental controls hack with the addition of a custom property...
Code:<override action="globaloverride">
<condition>IsEmpty(Container(9000).ListItem.Property(ParentalControl)) | StringCompare(Skin.String(mypassword),1234)</condition>
<action>::ACTION::</action>
</override>
<override action="globaloverride">
<condition>!IsEmpty(Container(9000).ListItem.Property(ParentalControl)) + !StringCompare(Skin.String(mypassword),1234)</condition>
<action>Skin.SetString(mypassword)</action>
</override>
With the custom property either setting or clearing the ParentalControls property. That should mean that you could lock any main menu item, and its submenu items would lock as well. It's still a hack, though
Maybe I'm missing something, But from a simple check, its not working.
Code:
<control type="button" id="993">
<include>skinbuttons</include>
<onclick>SetProperty(customProperty,ParentalControl)</onclick>
<onclick>SetProperty(customValue,True)</onclick>
<onclick>SendClick(404)</onclick>
<label>ParentalControl</label>
</control>
b.t.w, what is the way to use boolean Property? so I can use radiobutton instead of button. ? I tought about some workarround with skin.togglesettings and onclick conditions - any fastest way ?