Save Config Settings from own Plugin (1 Viewer)

Epstone

Portal Pro
March 10, 2007
102
16
38
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

    Similar threads

    Actually, you just reminded me of how I have handled this in the past: I merged the contents of an old export.xml with a new one to make a complete file containing the old values I needed and the new values I didn't want to change. Why should it matter if the export file is missing some values? I would expect the import process to...
    Actually, you just reminded me of how I have handled this in the past: I merged the contents of an old export.xml with a new one to...
    My "fresh install" is missing some settings (in particular genre maps) that I would like to import from a previous export. There...
    Replies
    2
    Views
    377
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    This happened immediately after my Windows 11 x64 monthly update for November. The update included also cumulative update to .NET...
    Replies
    9
    Views
    853
    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
    1K
    Last weekend, I uninstalled the entire mediaportal, the TV server, the Windows patches, and anything else that might be interfering. I made a backup of the plugin databases so I could restore them after the installation. Now everything works. I'm not exactly sure what was causing the problem, but now all the videos play perfectly again.
    Last weekend, I uninstalled the entire mediaportal, the TV server, the Windows patches, and anything else that might be...
    Until yesterday, my config was win 10+mepo 1.36. This config could play any kind of video without errors. I've updated mepo to...
    Replies
    6
    Views
    594
    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
    1K
    Top Bottom