Save Config Settings from own Plugin (1 Viewer)

Epstone

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

    Works also, removed the "section" entry from MediaPortal.xml ;) (y)
    Works also, removed the "section" entry from MediaPortal.xml ;) (y)
    This plugin is alternate version to the original World Weather plugin developed by @Micropolis. Is compatible with MediaPortal...
    Replies
    33
    Views
    3K
    I had the same issue and found the executable under C:\ProgramData\Team MediaPortal\MediaPortal\skin\Titan\BasicHome.Editor\TitanEditor.exe Only the shortcut was missing.
    I had the same issue and found the executable under C:\ProgramData\Team...
    Hi all, Not a rant, more a sharing of experience (maybe hoping to get some clarification on which wrong turn I took) It has been...
    Replies
    9
    Views
    2K
    Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work. Spotify desktop app installed on same computer as you are going to use with MediaPortal Getting ready Create an app at spotify, use this link: Dashboard | Spotify for Developers, you have to login. Click...
    Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work...
    Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work...
    Replies
    0
    Views
    1K
    There is an issue with missing #fanarthandler.movie.clearart.selected path value when MovingPictures loads a list of movies. When the movie is changed from the first item in the list, the value populates. I have a working solution to this issue and it requires an update to the Cornerstone.MP.Extensions project class...
    There is an issue with missing #fanarthandler.movie.clearart.selected path value when MovingPictures loads a list of movies. When...
    There is an issue with missing #fanarthandler.movie.clearart.selected path value when MovingPictures loads a list of movies. When...
    Replies
    0
    Views
    165
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    5K
    Top Bottom