Joas Schilling
f77a6eaab5
[feature/soft-delete] Fix the rest of *_approved and the delete_post unit test
...
PHPBB3-9567
2012-11-10 11:24:52 +01:00
Joas Schilling
9c2a58eff4
[feature/soft-delete] Append _approved to *_posts and *_topics column names
...
PHPBB3-9567
2012-11-09 13:37:53 +01:00
Joas Schilling
dac798deff
[feature/soft-delete] Display soft deleted icon on search.php
...
PHPBB3-9567
2012-11-09 12:33:50 +01:00
Joas Schilling
8512543cf4
[feature/soft-delete] Use request object instead of direct access
...
PHPBB3-9567
2012-11-09 12:32:27 +01:00
Joas Schilling
fc110a7332
[feature/soft-delete] Remove the current work around on ajax confirm problem
...
PHPBB3-9567
2012-11-09 12:09:46 +01:00
Joas Schilling
1c584ef8ba
[feature/soft-delete] Use JS to display softdeleted/ignored posts
...
PHPBB3-9567
2012-11-09 11:46:17 +01:00
Joas Schilling
bb173afe3f
[feature/soft-delete] Fix adding posts to *_posts when restoring soft deleted
...
PHPBB3-9567
2012-11-08 22:17:59 +01:00
Joas Schilling
885e19e58a
[feature/soft-delete] Provide the options for permanent delete via AJAX
...
AJAX confirm_box should be able to call the template file given. The confirm
message is HTML so far, but generating the HTML in the php code is not, what
we want.
PHPBB3-9567
2012-11-04 01:17:22 +01:00
Joas Schilling
269330749f
[feature/soft-delete] Fix naming of soft delete (we wont use that in the UI)
...
PHPBB3-9567
2012-11-03 23:37:35 +01:00
Joas Schilling
334265fc83
[feature/soft-delete] Fix displaying the button/permission
...
When the post is already softdeleted the options should only be available if
*_delete is granted.
PHPBB3-9567
2012-11-03 22:57:49 +01:00
Joas Schilling
dfcfccf537
[feature/soft-delete] Fix deleting via post editing
...
PHPBB3-9567
2012-11-03 22:53:54 +01:00
Joas Schilling
6999d776d4
[feature/soft-delete] Correctly manage soft deleting via MCP
...
PHPBB3-9567
2012-11-02 14:23:17 +01:00
Joas Schilling
63e3baf0eb
[feature/soft-delete] Correctly manage softdeleting via posting.php
...
PHPBB3-9567
2012-11-02 14:14:20 +01:00
Joas Schilling
bed82bf2bd
[feature/soft-delete] Invert the logic on confirm box
...
Permanent delete is now the checkbox rather then softdelete.
PHPBB3-9567
2012-11-01 22:23:35 +01:00
Joas Schilling
8d05dad634
[feature/soft-delete] Display message when the posts are already soft deleted
...
PHPBB3-9567
2012-10-31 21:28:06 +01:00
Joas Schilling
18dec1026a
[feature/soft-delete] Fix restoring/approving posts with mcp moderation
...
PHPBB3-9567
2012-10-31 14:09:23 +01:00
Joas Schilling
f0e2d21f8c
[feature/soft-delete] Allow to soft delete posts in the MCP quick moderation
...
PHPBB3-9567
2012-10-30 21:46:04 +01:00
Joas Schilling
ed602857e6
[feature/soft-delete] Correctly increase topics post counts when posting
...
PHPBB3-9567
2012-10-28 22:37:00 +01:00
Joas Schilling
4a8d38aab1
[feature/soft-delete] Allow soft deleting/restoring topics via quickmoderation
...
PHPBB3-9567
2012-10-27 17:12:34 +02:00
Joas Schilling
7b3d794cad
[feature/soft-delete] Display post delete reason if one is given
...
PHPBB3-9567
2012-10-24 19:58:28 +02:00
Joas Schilling
f21fd469bc
[feature/soft-delete] Handle soft deleting via Delete Icon
...
PHPBB3-9567
2012-10-24 19:52:16 +02:00
Joas Schilling
5c6a3d8845
[feature/soft-delete] Revert doc fix from b8c55291
...
It should be fixed separately
PHPBB3-9567
2012-10-24 09:48:22 +02:00
Joas Schilling
b3d5f2b4e4
[feature/soft-delete] Fix unit tests for delete_posts()
...
PHPBB3-9567
2012-10-23 23:37:25 +02:00
Joas Schilling
727759c4d8
[feature/soft-delete] Fix disapproving posts/topics in queue
...
PHPBB3-9567
2012-10-23 22:47:57 +02:00
Joas Schilling
43e6b3a921
[feature/soft-delete] Fix some more topic/post count handling
...
Only disapproving in queue is missing.
PHPBB3-9567
2012-10-23 16:59:33 +02:00
Joas Schilling
fec72c4b78
[feature/soft-delete] Fix mcp_move_topic() topic/post count handling
...
PHPBB3-9567
2012-10-23 12:52:31 +02:00
Joas Schilling
eb9c39971b
[feature/soft-delete] Fix forum syncing in ACP and deleting posts
...
PHPBB3-9567
2012-10-22 17:34:37 +02:00
Joas Schilling
0a07635329
[feature/soft-delete] Fix convertor and one mcp issue
...
PHPBB3-9567
2012-10-22 17:21:56 +02:00
Joas Schilling
90154db1db
[feature/soft-delete] Fix submit_post() topic_replies* usage
...
PHPBB3-9567
2012-10-22 16:38:53 +02:00
Joas Schilling
5925a17894
[feature/soft-delete] Fix some more uses of topic_replies_real
...
PHPBB3-9567
2012-10-22 14:55:10 +02:00
Joas Schilling
168dd29f24
[feature/soft-delete] Fix sync() and some more functions to use the new fields
...
PHPBB3-9567
2012-10-22 14:22:56 +02:00
Joas Schilling
9945561b4b
[feature/soft-delete] Correctly calculate the number of replies everywhere
...
PHPBB3-9567
2012-10-22 11:14:00 +02:00
Joas Schilling
6c39563e9f
[feature/soft-delete] Add a function to calculate the actual post/topic count
...
PHPBB3-9567
2012-10-21 23:38:55 +02:00
Joas Schilling
2fafa54107
[feature/soft-delete] Update the new fields while updating the board.
...
PHPBB3-9567
2012-10-21 23:38:29 +02:00
Joas Schilling
9c5482317e
[feature/soft-delete] Add new fields for topic/post counts for softdelete
...
We can not use the replies vs replies_real anymore, as we need to be able to
determinate whether the posts are unapproved or softdeleted. So we need to add
a new field and there by change the second one for consistency.
We also add the posts_* fields for forums, which are a missing feature.
PHPBB3-9567
2012-10-21 22:33:28 +02:00
Joas Schilling
e7a137820b
[feature/soft-delete] Use correct language when restoring topics in MCP
...
PHPBB3-9567
2012-10-21 22:30:20 +02:00
Joas Schilling
0822d2bb61
[feature/soft-delete] Split unapproved/soft deleted posts from topics
...
If a topic is soft deleted through a moderator, the topic_delete_user is set.
If it is passively soft deleted (f.e. while the only approved post is deleted)
the topic_delete_user is not set. This way, we can distinguish between these
two cases. The same also applies to unapproved posts. So we need to set the
topic_delete_user when an unapproved topic is posted.
Topics that were soft deleted/unapproved by a user (rather then passive) are
going to be displayed in the Topics modules, while all others are in the posts
modules of the MCP queue.
PHPBB3-9567
2012-10-17 15:32:57 +02:00
Joas Schilling
2adb37049e
[feature/soft-delete] Display guest username in topic list instead of "Guest"
...
PHPBB3-9567
2012-10-17 15:23:16 +02:00
Joas Schilling
43d041bdec
[feature/soft-delete] Removed unused old functions
...
PHPBB3-9567
2012-10-16 14:20:23 +02:00
Joas Schilling
722835a4ba
[feature/soft-delete] Merge approving and restoring topics into one function
...
PHPBB3-9567
2012-10-16 14:18:56 +02:00
Joas Schilling
51d54109e0
[feature/soft-delete] Merge approving and restoring posts into one function
...
PHPBB3-9567
2012-10-16 13:55:22 +02:00
Joas Schilling
3773cbdf85
[feature/soft-delete] Fix displaying of details module
...
PHPBB3-9567
2012-10-15 20:51:31 +02:00
Joas Schilling
33073fafbe
[feature/soft-delete] Add module for soft deleted topics
...
Unapproved/soft deleted posts are posts, that have a different visibility than
the topic. All others will be hidden from the posts list and can be managed
with the topic modules.
PHPBB3-9567
2012-10-15 15:53:32 +02:00
Joas Schilling
b1ce8a8c13
[feature/soft-delete] Add checkbox to restoring posts like on approve
...
PHPBB3-9567
2012-10-15 15:19:32 +02:00
Joas Schilling
a92927d24c
[feature/soft-delete] Turn other functions into methods as well
...
PHPBB3-9567
2012-10-15 15:05:02 +02:00
Joas Schilling
7c2cc9cfef
[feature/soft-delete] Turn restore_post() into a method and add the docs
...
PHPBB3-9567
2012-10-15 14:02:16 +02:00
Joas Schilling
a58a76ef5f
[feature/soft-delete] Fix permission check in viewtopic.php
...
PHPBB3-9567
2012-10-15 13:17:05 +02:00
Joas Schilling
4bf922fa03
[feature/soft-delete] Fix restoring posts via MCP
...
PHPBB3-9567
2012-10-13 19:00:08 +02:00
Joas Schilling
18f77020e5
[feature/soft-delete] Fix several problems in the forum mcp
...
PHPBB3-9567
2012-10-10 23:10:46 +02:00
Joas Schilling
e4c9e55b53
[feature/soft-delete] Fix several issues within submit_post()
...
- $post_visibility is not boolean, so we need to check for == ITEM_APPROVED
- sync() already updates the topic/forum info, so we don't need to do that again
- use set_post_visibility() when changing the posts visibility
Should be ready for testing.
PHPBB3-9567
2012-10-09 22:24:06 +02:00