Skinning guide - discussion and download (2 Viewers)

osre

Retired Team Member
  • Premium Supporter
  • December 14, 2014
    766
    386
    Germany Germany
    Or if your skin gets an update package, and you install this package with the future PackageManager, then any locally modified files would get overridden.
    Not the best behaviour, I fear... Especially on skins user-modified files are very common. We need to keep them (at least a backup) also a skin update happens.

    In this case this did not matter as he wants to create an own skin that probably never will be updated by plugin manger at all.
    I responded to this here, because it matches the topic better:
    Plugins and packages - a fresh look at the problem
     

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Australia Australia
    ok im guessing im really missing something really simple but i cannot understand how the home menu is built? do these files home,master_bare,master_menu control the order and words? or i need look somewhere else? or am i not looking correctly? hopefully im not being to annoying.
     

    Attachments

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,388
    6,966
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #33
    hopefully im not being to annoying.
    No, keep questions coming. This helps also others who are interested :)

    The order of items is defined by the available plugins. Take the Media plugin as example. It defines the WorkflowActions, which contain a sortorder: https://github.com/MediaPortal/Medi...ia/Skin/default/workflow/media-actions.xml#L7.

    The menu items are then built by the MenuModel, combining all available actions (of all plugins) in the current WorkflowState (i.e. "home").
     

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Australia Australia
    i think i understand the plugin folder a bit more now(all plugins) i see the news, whether, slimtv.client etc all have skins etc.
    so can the plugin.xml file at plugin root of skin
    <DependsOn>
    <PluginReference PluginId="{5D239050-02B8-4f58-8301-7630A1C4CF85}" CompatibleAPI="1"/> <!-- SkinBase -->
    <!-- PluginReference PluginId="{F6C71648-3874-4d27-9232-C41EBEDE0337}" CompatibleAPI="1"/ --> <!-- Background Manager -->
    <!-- PluginReference PluginId="{AD9C0439-F9DA-443c-BAC3-163891FB09F1}" CompatibleAPI="1"/ --> <!-- Weather -->
    </DependsOn>
    can this be used to override/remove/not allow plugins are available to the skin? eg dont allow news, weather...?
    or done else where?
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,388
    6,966
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #35
    There is currently no other way to disable plugins except to remove them from the plugins folder. I think it can be useful to deactivate them without removal. @osre is this a feature we can add inside our PluginManager rework?
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,475
    1,385
    Country flag
    I think it can be useful to deactivate them without removal
    We already have a setting called somthing like "UserDisabledPlugins" - I just came across this as I modified our SettingsManager to write every settings file to disk when it is loaded for the first time. There was something like a "PluginManagerSettings" with the setting mentioned before in it. Just don't remember the names 100%...
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    766
    386
    Germany Germany
    There is currently no other way to disable plugins except to remove them from the plugins folder. I think it can be useful to deactivate them without removal. @osre is this a feature we can add inside our PluginManager rework?
    I thought of this already.
    At least it would be nice if the enable/disable button is in the PckMgr UI, since it will have a list of installed plugins anyway.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,388
    6,966
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #38
    We already have a setting called somthing like "UserDisabledPlugins" - I just came across this as I modified our SettingsManager to write every settings file to disk when it is loaded for the first time. There was something like a "PluginManagerSettings" with the setting mentioned before in it. Just don't remember the names 100%...
    Yes, you are right: https://github.com/MediaPortal/Medi...ices/PluginManager/PluginManager.cs#L144-L158.

    Interesting that I can still find unkown code parts of MP2 :p
     

    osre

    Retired Team Member
  • Premium Supporter
  • December 14, 2014
    766
    386
    Germany Germany
    Interesting that I can still find unkown code parts of MP2 :p
    I guess these are developed in an parallel universe, or how do you think we were able to get an release done :cool:
     

    sab-to-go

    Portal Pro
    October 18, 2012
    80
    3
    Australia Australia
    ok i have tried edit the media-actions.xml file but it doesnt seem to work as i expected? if you say comment out any of the code eg
    <WorkflowContributorAction Id="7D68C459-EE9B-4EAA-AE2C-C2C365139AEE"
    Name="Home->Latest Media"
    DisplayCategory="a-Media"
    SortOrder="g"
    SourceStates="7F702D9C-F2DD-42da-9ED8-0BA92F07787F"
    ContributorModelId="E1752E49-67FE-4D94-8544-1134CC3DCD87"/> <!-- Latest media action -->
    i would have expected the lastest menu item to be removed but instead the entire menu is gone?[DOUBLEPOST=1438088039][/DOUBLEPOST]so the disable of plugins like news, weather ect via gui toggle? this a possible feature?
     

    Attachments

    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    Rob Hexenmeister Quick question - skinning MyPics General Support 7
    S Touchscreen skin? MediaPortal 1 Talk 6
    azzuro [fixed] 5011: Version label in Splash screen - pos, size from skin MediaPortal 1 61
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    V Skin With Menu Editor MediaPortal 1 Skins 13
    wizard123 New Skin Template ? MediaPortal 2 8
    Rob Hexenmeister [solved] Latest Media Handler - skinning buttons Fanart Handler 19
    CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
    Mr6686 [solved] Titan skin broken since update to 1.23 Installation, configuration support 6
    doskabouter Skin question Skins and Plugins Installer (MPEI) 1
    Y Titan Skin unter 1.23 nicht mehr so schön Allgemeines Supportforum 1
    framug 1.22.0 BasicHome Editor settings for DefaultWide HD skin not kept when update 1.22 3
    catavolt [solved] FanartHandler - Skin - Holiday and Spotlight support Fanart Handler 5
    ajs [fixed] 4936 - Strange behavior of the font in the skin MediaPortal 1 35
    ajs [solved] 4935: Add string.replace function to Skin engine MediaPortal 1 10
    ajs [solved] Latest Media Handler - Skin settings - Custom latests items number Fanart Handler 27
    Rob Hexenmeister [solved] Latests Media Handler - Skinning an updating window or control Fanart Handler 26
    T Skin Wechsel Installationsprobleme? 1
    JJDoherty Designing & implementing a new skin... Skins and Design 8
    D [fixed] Image browser crashing in Folder View (WMC skin) 2.2 Archive 10
    CyberSimian Do skin variables have global scope? MediaPortal 1 16
    N Skins to download separately MediaPortal 1 Talk 5
    P WMC Skin full screen/EPG Skins and Design 3
    CyberSimian Fixes for Amped skin MediaPortal 1 10
    Similar threads

























    Top Bottom