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 ForumsBlogBlogTrouble getting blog module workingTrouble getting blog module working
Previous
 
Next
New Post
4/2/2008 1:55 PM
 

I'm not sure how it happened, but you seem to have ended up with two blogs assigned to the same user in the same portal.  Theoretically this should never happen in the current version of the blog module (03.04).  If it were me, I would clean this up at the database level.  You can view the list of offending blogs by entering the following Query into the SQL page under the Host tab:

[Edited to account for child blogs]

--- Begin SQL ---

SELECT PortalId, UserId INTO #TempBlogs
FROM {databaseOwner}{objectQualifier}Blog_Blogs
WHERE ParentBlogId = -1
GROUP BY PortalId, UserId
HAVING Count(*) > 1

SELECT b.Title, u.UserName FROM {databaseOwner}{objectQualifier}Blog_Blogs b
 JOIN #TempBlogs tb ON tb.PortalId = b.PortalId AND tb.UserId = b.UserId
 JOIN {databaseOwner}{objectQualifier}Users u ON b.UserId = u.UserId

--- End SQL ---

If this query produces results, then my next step would be to perform a backup of the database (just for sanity sake) and then a delete of the offending record from the Blog_Blogs table.

HTH,

Don

 



Don Worthley
Software Architect
Element Eleven

 
New Post
4/2/2008 1:59 PM
 

I should have mentioned that if you have blog entries and comments related to the entries, you'll need to delete these records first before you delete the entry for the blog.  If you just created the blog and there are no outstanding blog entries related to the blog, then you can just delete the extra entry in Blog_Blogs.  Of course, if you run into any issues, let us know.

Thanks,

Don



Don Worthley
Software Architect
Element Eleven

 
New Post
4/2/2008 6:32 PM
 

I updated my original query to ignore child blogs.



Don Worthley
Software Architect
Element Eleven

 
New Post
4/2/2008 8:48 PM
 

Thank you for the help.  It is working now.  Just deleted the offending records from SQL.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogTrouble getting blog module workingTrouble getting blog module working


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