A simple fix, Resource values should be used instead of the hardcoding.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/10/2011 1:34:56 AM
Gravatar
Total Posts 192

A simple fix, Resource values should be used instead of the hardcoding.

in Blog.AddBlogComment,

if (name == null)
            {
                name = "unknown";
            }
            if (name.Length < 1)
            {
                name = "unknown";
            }

 

should use resources.

9/10/2011 1:43:08 AM
Gravatar
Total Posts 192

Re: A simple fix, Resource values should be used instead of the hardcoding.

also,

why in SetupRssLink

why is it added to Head1??

why not simply use Page.Header.Controls.Add()??

 

if (module != null)
            {
                if (Page.Master != null)
                {
                    Control head = Page.Master.FindControl("Head1");
                    if (head != null)
                    {

                        Literal rssLink = new Literal();
                        rssLink.Text = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\""
                                + module.ModuleTitle + "\" href=\""
                                + GetRssUrl() + "?r=" + Global.FeedRedirectBypassToken.ToString() +"\" />";

                        head.Controls.Add(rssLink);

                    }

                }
            }

You must sign in to post in the forums. This thread is closed to new posts.