post_move_instead_deleting Mod

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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

post_move_instead_deleting Mod

Beitrag von retep »

I have found this:
Forum for deleted posts
This forum will content all posts a user or mod (next option!) have deleted. Enter 0 or nothing at this field to disable this function.
so I made a new forum, and hide it from the normal users. its number was 3 so I put in 3 tried f=3 and 0003, nothing is working post are just deleting, what could be going wrong ?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Are you testing as an admin? Admins will still delete and NOT move the 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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

I did test it with a "normal" user
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

At first you must enter a valid forum_id as a strict numeric value. 3 will be right.
And then please attach your functions_post.php to take a look on this file...
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

someting is going wrong, I can not attach a file
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Attach this file as a zip archive, not as a php file ;)
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

thank :)

[ Attachment gelöscht am Mi 28.Jun, 2006 09:33 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

You haven't inserted this part:

Code: Alles auswählen

#
#-----[ FIND ]------------------------------------------
#
function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id)
{
	global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
	global $userdata, $user_ip;

#
#-----[ AFTER, ADD ]------------------------------------------
#
	if (intval($board_config['delete_post_forum']) != 0)
	{
		$sql = "SELECT * FROM " . FORUMS_TABLE . "
			WHERE forum_id = " . $board_config['delete_post_forum'];
		if (!$result = $db->sql_query($sql))
		{
			message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
		}
		$forum_count = $db->sql_numrows($result);
		$db->sql_freeresult($result);

		$forum_check = ($forum_count != 0) ? TRUE : 0;
	}
	else
	{
		$forum_check = 0;
	}
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

OK, but now I see on the begin page that the hidden forum gets post when post in an other forum are deleted but when I go in to to that forum it says there are not any post.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, resync your forums and retry.
Do you have install the Categories Hierarchy MOD?
Or using the phpBB2 Plus?
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

resyning is working, I use the standaard phpbb board and did not use the mod you mentioned.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And you can now enter the "deleted" 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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

I can read them, I do not know what you mean by enter ?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The same as "read"...
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

hmm, its stil not working as it suspose to, somtimes its works, some times not :(
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, a problem with resyncing the topics and forums.
Please attach your functions_posts.php and viewtopic.php here to fix this. Maybe...
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

ok here you have

[ Attachment gelöscht am Mi 28.Jun, 2006 09:33 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

You have replaces and inserted the wrong codes.
Here the fixed functions_post.php:

[ Attachment gelöscht am Mi 28.Jun, 2006 09:33 von oxpus ]
Zuletzt geändert von oxpus am Di 27.Jun, 2006 23:32, insgesamt 1-mal geändert.
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

if I delete a post no the post number is not going up, if I press resync in the administratie panel ist going up, but I can not see the mesage
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Will you get an error message?
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

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

Beitrag von oxpus »

And only after resyncing the forums on ACP you can read the messages?

If so attach the admin_forums.php to compare...
Zuletzt geändert von oxpus am Mi 28.Jun, 2006 08:37, insgesamt 1-mal geändert.
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

no, if I resync the the "delete" forum the number of post goes up, but I can not see anything.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

And if you enter the direct link to a deleted posts it will not be displayed?

Try this new functions_posts.php...
Zuletzt geändert von oxpus am Mi 28.Jun, 2006 09:33, insgesamt 1-mal geändert.
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!
retep
Beiträge: 13
Registriert: Mo 26.Jun, 2006 00:38

Beitrag von retep »

direct link did not work

new php file does seem to work, thanks :)
Antworten