Add forum module to a page and create a forum
Add a post to the forum
Remove the forum module from the page, don't delete it
Go to Member List > Manage > User Activity > View Posts
The sql needs to return a -1 for PageId if it's null. Relevant corrected sql is below
PageID = ISNULL((SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate())), -1),
which needs to replace this
(SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate()) ) As PageID,
in [mp_ForumThreads_SelectPageByUser] stored procedure
Add forum module to a page and create a forum Add a post to the forum Remove the forum module from the page, don't delete it Go to Member List > Manage > User Activity > View Posts
The sql needs to return a -1 for PageId if it's null. Relevant corrected sql is below
PageID = ISNULL((SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate())), -1),
which needs to replace this
(SELECT TOP 1 PageID FROM mp_PageModules WHERE mp_PageModules.ModuleID = f.ModuleID AND (PublishEndDate IS NULL OR PublishEndDate > getutcdate()) ) As PageID,
in [mp_ForumThreads_SelectPageByUser] stored procedure
need to do similar in other db layers