Post move instead deleting MOD is not working!

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Post move instead deleting MOD is not working!

Beitrag von mariokaz »

Hi my friend!! :D

I hope you remember me, I am Mario from Mexico and I have a Phpbb2 Plus 2.0.19. :)

Well today I installed the Post move instead deleting MOD ver. 1.0.1 (also executed the SQL file) in my forum but is not working I don't know why. ^q

I put in the Board Configuration in the ACP the ID of the forum that I want to move(put) all the deleted posts and also I Allowed Moderators to delete posts. ;)

When I delete any post in the forum, yes I can deleted but I when I want to see it in the Forum(hidden) that I put in the ACP for move all the deleted post automatically... is not there. :(

So Am I doing something wrong ?? or I missed something in the installation ?? ^6 , I checked all the installation and everything is well.

Regards,

Mario
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

If you test as an admin:
Admins will still delete not move posts!
Test as a simple user and you cna see the effect.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Jejeje ok but why admin not ??? if I delete any message I want to have it a little time for anything.

Ok I wil do the test in this momment.

---------------


Wooo now yes, but only works if a simple user delete something . ;)

Why don't works with the Moderators and the Admin ??? ^q
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

This mod will not controll the doings of a team member, but check the user activities.
But Admins and Mods are able to move posts to the "garbage"-forum ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Ok thanx for your explication, I thought that this Mod is for the Moderators and Admin, because in my forum like yours is disabled the delete options for the users.

It will be great this MOD working for the Moderators and Admin. because whe you delete any post, in some cases u want to have this deleted posts a little time in a hidden Forum (Recycle-Garbage) for any inconvenience.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Then I must write an completly other mod, because you can't simple change the current one.
If you will just "move" each "deleted" post/topic, no one can really delete this post/topic from the destination forum!

Let the admin delete the posts and disable this for moderators (there's an option on ACP for this).
Min. one user must be able to delete posts or you will get a huge forum with deletes texts ;)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Yes but I prune automatically that Garbage Forum every 2 weeks.

So the option that I let the Moderator to delete posts what is the reason? if they delete a post, this post automatically move to the garbage forum or what ?, because I already had this option enabled in the Forum Permissions.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, this is exactly what I mean.

But again:
Shall really each user included the admin move the posts instead deleting them?
The garbage forum may grown up very fast!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Jajaja Yes my friend all my Moderators and me (Admin) can delete posts, but only we can. (like here I think)

That I want is the all the deleted posts, (reallly we delete very few posts), automatically to the Garbage Forum move when we delete them and save it there for 2-3 weeks (automatically prune there), and save it only for any inconvenience with the owns of that posts (original posters).

Are we in the same channel now ?? jejejeje
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, here we go:

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]------------------------------------------
#
		if ($userdata['user_level'] == ADMIN || ($userdata['user_level'] == MOD && $board_config['mod_allow_delete_post'] == 1))
		{
		$sql = "DELETE FROM " . POSTS_TEXT_TABLE . "
			WHERE post_id = $post_id";
		if (!$db->sql_query($sql))
		{
			message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
		}
		}
		else if ($post_data['first_post'] == '' && $forum_check == TRUE)

#
#-----[ REPLACE WITH ]------------------------------------------
#
		if ($post_data['first_post'] == '' && $forum_check == TRUE)
		{

#
#-----[ FIND ]------------------------------------------
#
				if ($userdata['user_level'] == ADMIN || ($userdata['user_level'] == MOD && $board_config['mod_allow_delete_post'] == 1))
				{
					$sql = "DELETE FROM " . TOPICS_TABLE . "
						WHERE topic_id = $topic_id
							OR topic_moved_id = $topic_id";
					if (!$db->sql_query($sql))
					{
						message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
					}
				}
				else if ($forum_check == TRUE)

#
#-----[ REPLACE WITH ]------------------------------------------
#
				if ($forum_check == TRUE)


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
And you're warned:
No user inclusive each Admin can not delete any post after installing this!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Okidoki but how can I delete all the posts that will be in the Garbage forum ??

Only with the automatic prune there ??

And I think with this code, all the deleted posts automic will be moved to the garbage forum, Am I right ?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Again:
NO USER CAN NOW DELETE ANY POSTS AFTER DOING THIS CODE CHANGES!!!!!

Just the automatic pruning can delete posts!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten