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 ForumsBlogBlogHaving trouble deleting a blogHaving trouble deleting a blog
Previous
 
Next
New Post
2/6/2009 1:14 PM
 

This explains absolutely everything! I had a feeling that there was one critical thing I didn't know about this module.

Thanks again

 
New Post
2/23/2009 8:55 PM
 

* deleted... problems with this module keep changing

 
New Post
8/19/2009 6:58 AM
 

 Hiya,

I'm having a very similar problem to this. A user created a blog named 'Stevie's Blog'. I then had to delete that user (to fix another problem I was having), but I forgot to delete their blog when the user still existed. 

Is there a way I can delete that blog now?

Thanks

Laura

 
New Post
8/20/2009 10:59 AM
 

Hi Laura,

Did the blog have entries, or was it just a blog that was created?  Do you know what the UserID was for the user that was deleted?

Actually, you can do this (after backuping up your database:)):

From the Host | SQL tool, execute the following:

SELECT blogID, UserID, Title from {databaseOwner}{objectQualifier}Blog_blogs

In the list, find the BlogID that you want to delete.  Note this ID, its referenced in the SQL below as n.  Then execute this:

SELECT EntryID, Title from {databaseOwner}{objectQualifier}Blog_Entries WHERE BlogID = n

At this point, you're just checking to see if there are entries.  If there are, then you can execute the following SQL to see if there are comments:

SELECT e.EntryID, e.Title, c.Title from {databaseOwner}{objectQualifier}Blog_Entries e JOIN {databaseOwner}{objectQualifier}Blog_Comments c ON e.EntryID = c.EntryID WHERE BlogID = n

If there are comments, you can delete them all by running the following (you'll check the Run as Script checkbox for this statement):

DELETE FROM {databaseOwner}{objectQualifier}Blog_Comments from {databaseOwner}{objectQualifier}Blog_Entries e JOIN {databaseOwner}{objectQualifier}Blog_Comments c ON e.EntryID = c.EntryID WHERE BlogID = n

Then run the following to delete all the entries (remember to check the Run as Script option):

DELETE FROM {objectQualifier}Blog_Entries WHERE BlogID = n

Finally, you can delete the blog itself by running the following SQL using the Run as Script option:

DELETE FROM {objectQualifier}Blog_Blogs WHERE BlogID = n

Hope this helps,

Don



Don Worthley
Software Architect
Element Eleven

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogHaving trouble deleting a blogHaving trouble deleting a blog


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