// this is used for OGS1 public virtual Hashtable ToHashTable() { Hashtable h = new Hashtable(); h["owner"] = Owner.ToString(); h["serial"] = Serial.ToString(); h["visual_params"] = VisualParams; h["texture"] = Texture.GetBytes(); h["avatar_height"] = AvatarHeight.ToString(); h["body_item"] = BodyItem.ToString(); h["body_asset"] = BodyAsset.ToString(); h["skin_item"] = SkinItem.ToString(); h["skin_asset"] = SkinAsset.ToString(); h["hair_item"] = HairItem.ToString(); h["hair_asset"] = HairAsset.ToString(); h["eyes_item"] = EyesItem.ToString(); h["eyes_asset"] = EyesAsset.ToString(); h["shirt_item"] = ShirtItem.ToString(); h["shirt_asset"] = ShirtAsset.ToString(); h["pants_item"] = PantsItem.ToString(); h["pants_asset"] = PantsAsset.ToString(); h["shoes_item"] = ShoesItem.ToString(); h["shoes_asset"] = ShoesAsset.ToString(); h["socks_item"] = SocksItem.ToString(); h["socks_asset"] = SocksAsset.ToString(); h["jacket_item"] = JacketItem.ToString(); h["jacket_asset"] = JacketAsset.ToString(); h["gloves_item"] = GlovesItem.ToString(); h["gloves_asset"] = GlovesAsset.ToString(); h["undershirt_item"] = UnderShirtItem.ToString(); h["undershirt_asset"] = UnderShirtAsset.ToString(); h["underpants_item"] = UnderPantsItem.ToString(); h["underpants_asset"] = UnderPantsAsset.ToString(); h["skirt_item"] = SkirtItem.ToString(); h["skirt_asset"] = SkirtAsset.ToString(); string attachments = GetAttachmentsString(); if (attachments != String.Empty) { h["attachments"] = attachments; } return(h); }
// this is used for OGS1 // It should go away soon in favor of the pack/unpack sections below public virtual Hashtable ToHashTable() { Hashtable h = new Hashtable(); AvatarWearable wearable; h["owner"] = Owner.ToString(); h["serial"] = Serial.ToString(); h["visual_params"] = VisualParams; h["texture"] = Texture.GetBytes(); h["avatar_height"] = AvatarHeight.ToString(); wearable = GetWearableOfType(AvatarWearable.BODY); h["body_item"] = wearable.ItemID.ToString(); h["body_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.SKIN); h["skin_item"] = wearable.ItemID.ToString(); h["skin_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.HAIR); h["hair_item"] = wearable.ItemID.ToString(); h["hair_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.EYES); h["eyes_item"] = wearable.ItemID.ToString(); h["eyes_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.SHIRT); h["shirt_item"] = wearable.ItemID.ToString(); h["shirt_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.PANTS); h["pants_item"] = wearable.ItemID.ToString(); h["pants_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.SHOES); h["shoes_item"] = wearable.ItemID.ToString(); h["shoes_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.SOCKS); h["socks_item"] = wearable.ItemID.ToString(); h["socks_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.JACKET); h["jacket_item"] = wearable.ItemID.ToString(); h["jacket_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.GLOVES); h["gloves_item"] = wearable.ItemID.ToString(); h["gloves_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.UNDERSHIRT); h["undershirt_item"] = wearable.ItemID.ToString(); h["undershirt_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.UNDERPANTS); h["underpants_item"] = wearable.ItemID.ToString(); h["underpants_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.SKIRT); h["skirt_item"] = wearable.ItemID.ToString(); h["skirt_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.ALPHA); h["alpha_item"] = wearable.ItemID.ToString(); h["alpha_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.TATTOO); h["tattoo_item"] = wearable.ItemID.ToString(); h["tattoo_asset"] = wearable.AssetID.ToString(); wearable = GetWearableOfType(AvatarWearable.PHYSICS); h["physics_item"] = wearable.ItemID.ToString(); h["physics_asset"] = wearable.AssetID.ToString(); string attachments = GetAttachmentsString(); if (!String.IsNullOrEmpty(attachments)) { h["attachments"] = attachments; } return(h); }
/// ----------------------------------------------------------------------------- /// <summary> /// LoadSettings loads the settings from the Database and displays them /// </summary> /// <remarks> /// </remarks> /// <history> /// </history> /// ----------------------------------------------------------------------------- public override void LoadSettings() { // Note, this is called before OnLoad try { //if (Page.IsPostBack == false) //{ BindThemes(); BindTemplates(); BindPrivateMessaging(); BindForumGroups(); BindForumSecurity(); Utilities.SelectListItemByValue(drpPageSize, PageSize); Utilities.SelectListItemByValue(drpFloodInterval, FloodInterval); Utilities.SelectListItemByValue(drpEditInterval, EditInterval); Utilities.SelectListItemByValue(drpMode, Mode); Utilities.SelectListItemByValue(drpThemes, Theme); Utilities.SelectListItemByValue(drpTemplates, TemplateId); Utilities.SelectListItemByValue(rdAutoLinks, AutoLink); Utilities.SelectListItemByValue(drpDeleteBehavior, DeleteBehavior); txtAddThis.Text = AddThis; Utilities.SelectListItemByValue(drpProfileVisibility, ProfileVisibility); Utilities.SelectListItemByValue(drpSignatures, Signatures); Utilities.SelectListItemByValue(drpUserDisplayMode, UserNameDisplay); Utilities.SelectListItemByValue(rdEnableURLRewriter, FriendlyURLs); Utilities.SelectListItemByValue(rdFullTextSearch, FullTextSearch && FullTextStatus == 1); // 1 = Enabled Status Utilities.SelectListItemByValue(rdMailQueue, MailQueue); Utilities.SelectListItemByValue(rdPoints, EnablePoints); Utilities.SelectListItemByValue(rdUsersOnline, EnableUsersOnline); Utilities.SelectListItemByValue(rdUseSkinBreadCrumb, UseSkinBreadCrumb); txtAnswerPointValue.Text = AnswerPointValue.ToString(); txtTopicPointValue.Text = TopicPointValue.ToString(); txtReplyPointValue.Text = ReplyPointValue.ToString(); txtMarkAnswerPointValue.Text = MarkAsAnswerPointValue.ToString(); txtModPointValue.Text = ModPointValue.ToString(); txtURLPrefixBase.Text = PrefixURLBase; txtURLPrefixCategory.Text = PrefixURLCategory; txtURLPrefixOther.Text = PrefixURLOther; txtURLPrefixTags.Text = PrefixURLTag; txtAvatarHeight.Text = AvatarHeight.ToString(); txtAvatarWidth.Text = AvatarWidth.ToString(); txtTimeFormat.Text = TimeFormatString; txtDateFormat.Text = DateFormatString; Utilities.SelectListItemByValue(drpForumGroupTemplate, ForumGroupTemplate); //} } catch (Exception exc) //Module failed to load { Services.Exceptions.Exceptions.ProcessModuleLoadException(this, exc); } }