Delete Blog double check.

We had to recover the blog posts and comments; the blog posts were easy, the comments were a bit harder to pick out of the comment table, for a member that claimed their blog just disappeared.  I think they hit the "Delete Blog" button by mistake and clicked OK for "Are you sure" thinking they were OKing something else.  "Are you sure?"  Sure of what?

So I added a clearer message to what they were about to do and added a double check; two alerts, before a blog is actually deleted.  I figure if they click both alerts' OK button they must really want to remove the blog.

One needs to edit the action button for the blog delete.  That can be done in the database or using an actions editor in the backend.

if (confirm('Warning! This will delete all blog posts. This can not be undone.\nClick Cancel to keep your blog posts') && confirm('Final Warning! Are you REALLY sure you want to delete all blog posts?\nClick Cancel to keep your blog posts')) window.open ('{work_url}?action=delete_blog&DeleteBlogID={blog_id}','_self');

Geeks, making the world a better place
Quote · 21 Dec 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.