Esempio n. 1
0
        //public static IXForum GetForumInfo(int fid, bool clone)
        //{
        //    if (fid < 1)
        //    {
        //        return null;
        //    }
        //    var forumList = GetForumList();
        //    if (forumList == null) return null;

        //    foreach (var item in forumList)
        //    {
        //        if (item.Fid == fid)
        //        {
        //            item.Pathlist = item.Pathlist.Replace("a><a", "a> &raquo; <a");
        //            return clone ? item.Clone() : item;
        //        }
        //    }
        //    return null;
        //}

        //public static int SetRealCurrentTopics(int fid)
        //{
        //    return BBX.Data.Forums.SetRealCurrentTopics(fid);
        //}

        public static string GetVisibleForum()
        {
            var sb = new StringBuilder();
            var visibleForumList = Forums.GetVisibleForumList();

            if (visibleForumList == null)
            {
                return("");
            }

            foreach (var current in visibleForumList)
            {
                sb.AppendFormat(",{0}", current.Fid);
            }
            if (sb.Length <= 0)
            {
                return("");
            }
            return(sb.Remove(0, 1).ToString());
        }