Ejemplo n.º 1
0
        void Topic_AfterCreate(object sender, uForum.Businesslogic.CreateEventArgs e)
        {
            Topic t = (Topic)sender;

            Hashtable fields = new Hashtable();

            fields.Add("id", t.Id.ToString());
            fields.Add("name", t.Title);
            fields.Add("author", t.MemberId.ToString());
            fields.Add("content", umbraco.library.StripHtml(t.Body));

            Businesslogic.Indexer i = new uSearch.Businesslogic.Indexer();
            i.AddToIndex("topic_" + t.Id.ToString(), "forumTopics", fields);

            umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Debug, -1, "topic " + t.Id.ToString() + " added");
        }
Ejemplo n.º 2
0
        void Comment_AfterCreate(object sender, uForum.Businesslogic.CreateEventArgs e)
        {
            Comment c = (Comment)sender;

            //WB added to show these events are firing...
            umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Debug, c.Id, "Comment_AfterCreate in NotificationsWeb.EventHandlers.Forum() class is starting");

            NotificationsWeb.BusinessLogic.ForumTopic.Subscribe
                (c.TopicId, c.MemberId);

            //send notifications
            InstantNotification not = new InstantNotification();

            Member m = new Member(c.MemberId);

            not.Invoke(Config.ConfigurationFile, Config.AssemblyDir, "NewComment", c, NiceCommentUrl(c.TopicId, c, 10), m);

            //WB added to show these events are firing...
            umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Debug, c.Id, "Comment_AfterCreate in NotificationsWeb.EventHandlers.Forum() class is finishing");
        }
Ejemplo n.º 3
0
        void Comment_AfterCreate(object sender, uForum.Businesslogic.CreateEventArgs e)
        {
            Comment c = (Comment)sender;

            //InstantNotification.Execute("NewComment", c.Id);
        }