Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumCall for bugs..Call for bugs..
Previous
 
Next
New Post
1/9/2006 2:35 PM
 

The What's New links are fine in both places. It's the statistics links in the left of the box - most active users and the like - that are incorrect.


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
1/9/2006 2:41 PM
 

I'm not sure how far you have come in your migration from YAF to DNN Forums, but I made this script a while back.
As the Forum is updated and I have not looked at the new tables incase there are any changes, but I guess the script will be close enough.

http://www.findeus.com/Forum/YAF2DNN/tabid/53/Default.aspx

Cheers,
/Rob

Edit: After doing this post I realized this thread was multipaged (ehrm). I answered on a very early post on page one!, well anyhow the script is there.

 
New Post
1/9/2006 2:52 PM
 

Roger, I am in the process of breaking all this stuff out into its own classes so it can easily be used by seperate modules, using a single class instead of duplicating code.  During that time it should all be corrected if there are any problems.  (I have not seen this problem yet myself)

Rob, I think everything datawise is about the same now as it was then in terms of table data.  Whoever attempts this should give it a quick look over first though and test on a offline install that is backed up.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
1/10/2006 11:37 AM
 

Crispy,

I tried today to add some new smileys into SmileyGallery. Adding went ok, however, when I use them in messages, they are replaced with default smiley.gif. I have to mention that I synchronized the database and the file system, in File Manager, after seeing my new smileys aren't used, however situation didn't improve - still same smiley is used, although if I enter in Edit message, I see EMONewSmiley.gif/EMO (i have skipped the [ and ] here. Somehow, the smileys are ignored.

What to do? Is this a bug? Do I have to do something in order make them show?

 
New Post
1/11/2006 7:00 AM
 

Chris,

I've found a bug in the Forum_WhatsNewGetAll stored procedure. This procedure currently retrieves the last PostID from each Thread in the order lowest to highest, and then select ths first n (where the default n is 10). This has the result of returning the lowest/oldest 10 threads.

I think you need to retrieve the the PostID in order highest to lowest, and then select the first n.

I've highlighted my changes below. I've also changed the order by in the output select, to counteract the change in the temporary table retrieve.

I thought it might be worth adding in a date selection in the first retrieval so as to reduce the temporary table size (since with 10K threads on a forum, there would be 10K rows), but I stored procedure skills aren't up to it, I get date conversion errors.

Cheers
Roger

--------------------------------------------------------------------------------------------

 

CREATE procedure dbo.Forum_WhatsNewGetAll
(
 @ModuleID int,
 @NumberOfThread int, 
 @UserID  int, 
 @FromDate  datetime,
 @ToDate  datetime,
 @Filter  nvarchar(500)
)
AS
-- Create a temp table to store the select results
CREATE TABLE #PageIndex
(
 IndexID  int IDENTITY (1, 1) NOT NULL,
 PostID int)
DECLARE @sql nvarchar(1000)
SELECT @sql =  'INSERT INTO #PageIndex (PostID)' +
  ' SELECT Max(PostID) As PostID' +
  ' FROM Forum_Posts, Forum_Threads, Forum_Forums, Forum_Groups (nolock) ' + 
  ' WHERE ModuleID = ' +  CONVERT(varchar, @ModuleID) +
  ' AND Forum_Groups.GroupID = Forum_Forums.GroupID' +
  ' AND Forum_Forums.ForumID = Forum_Threads.ForumID' +
  ' AND Forum_Threads.ThreadID = Forum_Posts.ThreadID' +  
  ' AND Forum_Posts.IsApproved = 1' +
  ' AND Forum_Posts.IsLocked = 0' +
  ' AND (Forum_Threads.ForumID NOT IN (SELECT ForumID FROM Forum_PrivateForums) OR' +
  ' Forum_Threads.ForumID IN (SELECT ForumID FROM Forum_PrivateForums (nolock) ' +
  ' WHERE RoleID IN (SELECT RoleID FROM UserRoles (nolock) WHERE UserID =' + CONVERT(varchar, @UserID) +   
  ')))' +
  @Filter +
  ' GROUP BY Forum_Posts.ThreadID' +
  ' ORDER BY Max(Forum_Posts.PostID) DESC'
Print @sql
EXEC(@sql)
SELECT  
 G.ModuleID,        
         T.ForumID,
 F.Name AS ForumName,
         P1.ThreadID,
 P1.PostID As LastPostID,
         P2.UserID As StartedByUserID,
         U2.Alias As StartedByAlias,
 P2.Subject As StartedSubject,
         P1.Subject As LastSubject,
 P1.UserID As LastPostUserID,
         U1.Alias As LastPostAlias,
        P1.Body As LastPostBody,
         P1.CreatedDate As LastCreatedDate
FROM
 #PageIndex PageIndex (nolock), Forum_Posts P1 (nolock), Forum_Posts P2 (nolock), Forum_Threads T (nolock), Forum_Forums F (nolock), Forum_Groups G (nolock), Modules M (nolock), Forum_Users U1 (nolock), Forum_Users U2 (nolock)
WHERE 
 P1.PostID = PageIndex.PostID AND
 P1.CreatedDate > @FromDate AND
 P1.CreatedDate < @ToDate AND
 P1.ThreadID = T.ThreadID AND
 P1.ThreadID = P2.PostID AND  
 P1.UserID = U1.UserID AND 
 P2.UserID = U2.UserID AND
 T.ForumID = F.ForumID AND
 F.GroupID = G.GroupID AND
 G.ModuleID = M.ModuleID  AND
 PageIndex.IndexID <= @NumberOfThread
ORDER BY
 PageIndex.IndexID
GO


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumCall for bugs..Call for bugs..


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out