protected override ModInfo LoadDefaultConfig(ModController controller) { Dictionary <string, string> settings = new Dictionary <string, string> { { "Url", "http://forum.snitz.com/forum/rssfeed2.asp" } }; ModInfo modinfo = new ModInfo { Id = -1, Name = "RSSFeed", Description = "Displays an RSS feed", Version = new Version(1, 1), Enabled = true, AdminControl = "RSSFeed.ascx", Settings = new Hashtable(settings) }; controller.ModInfo = modinfo; controller.InstallMod(); return(modinfo); }
protected override ModInfo LoadDefaultConfig(ModController controller) { Dictionary <string, string> settings = new Dictionary <string, string> { { "AllowFileUpload", "1" }, { "AllowImageUpload", "1" }, { "AllowAttachments", "1" }, { "ShowFileAttach", "1" }, { "FileUploadLocation", "/sharedFiles" }, { "AllowedAttachmentTypes", "zip,pdf,txt,doc" }, { "AllowedImageTypes", "jpg,jpeg,gif,png" }, { "TotalUploadLimitFileSize", "100" }, { "TotalUploadLimitFileNumber", "50" }, { "FileSizeLimit", "10" } }; ModInfo modinfo = new ModInfo { Id = -1, Name = "FileUpload", Description = "File Upload Configuration", Version = new Version(1, 0), Enabled = true, Settings = new Hashtable(settings) }; controller.ModInfo = modinfo; controller.InstallMod(); return(modinfo); }
protected override ModInfo LoadDefaultConfig(ModController controller) { Dictionary <string, string> settings = new Dictionary <string, string> { { "EventAdminRoles", "Administrator,Moderator" }, { "EventShowHolidays", "1" } }; ModInfo modinfo = new ModInfo { Id = -1, Name = "Events", Description = "Events Calendar", Version = new Version(1, 0), Enabled = true, AdminControl = "EventsAdmin.ascx", Settings = new Hashtable(settings) }; controller.ModInfo = modinfo; controller.InstallMod(); return(modinfo); }
public override void OnAccept() { if (VerifyInput()) { LongEventHandler.QueueLongEvent(() => { ModController.InstallMod(curMod, curName); }, "Installing", true, null); this.Close(); } }
protected override ModInfo LoadDefaultConfig(ModController controller) { //todo: load mod config data from xml file etc ModInfo modinfo = new ModInfo { Id = -1, Name = "BlogMenu", Description = "Blog Menu Config", Version = new Version(1, 0), Enabled = true, Settings = null }; controller.ModInfo = modinfo; controller.InstallMod(); return(modinfo); }
protected override ModInfo LoadDefaultConfig(ModController controller) { Dictionary <string, string> settings = new Dictionary <string, string> { { "MediaItems", "messenger,googlebuzz" } }; ModInfo modinfo = new ModInfo { Id = -1, Name = "ShareIt", Description = "Share topic on Social Media sites", Version = new Version(1, 0), Enabled = true, Settings = new Hashtable(settings) }; controller.ModInfo = modinfo; controller.InstallMod(); return(modinfo); }
protected override ModInfo LoadDefaultConfig(ModController controller) { Dictionary <string, string> settings = new Dictionary <string, string> { { "Member Likes", "1" }, { "Topic Likes", "1" }, { "Reply Likes", "1" } }; ModInfo modinfo = new ModInfo { Id = -1, Name = "Thanks", Description = "Thanks mod", Version = new Version(1, 0), Enabled = false, AdminControl = "ThanksMod.ascx", Settings = new Hashtable(settings) }; controller.ModInfo = modinfo; controller.InstallMod(); return(modinfo); }