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
    587
    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
    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
    328
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use just to control volume and standby, will no longer put my devices (TV & AVR) to sleep when the HTPC is put in standby. Also when I wake up the HTPC MP closes or crashes (not sure which) as per the example in...
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use...
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use...
    Replies
    0
    Views
    553
    Sorry, I mixed something :sleep: works now - Thanks!
    Sorry, I mixed something :sleep: works now - Thanks!
    Hi folks, for all those who would like to enjoy Mediaportal on the Titanskin, I have now adapted the well-known MP games package...
    Replies
    13
    Views
    2K
    Top Bottom