Post edit
Post edit
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!
Because some of users edit their posts after someone reply to it and change their content.
I want to prevent that!
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.

If there is a solution for this work together I will be verry happy.
- Dateianhänge
-
- disallow_editing_replied_posts_mod_1_0_0.zip
- (1.03 KiB) 118-mal heruntergeladen
-
- Under_construction_posts_103.zip
- (6.26 KiB) 108-mal heruntergeladen
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.
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.
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Okay, a point I wasn't thinking of.
So try this:
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 ]-----
#
# EoMKarsten 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!
-={ 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!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
No problem.
Without me you find another guy to helps you
Nice to hear, that my "brainstorming" works.
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!
-={ 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!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
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!
-={ 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!
[quote="oxpus - Thu 13.Jan, 2005 10:30";p="20384"]Okay, a point I wasn't thinking of.
So try this:[/quote]
NO in ACP is all set OK.
I thin it is the same problem like for Admin
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 ]-----
#
# EoMNO in ACP is all set OK.
I thin it is the same problem like for Admin
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
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!
-={ 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!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
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".
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!
-={ 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!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
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:
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!
-={ 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!