The Bad Astronomer wrote: I just installed it (I just upgraded to 2.0.14) and I get "Internal Server Error" when I click on the link in my admin panel. My error log gives me the dreaded and somewhat useless "Premature end of script header" error for /admin/admin_prune_user_posts.php.
Any ideas?
pennino wrote: Hi R45!
I would like only to delete CLOSED TOPICS from my forums. I'm using phpbb 2.0.15 and MySQL 4.0.20 on another machine.
This version of MySQL (I cannot upgrade it!) does not allow me to run a such SQL query:
DELETE FROM phpbb_posts_text INNER JOIN (phpbb_posts INNER JOIN phpbb_topics ON phpbb_topics.topic_id=phpbb_posts.topic_id) ON phpbb_posts_text.post_id=phpbb_posts.post_id WHERE phpbb_topics.topic_status=1 AND phpbb_topics.forum_id=35
So, I would like to try your MOD.
Is your MOD compatible with phpbb 2.0.15 and does it allow me only to delete closed topics?
Could I do that thing only by selecting the name of the forum ("Forums to prune"), specifying no username and no other info in "Users to prune" area, "All posts" in "Date criteria" and also setting "Expemt Open Topics" to YES? ( http://phpbb.rasadam.com/demo.php?id=1 ).
Thanks in advance!
Looks like a bug to me, should be// Mark posts in topic for deletion (if there are other posts in this thread)
if($posts[$i]['topic_last_post_id'] != $posts[$i]['topic_last_post_id'])
// Mark posts in topic for deletion (if there are other posts in this thread)
if($posts[$i]['topic_first_post_id'] != $posts[$i]['topic_last_post_id'])
Coagulant wrote: In admin/admin_prune_user_posts.phpLooks like a bug to me, should be// Mark posts in topic for deletion (if there are other posts in this thread)
if($posts[$i]['topic_last_post_id'] != $posts[$i]['topic_last_post_id'])// Mark posts in topic for deletion (if there are other posts in this thread)
if($posts[$i]['topic_first_post_id'] != $posts[$i]['topic_last_post_id'])
dzm wrote: I know the nobody is actively working on this, but if there WERE I'd ask for this enhancement:
Overview: Provide a "save" checkbox that appears for moderators next to threads when viewing forums (or search results) that prevents auto-pruning (or this module in this case) from deleting the thread. Provide a "save" checkbox for all individual messages (which by default inherit the state of their parent thread) visible to me and mods when viewing the contents of threads. Allow me to purge everyone older than a certain date EXCEPT the items that have Save checked.
Why: This allows me to have long idle but still open threads that contain useful archival information. If somebody desired they could resurrect the thread by posting to it. This would not require me to lock my saved threads in order to protect them for this module's purges.
Ultimately I would prefer to see this somehow integrate with the automated pruning feature already in phpBB2, but would be just as happy with a cron job that ran daily to perform the actual purge.