Disallow editing of reported posts.

A perfect place for code snippets to small to be a MOD or a library.
Or for examples on how to use our libraries.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Disallow editing of reported posts.

Postby tumba25 » 05 May 2011, 23:43


User avatar
Ooopsie
Supporter
Supporter
Posts: 1213
Joined: 19 Aug 2010, 16:34
Location: Index, WA
Contact:

Re: Disallow editing of reported posts.

Postby Ooopsie » 08 May 2011, 13:44

Something like this has never crossed my mind. Many thanks for the snippet....

Oopsie
_____
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss

_____
And be kinder than necessary, for everyone
you meet is fighting some kind of battle.

Kroketten
New member
New member
Posts: 2
Joined: 19 Dec 2012, 07:16
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Disallow editing of reported posts.

Postby Kroketten » 19 Dec 2012, 07:20

Thanks, it's awesome!

brunoais
New member
New member
Posts: 1
Joined: 21 Dec 2012, 23:21
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Disallow editing of reported posts.

Postby brunoais » 21 Dec 2012, 23:30

Nice touch ;).
I hope phpBB 3.1 comes quick. With that one this change is not needed anymore.

Kroketten
New member
New member
Posts: 2
Joined: 19 Dec 2012, 07:16
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Disallow editing of reported posts.

Postby Kroketten » 22 Dec 2012, 10:33


User avatar
bonelifer
Administrator
Administrator
Posts: 477
Joined: 24 Jun 2006, 17:48
Real name: William
Location: htpc.MythBuntu
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Disallow editing of reported posts.

Postby bonelifer » 22 Dec 2012, 17:58

Because brunoais participates at phpBB's development board(AREA51): http://area51.phpbb.com/phpBB/

Post Revisions:
http://area51.phpbb.com/phpBB/viewtopic ... 08&t=42893

This means a copy of a previous version of the post will remain in the DB.

Soft Delete:
http://area51.phpbb.com/phpBB/viewtopic ... 08&t=32712
https://github.com/phpbb/phpbb3/pull/1017

This means even if they delete the post, as long as they don't have the "Can permanently delete own posts" permission, then the post is only SOFT DELETED.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “3.0 Code snippets”

Who is online

Users browsing this forum: No registered users and 2 guests