protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Sueetie Modified - Adding Compressed theme/style.css and Sueetie Theme stylesheets

                Page.Header.Controls.Add(SueetieBlogUtils.AddBlogEngineThemeCSS());
                Page.Header.Controls.Add(MakeStyleSheetControl("/themes/" + this.CurrentTheme + "/style/shared.css"));
                Page.Header.Controls.Add(MakeStyleSheetControl("/themes/" + this.CurrentTheme + "/style/blogs.css"));
                Page.Header.Controls.Add(MakeStyleSheetControl("/themes/" + this.CurrentTheme + "/style/contact.css"));
                Page.Header.Controls.Add(new LiteralControl("<!--[if IE]><link rel=\"stylesheet\" href=\"/themes/" + this.CurrentTheme + "/style/ie.css\" type=\"text/css\" /><![endif]-->"));


                MembershipUser user = Membership.GetUser();

                UserLink.Text        = "Welcome, Guest!";
                UserLink.NavigateUrl = "/members/login.aspx";
                if (Page.User.Identity.IsAuthenticated)
                {
                    string _displayName = SueetieUsers.GetUserDisplayName(SueetieContext.Current.User.UserID, false);

                    if (SueetieConfiguration.Get().Core.UseForumProfile)
                    {
                        UserLink.NavigateUrl = SueetieUrls.Instance.MasterAccountInfo().Url;
                    }
                    else
                    {
                        UserLink.NavigateUrl = SueetieUrls.Instance.MyAccountInfo().Url;
                    }

                    UserLink.Text = string.Format(SueetieLocalizer.GetString("link_greetings_member"), _displayName);
                }
            }
        }
Beispiel #2
0
        private MailMessage AddHeaders(MailMessage _msg, MembershipUser _user)
        {
            _msg.From    = new MailAddress(SiteSettings.Instance.ContactEmail, SiteSettings.Instance.FromName);
            _msg.Subject = SueetieLocalizer.GetString("approval_email_subject");

            MailAddress userAddress = new MailAddress(_user.Email, SueetieUsers.GetUserDisplayName(_user.UserName));

            _msg.To.Add(userAddress);
            return(_msg);
        }