Seite 1 von 2
Post edit
Verfasst: Mi 12.Jan, 2005 13:46
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!
Verfasst: Mi 12.Jan, 2005 15:22
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.

Verfasst: Mi 12.Jan, 2005 15:48
von oxpus
Why these mods will be incompatible?
I can't find code for the same places on posting.php

Verfasst: Do 13.Jan, 2005 08:22
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.
Verfasst: Do 13.Jan, 2005 08:30
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
Verfasst: Do 13.Jan, 2005 08:47
von Blisk
MAn, it works.
what can I do withouth you.
Nothing.
all what you fix all works great.
TNX again!

Verfasst: Do 13.Jan, 2005 09:57
von oxpus
No problem.
Without me you find another guy to helps you
Nice to hear, that my "brainstorming" works.
Verfasst: Do 20.Jan, 2005 08:25
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.
Verfasst: Do 20.Jan, 2005 14:33
von oxpus
Permissions are right setted in the ACP?
Verfasst: Do 20.Jan, 2005 14:44
von Blisk
I found, a problem.
Yes it was in ACP, tnx for a hint.
Sometimes I have really stupid questions.
Verfasst: Fr 28.Jan, 2005 10:43
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?
Verfasst: Fr 28.Jan, 2005 18:25
von oxpus
Hm, are you sure the user is a moderator of the forum? And you have enable it via ACP to the Mods?
Verfasst: Fr 28.Jan, 2005 21:58
von Blisk
Sorry this I must check it.
But I think before moderators can edit post.
But I must checkit like I said.
Verfasst: Sa 29.Jan, 2005 20:15
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
Verfasst: Sa 29.Jan, 2005 21:02
von oxpus
Admin also can't edit posts?
Hm...
Verfasst: Mo 31.Jan, 2005 07:55
von Blisk
Admin can edit post now and delete them, but moderators cant.
Verfasst: Mo 31.Jan, 2005 11:42
von oxpus

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?
Verfasst: Di 01.Feb, 2005 13:24
von Blisk
yes I am sour, you can test it, you are moderator too.
Verfasst: Di 01.Feb, 2005 17:11
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".
Verfasst: Mi 02.Feb, 2005 08:04
von Blisk
It is a moderator I checked twice, in ACP.
Where can I check this level.
And here is attach.
Verfasst: Mi 02.Feb, 2005 08:14
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:
Verfasst: Mi 02.Feb, 2005 08:39
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
Verfasst: Mi 09.Feb, 2005 12:50
von oxpus
Not an error I thing. Will the moderator realy have access to the user management?
Verfasst: Mi 09.Feb, 2005 13:12
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
Verfasst: Mi 09.Feb, 2005 14:35
von oxpus
Öh, he can
see user with userlist, not edit it, if you have just enable this list
