Save Config Settings from own Plugin (1 Viewer)

Epstone

Portal Pro
March 10, 2007
102
16
37
Riedstadt
Home Country
Germany Germany
Hello,

how can I save settings from my own Plugin in the mediaportal configuration/plugins ? Like Strings, Int's and so on. Properties.Settings.default.XXX isn't working here :/

Thanks Epstone
 

Joosttt

New Member
June 10, 2009
2
0
Home Country
Netherlands Netherlands
I ran in to the same problem. Would love to know how to save and retreive my plugin settings with media portal.

Anyone?
 

Shukuyen

Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    300
    Lake of Constance
    Home Country
    Germany Germany
    Hi,

    here is an example for loading settings from the config:
    Settings.cs - jabber-mp - Google Code

    and here is one for writing settings to the config:
    Settings.cs - jabber-mp - Google Code

    There are some more methods besides SetValue() for datatypes other than string, the code hinting of your IDE should point them out.

    To encrypt a string (passwords for example) have a look at this:
    Settings.cs - jabber-mp - Google Code

    and to decrypt at this:
    Settings.cs - jabber-mp - Google Code

    Hope that helps,
    Shukuyen.
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    MP1 MP2 Design questions. DE
    No No
    No No
    Is there an xml display utility that will allow graphically checking of dialog and osd text and graphics element placement? or Is...
    Replies
    1
    Views
    245
    I saw there is a plugin section, can be moved there?
    I saw there is a plugin section, can be moved there?
    Hello, for a few days I get an error within Mediaportal when I put the RSS link to trakt calendar. If I insert this link into...
    Replies
    1
    Views
    652
    You can always use GitHub online But judging by the picture, you are doing well. Direct Push to Master is prohibited, create PR.
    You can always use GitHub online But judging by the picture, you are doing well. Direct Push to Master is prohibited, create PR.
    Hello, Because I was annoyed with closing MP, launch config, modify setting and start MP again, I decided to give MP the ability...
    Replies
    5
    Views
    3K
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    530
    • Sticky
    MP1 MP2 1.37 DefaultWideHD - Reloaded DE
    This is intentional to distinguish Classic Home from Basic Home ;) Your mods are looking good, and I will remove the Skype xmls from skin ;)
    This is intentional to distinguish Classic Home from Basic Home ;) Your mods are looking good, and I will remove the Skype xmls...
    After around 13 years, catavolt and High_Five - our new colleague in the design team - have decided to completely overhaul the...
    Replies
    131
    Views
    7K
    Top Bottom