Example #1
0
        public void Forum_Message_New(string[] str)
        {
            if (str.Length < 4)
            {
                return;
            }
            string title   = str[1];
            string author  = str[2];
            string message = str[3];

            string channel = ((WebTVInfo)PageInfo).Channel;
            string path    = Info.address_WebTV + channel + @"\";

            Forum.Forum forum = Channels.FindForum(channel, title);
            if (forum == null)
            {
                return;
            }

            ForumMessage forummessage = new ForumMessage();

            forummessage.Author  = author;
            forummessage.Message = message;
            forum.Add(forummessage);

            Info.SaveFileForum(forum, path + @"\Forum\" + title + Info.extension);

            Add(new MsgJSON_Forum("FORUM", forum));
        }
Example #2
0
        public void Forum_Message_New(string[] str)
        {
            string title   = str[1];
            string author  = str[2];
            string message = str[3];


            Forum forum = Info.ForumList.Find(title);

            if (forum == null)
            {
                return;
            }

            ForumMessage forummessage = new ForumMessage();

            forummessage.Author  = author;
            forummessage.Message = message;
            forum.Add(forummessage);

            string path = Info.address_Forum + forum.FileName();

            Info.SaveFileForum(forum, path);

            Add(new MsgJSON_Forum("FORUM", forum));
        }