Page 1 of 23

Soft Delete

Posted: Fri Feb 08, 2008 8:45 pm
by Extensions Robot
Modification name: Soft Delete
Author: Dugi
Modification description: Changes the current hard delete scheme to all soft deleting for posts and topics. Also includes the option to undelete posts and topics after they have been soft deleted. New permissions give the option to allow administrators and/or moderators to hard delete posts/topics after they have already been soft deleted.

Warning: A number of bugs seem to exist when using this with newer versions of phpBB, it IS NOT RECOMMENDED that you use this modification anymore.

UPDATE:

As of September 15th 2013, I (Dugi) took over development of this modification. I'm currently trying to list all bugs and feature requests and I'm going to need everyone's help for this. Once I have a list with all caught bugs and your requests, I'll fix/add them all and provide an up to date package. Hopefully I'll manage to do all this before the 3.1 release, which will have the Soft Delete feature included by default.

Refer to this topic to report bugs or request features.

Modification version: 1.0.15
Tested on phpBB version: 3.0.6

Download file: Soft Delete 1.0.15.zip
File size: 93.84 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Soft Delete

Posted: Fri Feb 08, 2008 8:45 pm
by Paul
Modification validated/released

Notes:

Soft Delete

Posted: Fri Feb 08, 2008 8:45 pm
by EXreaction
Starting with 1.0.11, you must be running >= phpBB 3.0.1 to install this. If you are still running phpBB 3.0.0 or earlier, follow the instructions in contrib/install_phpBB300.xml

Some quick screenshots of what a post looks like when it is soft deleted:
http://www.lithiumstudios.org/forum/vie ... f=31&t=389

Support by the author is only provided at http://www.lithiumstudios.org
A small fee is required for support by the author unless otherwise specified by the author in the release topic.
Bug reports are accepted and, if confirmed as a bug, you will receive support for fixing the bug for free by the mod author.

Re: Soft Delete

Posted: Sat Feb 09, 2008 11:37 am
by GregorK
Great mod!
What I found out is after you soft/hard delete a thread, the last post still shows up on the forums "LAST POST" quick link.

Here are German translations:

Code: Select all

'acl_f_delete'		=> array('lang' => 'Kann eigene Beiträge weich löschen', 'cat' => 'actions'),

Code: Select all

'acl_m_delete'		=> array('lang' => 'Kann Beiträge weich löschen', 'cat' => 'post_actions'),
	'acl_m_harddelete'	=> array('lang' => 'Kann Beiträge hart löschen', 'cat' => 'post_actions'),

Code: Select all

$lang = array_merge($lang, array(
	'DELETED_POST_SHOW'				=> 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
	'TOPIC_SOFT_DELETED'			=> 'Dieses Thema wurde gelöscht.',
));

Code: Select all

$lang = array_merge($lang, array(
	'DELETED_POST_SHOW'				=> 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
	'POST_IS_DELETED'				=> 'Dieser Beitrag wurde von %1$s in %2$s weich gelöscht . Klicke %3$shier%4$s um den Beitrag wieder herzustellen.',
	'POST_SHOW_NO_JS'				=> 'Du musst Javascript aktiviert haben um diesen Beitrag anzuzeigen.',
));

Re: Soft Delete

Posted: Sat Feb 09, 2008 9:46 pm
by goethe
GregorK wrote:

Code: Select all

'acl_m_delete'		=> array('lang' => 'Kann Beiträge weich löschen', 'cat' => 'post_actions'),
	'acl_m_harddelete'	=> array('lang' => 'Kann Beiträge hart löschen', 'cat' => 'post_actions'),
Should be:

Code: Select all

'acl_m_delete'		=> array('lang' => 'Kann Beiträge weich löschen', 'cat' => 'post_actions'),
	'acl_m_harddelete'	=> array('lang' => 'Kann Beiträge hard löschen', 'cat' => 'post_actions'),

Re: Soft Delete

Posted: Mon Feb 11, 2008 1:01 am
by SecondShoe
Is this mod available for ProSilver only?
My default style is SubSilver based but there is soft_delete.js only for ProSilver. Can I use it for SubSilver?

Re: Soft Delete

Posted: Mon Feb 11, 2008 1:30 am
by EXreaction
It isn't too difficult for it to be made for subsilver2.

Sometime soon I will be updating the package and I'll be sure to list the changes required for subsilver2.

Re: Soft Delete

Posted: Mon Feb 11, 2008 9:04 pm
by goethe
GregorK wrote:Great mod!
What I found out is after you soft/hard delete a thread, the last post still shows up on the forums "LAST POST" quick link.

Here are German translations:

Code: Select all

'acl_f_delete' => array('lang' => 'Kann eigene Beiträge weich löschen', 'cat' => 'actions'),

Code: Select all

'acl_m_delete' => array('lang' => 'Kann Beiträge weich löschen', 'cat' => 'post_actions'),
'acl_m_harddelete' => array('lang' => 'Kann Beiträge hart löschen', 'cat' => 'post_actions'),

Code: Select all

$lang = array_merge($lang, array(
'DELETED_POST_SHOW' => 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
'TOPIC_SOFT_DELETED' => 'Dieses Thema wurde gelöscht.',
));

Code: Select all

$lang = array_merge($lang, array(
'DELETED_POST_SHOW' => 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
'POST_IS_DELETED' => 'Dieser Beitrag wurde von %1$s in %2$s weich gelöscht . Klicke %3$shier%4$s um den Beitrag wieder herzustellen.',
'POST_SHOW_NO_JS' => 'Du musst Javascript aktiviert haben um diesen Beitrag anzuzeigen.',
));
I've made all the necessary corrections::

Code: Select all

'acl_f_delete' => array('lang' => 'Kann eigene Beiträge weich löschen', 'cat' => 'actions'),

Code: Select all

'acl_m_delete' => array('lang' => 'Kann Beiträge weich löschen', 'cat' => 'post_actions'),
'acl_m_harddelete' => array('lang' => 'Kann Beiträge hard löschen', 'cat' => 'post_actions'),

Code: Select all

$lang = array_merge($lang, array(
'DELETED_POST_SHOW' => 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
'TOPIC_SOFT_DELETED' => 'Dieses Thema wurde gelöscht.',
));

Code: Select all

$lang = array_merge($lang, array(
'DELETED_POST_SHOW' => 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
'POST_IS_DELETED' => 'Dieser Beitrag wurde von %1$s in %2$s weich gelöscht . Klicke %3$shier%4$s um den Beitrag wieder herzustellen.',
'POST_SHOW_NO_JS' => 'Du muBt Javascript aktiviert um diesen Beitrag anzuzeigen haben .',
));
B = Esset

Re: Soft Delete

Posted: Tue Feb 12, 2008 10:24 pm
by GregorK
I'm actually not very sure why you would write the german word 'hart' with a d at the end...??
well...

If you like to have the other translation from the soft_delete.php and info_mcp_soft_delete.php language file just drop me a message.

Re: Soft Delete

Posted: Wed Feb 13, 2008 11:37 pm
by goethe
GregorK wrote:I'm actually not very sure why you would write the german word 'hart' with a d at the end...??
well...

If you like to have the other translation from the soft_delete.php and info_mcp_soft_delete.php language file just drop me a message.
You online-translated didn't you. :|

hart = hard as in knock, knok (like hard-tack candy)
hard = hard copy

so: Sie Koennen Beiträge hart löschen. (Formally, since we don't necessarily know these people. They probably are not casual friends with the phpBB interface.)
means: You can delete a hard copy of your contributions.

German is a very contextual language. I'm a member of the German National Honor Society Alpha Epselon ***, my translation is highly accurate. ;)

Your translation was very good, Gregork, but there are some things that don't seem right to me and yet that is just how they are. I keep trying to get Frau to let us re-invent the German language but she won't have it. "What would be the fun in that...?" She says.

Ooooooooooh! Crap! I forgot formalities!

Here are German translations:

I've made ALL the necessary corrections:: (it should be near perfect now. :D )

Code: Select all

'acl_f_delete' => array('lang' => 'Sie koennen eigene Beiträge weich löschen', 'cat' => 'actions'),

Code: Select all

'acl_m_delete' => array('lang' => 'Sie koennen Beiträge weich löschen', 'cat' => 'post_actions'),
'acl_m_harddelete' => array('lang' => 'Sie koennen Beiträge hard löschen', 'cat' => 'post_actions'),

Code: Select all

$lang = array_merge($lang, array(
'DELETED_POST_SHOW' => 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
'TOPIC_SOFT_DELETED' => 'Dieses Thema wurde gelöscht.',
));

Code: Select all

$lang = array_merge($lang, array(
'DELETED_POST_SHOW' => 'Dieser Beitrag wurde weich gelöscht. Klick hier um den Beitrag anzuzeigen.',
'POST_IS_DELETED' => 'Dieser Beitrag wurde von %1$s in %2$s weich gelöscht . Klicke %3$shier%4$s um den Beitrag wieder herzustellen.',
'POST_SHOW_NO_JS' => 'Du muBt Javascript aktiviert um diesen Beitrag anzuzeigen haben .',
));
B = Esset[/quote]

Re: Soft Delete

Posted: Thu Feb 14, 2008 2:35 am
by EXreaction
I would like to keep this topic more for support for the Soft Delete Mod. If possible could you two continue the discussion in PM's until you decide on something final? :)

Re: Soft Delete

Posted: Thu Feb 14, 2008 10:45 pm
by goethe
Sure. Sorry to er, ah, interrupt.


Edit:

Here is finished translation. You may need to edit the finds and replaces. :oops:
View File

Re: Soft Delete

Posted: Sat Feb 16, 2008 1:58 am
by Pseudonym
EXreaction, many thanks for this excellent mod. I've always thought a soft-delete option is a much better system than an unforgiving hard-delete.

Have you considered adding any other features to this mod? With a little tweaking, it could become THE essential tool for phpbb3 moderators.

Here's how I think it could work...
When a moderator edits someone elses post, it automatically copies and soft-deletes a snapshot of the original post. That way, an archive of the unedited post is kept for reference. You'd just need to add a new column to record who deleted it.

I'd be very keen to help you develop this. I'm a good-but-not-expert php programmer (I did release one mod for phpbb2) and I'm not yet familiar with the inner workings of phpbb3. Still, if there's anything I can do, I'm happy to help.

Let me know what you think. :)

Re: Soft Delete

Posted: Sat Feb 16, 2008 2:06 am
by EXreaction
That would be a different mod. This mod is already larger than I like.

Re: Soft Delete

Posted: Sat Feb 16, 2008 7:54 pm
by primehalo
Pseudonym wrote:EXreaction, many thanks for this excellent mod. I've always thought a soft-delete option is a much better system than an unforgiving hard-delete.

Have you considered adding any other features to this mod? With a little tweaking, it could become THE essential tool for phpbb3 moderators.

Here's how I think it could work...
When a moderator edits someone elses post, it automatically copies and soft-deletes a snapshot of the original post. That way, an archive of the unedited post is kept for reference. You'd just need to add a new column to record who deleted it.

I'd be very keen to help you develop this. I'm a good-but-not-expert php programmer (I did release one mod for phpbb2) and I'm not yet familiar with the inner workings of phpbb3. Still, if there's anything I can do, I'm happy to help.

Let me know what you think. :)
Prime Post Revisions should do that.
EXreaction wrote:That would be a different mod. This mod is already larger than I like.
I hear what your saying. My Trash Bin MOD also grew way bigger than I would have liked. I'm especially disatisfied with all the template modifications it requires. Still trying to think up a way around that....