May 23, 201115 yr Hi All, In the latest SimpleFeatures plugin, I've created some simple functions to create a form out a config file. When you click submit, it will automatically apply the changes to the config file. Comments appear as tooltips. It will detect if value is a boolean or numeric value, and remove quotation marks as necessary. Any variable with password in it will create password field in form. There are a few caveats, like not being able to use some special characters in the conf file. But, inclusion of both Title and Comments for each setting should help you here. The script parses sections like [Options] The script parses each setting like this: #TITLE: The title #COMMENT: The comment username = "username" Code is rather hacked together, but works quite well in an unRAID setup. Go ahead and take a look at my code, and provide hints and tips for me, or feel free to edit for your own projects. Turns this: [Email] #TITLE: SMTP Server SmtpServer = "smtp.gmail.com" #TITLE: SMTP Port SmtpServerPort = 465 #TITLE: Username #COMMENT: Username - Usually first part of email address Username = "[email protected]" #TITLE: Password #COMMENT: Password you use for email account Password = "password" Into this: Available here: http://lime-technology.com/forum/index.php?topic=12698.0
Archived
This topic is now archived and is closed to further replies.