Ejemplo n.º 1
0
        private void CreateForums()
        {
            var success = SampleUtilities.CreateForumGroup(new Guid(ForumGroupId), ForumGroupTitle, string.Empty);

            SampleUtilities.CreateForum(new Guid(ForumId), new Guid(ForumGroupId), ForumTitle, string.Empty);
            SampleUtilities.CreateForumThreadFromPost(new Guid(ForumId), new Guid(ForumThreadId), new Guid(ForumPostId), "You can post in this thread to test the Akismet sample", "This is the first post.");
        }
Ejemplo n.º 2
0
        private void CreateForums()
        {
            var groupId = new Guid(SampleForumGroupId);

            var mgr = ForumsManager.GetManager();

            if (mgr.GetGroups().Where(g => g.Id == groupId).FirstOrDefault() == null)
            {
                // create forum group
                SampleUtilities.CreateForumGroup(groupId, "Sample Forum Group", "Sample Forum Group for the Sitefinity Event Logger Module website.");

                // create sample forum
                var forumId = new Guid(SampleForumId);
                SampleUtilities.CreateForum(forumId, groupId, "Sample Forum", "Sample Discussion Forum");

                var forumContent = FILLER_TEXT;


                SampleUtilities.CreateForumThreadFromPost(forumId, new Guid(SampleThreadId), new Guid(SamplePostId), "Sample Post A", forumContent);
            }
        }