2014-07-08, 00:39
(2014-07-07, 16:54)Reynald Wrote: <onload condition="System.HasAddon(script.videoextras) + !Skin.HasSetting(Enable.videoextras)">XBMC.RunScript(script.videoextras,check,"$INFO[ListItem.FilenameAndPath]")</onload>
I've seen from a few of your posts in the skinning forum that you obviously don't understand conditions yet (be they enabling conditions like these, or visibility conditions which seem to trip you up regularly). So I'd suggest double checking this to ensure this is doing what you think it is. If this is wrong, then it doesn't matter what other code you have, the videoextras script will never be run.
That's not to say you have got it wrong (the code would be correct for those using skin settings to enable things by default - where the checkbox is selected by the opposite - ! - of the actual setting), and I certainly haven't checked the huge amount of other code you posted, but just to be clear you are essentially saying:
Only run the videoextras script if the system has the videoextras addon installed and the skin does NOT have the setting Enable.videoextras.
Whilst it may be correct for your skin, the second condition logically would only be True (and so the script would be run) when videoextras are disabled within the skin.
If you don't understand these conditions, read up on "boolean conditions" (conditions that are either true or false) and read about the available XBMC boolean conditions.