I can't see the posts of the Post move instead deleting

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!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

I can't see the posts of the Post move instead deleting

Beitrag von mariokaz »

Hi my friend!! :D

I have a little problem with your great Mod "Post move instead deleting", the problem is when I want to see any of the deleted post(the posts that have the tittle of "Deleted post from Topic-ID ###) in the forum that I created to saving them, appears this error message: ^5

Fatal error: Cannot redeclare make_forum_select() (previously declared in /home/mariocaz/public_html/inicio/includes/functions_admin.php:27) in /home/mariocaz/public_html/inicio/includes/functions_admin.php on line 27

So I don't know what is happen and I ask your preciate help with this. ¢¦

I put here tha file that I think have the problem of this, but if u need another one please tell me and in the moment I put it ok. ;)

Cheers. :p

[ Attachment gelöscht am Sa 20.Mai, 2006 03:19 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Find in the file includes/functions_posts.php the line

Code: Alles auswählen

	include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
and replace it with

Code: Alles auswählen

	include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx);
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 »

Hello my friend I did that but again when I want to enter to that posts in this subforum, appears the same error messages: ^5

Fatal error: Cannot redeclare make_forum_select() (previously declared in /home/mariocaz/public_html/inicio/includes/functions_admin.php:27) in /home/mariocaz/public_html/inicio/includes/functions_admin.php on line 27

I put my Files again for if need it. :p

[ Attachment gelöscht am Sa 20.Mai, 2006 10:41 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

So search EACH line I've posted in my last post and replace include with include_once...
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!
Benutzeravatar
yakusha
Beiträge: 7
Registriert: Sa 08.Apr, 2006 05:18

Beitrag von yakusha »

my idea!

open file and delete space became <?php *** code *** ?>

/ı dont speak english :(
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Jeje again I change all that lines with ths code that u put and the same thing, appears that error message: ¦4

Fatal error: Cannot redeclare make_forum_select() (previously declared in /home/mariocaz/public_html/inicio/includes/functions_admin.php:27) in /home/mariocaz/public_html/inicio/includes/functions_admin.php on line 27
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, do the same on lines, where the functions_admin.php will be included...
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 »

In includes/functions_admin.php there aren't any lines with the code includes :eek:
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

NOT in functions_admin.php! :hh:

A file can't include itself !

In functions_post.php!
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 »

Jejejeje ok ok, but anyway I don't understand u very well sorry. :(

What I have to do and I do it, please tell me. :p

If u refer this line in includes/functions_posts.php file:

Code: Alles auswählen

include_once(bb_root_path . 'includes/functions_admin.' . $phpEx
That one already is changed include to include_once.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, look also on viewtopic.php and viewforum.php...
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 »

In viewtopic.php I didn't find

Code: Alles auswählen

include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
But I find this one:

Code: Alles auswählen

include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
That one I have to change like this?

Code: Alles auswählen

include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx);

And in viewforum.php I dind't find any of that lines

............'includes/functions_search.'.$phpEx);

............'includes/functions_admin.'.$phpEx);

with include and also with include_once. ^6
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Replace all include with include_once!
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 »

All the line that are like this:

Code: Alles auswählen

include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
Change it like this: :eek:

Code: Alles auswählen

include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
Only in viewtopic and vewforum.php files ?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, for now in both files...
Zuletzt geändert von oxpus am Sa 20.Mai, 2006 20:28, 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!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Ok let me try that now.

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

Wow now yes!!! jeje and I only changed in viewtopic.php the lines:

Code: Alles auswählen

include(bb_root_path . 'includes/functions_admin.'.$phpEx)
to

Code: Alles auswählen

include_once(bb_root_path . 'includes/functions_admin.'.$phpEx)
I left that files with that changes ?? (functions_posts.php and viewtopic.php files)

And in the feature I will not have any problems for that ?

The only thing now is when I want to see that deleted topics appears a message that the that posts doesn't exist for that topic ^6

This is the message of the forum:

Bild

But that message appears always since I installed the Mod.
Zuletzt geändert von mariokaz am Sa 20.Mai, 2006 20:40, insgesamt 4-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, let the changes as they are now done.
The forum may run a little bit faster, too...

And for the error message:
When this message will be displayed?
After deleting the file or everytime?
Regard, that Admins will still delete and NOT move posts!
So this message is not an error, because the deleted post still not exists any longer ;)
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 »

That message appears when I want to enter in any of the deleted posts for my users.

Is that normal ?? because how can I see the posts in the hidden forum that my users delete ??
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hmpf, the forum permissions are correct?
And you have entered the right valid forum id for 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!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Yes My friend the permissions of that forum are correct.

And yes I entered the right valid forum id for the deleted posts, if not the posts doesn't appears in that forum and yes I see it but that message appears when I want to enter and see it.

I put here an Image of that forum:

Bild

But only I can't enter to those topics because all the other topics that I put there yes I can see it.

U can take a look in my files. :p

[ Attachment gelöscht am Sa 20.Mai, 2006 21:26 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The installation is correct, but the posts are not moved and/or not resynced.
Resync the forums on ACP and retry...
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 let me try that

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

Why if they aren't moved I see it in the hidden forum that I created for this ???? (they are showed in the Image that I putted here)

Also I resynced all my forums and the same thing I can't read-enter in that posts. ^6 ¦4

And also I did a test with a normal user... I deleted one post and then I logged with my normal nick(admin.) so I see that yes automatically moved that post to the hidden forum but again I can't read it or enter in it. ^5
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, maybe an error from another mod.
Please let me take a look on your viewtopic.php...
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 »

Of course my friend and also tell me if u need another files ok. :D

[ Attachment gelöscht am So 21.Mai, 2006 11:16 von oxpus ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I'd rechecked your functions_posts.php and found a little installation error.
So use this new file.

You must delete the both malfunction topics. They can't now be used...
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