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

    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
    601
    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
    406
    • Sticky
    I've found the attribute that affects the Videos and Music and Pictures screens; namely common.time.xml - the Date control. Thanks for pointing me to that. Now, with posX=50, all of the pages display the time and date in the same position with a slight space between the recording image and the time. Of course, posX=45 works as well...
    I've found the attribute that affects the Videos and Music and Pictures screens; namely common.time.xml - the Date control. Thanks...
    After around 13 years, catavolt and High_Five - our new colleague in the design team - have decided to completely overhaul the...
    Replies
    43
    Views
    3K
    In the UK, the EPG transmitted in the DVB-T datastream allows each programme to have two genres -- a primary genre, and a secondary genre (i.e. a subgenre). The primary genre might be something like Film (or Movie in the USA). The secondary genre for Film might be something like: Action, Comedy, Crime, Fantasy, Romance, Science...
    In the UK, the EPG transmitted in the DVB-T datastream allows each programme to have two genres -- a primary genre, and a secondary...
    In the UK, the EPG transmitted in the DVB-T datastream allows each programme to have two genres -- a primary genre, and a secondary...
    Replies
    0
    Views
    344
    Top Bottom