Page 3 of 4

Re: Only Admin Edit Post

Posted: Fri Nov 27, 2009 10:24 am
by HKFA
RMcGirr83 wrote::oops:

Forgot about the MCP. I'll update this mod for 3.0.6 and make a fix for that as well. The MOD already hides the buttons, no?
tks for ur new version!~ :)

Re: Only Admin Edit Post

Posted: Fri Nov 27, 2009 9:35 pm
by joebart72
joebart72 wrote:Thanks :) Could you give the tip again to allow founder to edit other admins ? Thanks :)
For you last version of course.. Thanks.. again...

Re: Only Admin Edit Post

Posted: Wed Dec 09, 2009 11:48 pm
by joebart72
Well I know next release is not validated yet but I must write in Chineese... But when you're polite, you answer, yes or no so I bump for the 3rd time... :evil:

Re: Only Admin Edit Post

Posted: Tue Dec 15, 2009 5:43 am
by trickymicky
This doesn't work in 3.0.6, as the veiwtopic.php finds aren't there. Could you please post an update?
RMcGirr83 wrote:
Gadget27 wrote:But Is it possible to enable the founder to edit all the posts admin :?:
OPEN

posting.php

FIND

Code: Select all

if ($is_authed && ($mode == 'edit' || $mode == 'delete') && (in_array($post_data['poster_id'], $admin_only_arry) && $user->data['user_id'] != $post_data['poster_id']))
REPLACE WITH

Code: Select all

if ($is_authed && ($mode == 'edit' || $mode == 'delete') && (in_array($post_data['poster_id'], $admin_only_arry) && $user->data['user_id'] != $post_data['poster_id']) && !$user->data['user_type'] == USER_FOUNDER)
OPEN

viewtopic.php

FIND

Code: Select all

'U_EDIT'			=> (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_edit', $forum_id) && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_edit', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : ''),
REPLACE WITH

Code: Select all

'U_EDIT'			=> (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_edit', $forum_id) && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_edit', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || $user->data['user_type'] == USER_FOUNDER) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : ''),
FIND

Code: Select all

'U_DELETE'			=> (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_delete', $forum_id) && $topic_data['topic_last_post_id'] == $row['post_id'] && !$row['post_edit_locked'] && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_delete', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id)) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=delete&f=$forum_id&p={$row['post_id']}") : ''),
REPLACE WITH

Code: Select all

'U_DELETE'			=> (!$user->data['is_registered']) ? '' : ((($user->data['user_id'] == $poster_id && $auth->acl_get('f_delete', $forum_id) && $topic_data['topic_last_post_id'] == $row['post_id'] && !$row['post_edit_locked'] && ($row['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time'])) || ($auth->acl_get('m_delete', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || $user->data['user_type'] == USER_FOUNDER) ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=delete&f=$forum_id&p={$row['post_id']}") : ''),
I really like the Mod, but I need to be able to edit other Admins' posts. ;)
Thanks. :)

Re: Only Admin Edit Post

Posted: Tue Dec 15, 2009 6:28 am
by joebart72
I've already asked 3 times but the author is blind... or doesn't want to answer. I'll have a look sooner. ;)

Re: Only Admin Edit Post

Posted: Tue Dec 15, 2009 11:11 am
by RMcGirr83
trickymicky wrote:This doesn't work in 3.0.6, as the veiwtopic.php finds aren't there. Could you please post an update?
Could you please read the topic.

joebart72,

I am not blind and will answer but I have been a bit busy lately. I mean I only have 20+ mods in the database and try and support each of them as well as live a life outside of phpBB. I could be like other mod authors and just get the mod validated and not support it. BTW, "You get more flies with honey than you do with vinegar".

Only Admin Edit Post

Posted: Thu Dec 31, 2009 1:27 pm
by DavidIQ
MOD Updated to version 1.0.2
See first post for Download Link

Only Admin Edit Post

Posted: Sat Jan 02, 2010 4:16 am
by DavidIQ
MOD re-Updated to version 1.0.2
See first post for Download Link

Re: Only Admin Edit Post

Posted: Sat Jan 02, 2010 12:51 pm
by Gadget27
@ trickymicky, joebart72 and others
who are interested to enable the founder to edit all admin's posts


Open /posting.php

Find:

Code: Select all

if ($is_authed && ($mode == 'edit' || $mode == 'delete') && (in_array($post_data['poster_id'], $admin_only_arry) && $user->data['user_id'] != $post_data['poster_id']))
Replace by:

Code: Select all

if ($is_authed && ($mode == 'edit' || $mode == 'delete') && (in_array($post_data['poster_id'], $admin_only_arry) && $user->data['user_id'] != $post_data['poster_id']) && !$user->data['user_type'] == USER_FOUNDER)
Open /viewtopic.php

Find:

Code: Select all

$edit_allowed = ($user->data['is_registered'] && (($auth->acl_get('m_edit', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || (
Replace by:

Code: Select all

$edit_allowed = ($user->data['is_registered'] && (($auth->acl_get('m_edit', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || $user->data['user_type'] == USER_FOUNDER ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : '' || (
Find (just below):

Code: Select all

$delete_allowed = ($user->data['is_registered'] && (($auth->acl_get('m_delete', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || (
Replace by:

Code: Select all

$delete_allowed = ($user->data['is_registered'] && (($auth->acl_get('m_delete', $forum_id) && !in_array($poster_id, $admin_only_arry) || $user->data['user_id'] == $poster_id) || $user->data['user_type'] == USER_FOUNDER ? append_sid("{$phpbb_root_path}posting.$phpEx", "mode=edit&f=$forum_id&p={$row['post_id']}") : '' || (
Happy New Year ;)

Re: Only Admin Edit Post

Posted: Sat Jan 02, 2010 1:07 pm
by joebart72
Thanks héhéhéhéhé :D

Re: Only Admin Edit Post

Posted: Sat Jan 02, 2010 1:12 pm
by RMcGirr83
Thanks Gadget!! :)

Re: Only Admin Edit Post

Posted: Mon Jan 11, 2010 5:12 pm
by trickymicky
Thanks Gadget27! :D Are those edits for the new version?

Re: Only Admin Edit Post

Posted: Mon Jan 11, 2010 5:23 pm
by RMcGirr83
Yes they are.

Re: Only Admin Edit Post

Posted: Mon Jan 11, 2010 5:30 pm
by trickymicky
Ok, thanks, I'm off to install the new version. ;)

Re: Only Admin Edit Post

Posted: Tue Jan 12, 2010 12:20 am
by Ephemeraboy
gerat mods..
love it so much