Extensions: A GUI Plugin for MediaPortal's MPEI Installer (2 Viewers)

Dadeo

Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    @ltfearme - do you know what causes the issue with the visibility conditions not working correctly in Extensions Info screens (myextensions2info.xml) - all views except MP Website Extensions ? See attached screenshot - the Status, Downloads, Compatibility, etc all have visibility conditions
    Code:
    <visible>string.equals(#MPE.View.Name,#MPEI.Translation.MPOnlineExtensions.Label)</visible>
    So they should only display in MP Website Extensions view right?

    The visibility condition works correctly in MP Website Extensions view. I tried playing around a bit, and the string conditions work in the plugin views (Installed, Online, Updates, etc) if I enclose the skin properties in single quotes, but then they don't work in MP Web Extensions view. :( It seems to be an issue in all skins I checked so far. Also, I don't think it is new in v 1.1.0, IIRC I say this in previous versions as well.
     

    Attachments

    • ExtensionsInfo.jpg
      ExtensionsInfo.jpg
      123.8 KB

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    I reported this in the internal forums I think, I believe it was broken in MP 1.3. You will have to work around it I'm afraid, you can take a look at streamedmp I made a change recently to fix it.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Hi Damien, would be nice to show the xml code here to fix the problem mentionend above ;)
    [COLLAPSE]
    Code:
    <control Style="smallTitleB">
    	  <type>label</type>
    	  <posX>310</posX>
    	  <posY>356</posY>
    	  <width>248</width>
    	  <label>#MPEI.Translation.Downloads.Label</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.Hits,)</visible>
    </control>
    <control Style="smallTitle">
    	  <id>101</id>
    	  <type>fadelabel</type>
    	  <posX>500</posX>
    	  <posY>357</posY>
    	  <width>428</width>
    	  <!-- Show Downloads and Hits -->
    	  <label>#(string.format('{0:#,0} ({1:#,0} #MPEI.Translation.Hits.Label)',cint(#MPE.Selected.Downloads),cint(#MPE.Selected.Hits)))</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.Hits,)+!string.equals(#MPE.Selected.Downloads,)</visible>
    </control>
    <control Style="smallTitle">
    	  <type>fadelabel</type>
    	  <posX>500</posX>
    	  <posY>357</posY>
    	  <width>428</width>
    	  <!-- Show Hits Only (avoid skin expression error) -->
    	  <label>#(string.format('{0:#,0} #MPEI.Translation.Hits.Label',cint(#MPE.Selected.Hits)))</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.Hits,)+!control.hastext(101)</visible>
    </control>
    <control Style="smallTitleB">
    	  <type>label</type>
    	  <posX>310</posX>
    	  <posY>382</posY>
    	  <width>248</width>
    	  <label>#MPEI.Translation.Compatibility.Label</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.CompatibleVersions,)</visible>
    </control>
    <control Style="smallTitle">
    	  <type>fadelabel</type>
    	  <posX>500</posX>
    	  <posY>383</posY>
    	  <width>428</width>
    	  <label>MediaPortal #(iif(eq(#MPE.Selected.CompatibleVersions,' '),'N/A','#MPE.Selected.CompatibleVersions'))</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.CompatibleVersions,)</visible>
    </control>
    <control Style="smallTitleB">
    	  <type>label</type>
    	  <posX>310</posX>
    	  <posY>408</posY>
    	  <width>248</width>
    	  <label>#MPEI.Translation.Rating.Label</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.Votes,)</visible>
    </control>
    <control>
    	  <type>imagelist</type>
    	  <description>-</description>
    	  <id>0</id>
    	  <posX>500</posX>
    	  <posY>405</posY>
    	  <width>130</width>
    	  <height>24</height>
    	  <colordiffuse>ffffffff</colordiffuse>
    	  <percentage>#MPE.Selected.Rating</percentage>
    	  <textureHeight>22</textureHeight>
    	  <orientation>horizontal</orientation>
    	  <textureWidth>22</textureWidth>
    	  <subitems>
    		<subitem>starwhitehollow.png</subitem>
    		<subitem>starwhite.png</subitem>
    	  </subitems>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.Votes,)</visible>
    </control>
    <control Style="smallTitle">
    	  <type>fadelabel</type>
    	  <posX>620</posX>
    	  <posY>408</posY>
    	  <width>428</width>
    	  <label>#(div(cint(#MPE.Selected.Rating), cflt(2))) #(string.format('({0:#,0} #MPEI.Translation.Votes.Label)',cint(#MPE.Selected.Votes)))</label>
    	  <animation effect="Fade" time="250">WindowOpen</animation>
    	  <animation effect="Fade" time="100">WindowClose</animation>
    	  <visible>!string.equals(#MPE.Selected.Votes,)</visible>
    </control>
    [COLLAPSE]

    Basically removed any string property in the conditions are relied on old trusty methods.
     
    Last edited:

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    I reported this in the internal forums I think, I believe it was broken in MP 1.3. You will have to work around it I'm afraid, you can take a look at streamedmp I made a change recently to fix it.
    I thought I remembered something - I was searching all the Extensions forum threads - forgot it was in internal forum DUH!
    Workaround works like a charm. Thanks!
     

    Airw0lf

    Portal Pro
    April 19, 2008
    77
    3
    Home Country
    New Zealand New Zealand
    Is it possible to add a feature/option to install updates as another user? The reason I ask is because I normally launch MediaPortal from a non-admin account. If I run the Extension Installer program I specifically launch it as an admin user.
     

    Users who are viewing this thread

    Top Bottom