Post edit

Neue Projekte und Anfragen, Teamarbeiten und Alpha/Beta Scripte jeder Art.
KEINE Supportanfragen zu bestehenden MODs!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Post edit

Beitrag von Blisk »

Is there a MOD which prevent to edit a post after someone reply to latest post.
Because some of users edit their posts after someone reply to it and change their content.
I want to prevent that!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I found a MOD for that, but it is not compatibile with MOD "under contruction post"
If there is a solution for this work together I will be verry happy.
:D
Dateianhänge
disallow_editing_replied_posts_mod_1_0_0.zip
(1.03 KiB) 119-mal heruntergeladen
Under_construction_posts_103.zip
(6.26 KiB) 110-mal heruntergeladen
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Why these mods will be incompatible?
I can't find code for the same places on posting.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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Like I said, it both works OK.
So when I use under construction MOD, I can save a post under construction and than continue to editing a post.
But when I install a disalow editing post, I cannot edit post anymore after I save post under construction.
Because this disalow editing replied post MOD doesn't allow that.

So this MOD disalow editing replied post, should allow editing post if I save it under construction.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, a point I wasn't thinking of.
So try this:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
posting.php

#
#-----[ FIND ]-----
#
//+MOD: Disallow editing replied posts
		if( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD )
		{
			if( $post_id != $post_data['last_post'] )

#
#-----[ REPLACE WITH ]-----
#
//+MOD: Disallow editing replied posts
		if( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD )
		{
			if( $post_id != $post_data['last_post'] && $post_info['post_draft'] != '1' )


#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

MAn, it works.
what can I do withouth you.
Nothing.
all what you fix all works great.
TNX again!
:D
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No problem.
Without me you find another guy to helps you ;)

Nice to hear, that my "brainstorming" works.
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I found out another thing.
User cannot delete anymore their last post.
If nobody didn't reply than they should delete their last post, but it can'a, after instalation of this mod.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Permissions are right setted in the ACP?
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I found, a problem.
Yes it was in ACP, tnx for a hint.
Sometimes I have really stupid questions.
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

It is another problem here.
Moderators cannot edit or delete posts, since this dissallow editing mod is installed.
Can you help me with this, please?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hm, are you sure the user is a moderator of the forum? And you have enable it via ACP to the Mods?
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Sorry this I must check it.
But I think before moderators can edit post.
But I must checkit like I said.
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

[quote="oxpus - Thu 13.Jan, 2005 10:30";p="20384"]Okay, a point I wasn't thinking of.
So try this:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
posting.php

#
#-----[ FIND ]-----
#
//+MOD: Disallow editing replied posts
		if( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD )
		{
			if( $post_id != $post_data['last_post'] )

#
#-----[ REPLACE WITH ]-----
#
//+MOD: Disallow editing replied posts
		if( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD )
		{
			if( $post_id != $post_data['last_post'] && $post_info['post_draft'] != '1' )


#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
[/quote]


NO in ACP is all set OK.
I thin it is the same problem like for Admin
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Admin also can't edit posts?
Hm...
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Admin can edit post now and delete them, but moderators cant.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

:confused:
Moderators gets the same permissions as Admins with this code...
You are really sure, the user on the special forum is really a moderator and not a simple user?
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yes I am sour, you can test it, you are moderator too.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, I'll see the message.
I must test the mods to get the solution.

Stay tuned, we will solve this bug ;)

EDIT
I tested it again and again: A mod account can edit existing posts which users had already replied to.
And the draft can also be edited...
My idea now is you have insert the code to combine both mods in the posting.php at the wrong place or not like I've posted it.
Check it out and attach the posting.php if you are unsure.
And again: Is your "testuser" really a moderator in the forum? Check his/her userlevel. This must be "2".
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

It is a moderator I checked twice, in ACP.
Where can I check this level.
And here is attach.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, a very simple bug:
You have written "MOD" not in big letters.
The acronym mod here was formatting this word wrong...

Here the fixed 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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

TNX for help, didn't know that
:)
But still in ACP there are some problems with moderator rights.
When moderator click a user it get error

The requested module does not exist or you are not an authorized user.

DEBUG MODE

Line : 49
File : /html/forum/admin/pagestart.php
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Not an error I thing. Will the moderator realy have access to the user management?
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!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I think there is an error, because in junior admin i setup for moderator that he can edit user with user list, but when he click to edit user he get the same eror
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Öh, he can see user with userlist, not edit it, if you have just enable this list ;)
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