Only Admin Edit Post

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
HKFA
Registered User
Posts: 3
Joined: Tue Oct 25, 2005 4:29 pm
Location: HKG852

Re: Only Admin Edit Post

Post 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!~ :)
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: Only Admin Edit Post

Post 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...
I learn English with phpbb.com :)
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: Only Admin Edit Post

Post 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:
I learn English with phpbb.com :)
trickymicky
Registered User
Posts: 15
Joined: Tue Jun 14, 2005 11:57 pm

Re: Only Admin Edit Post

Post 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. :)
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: Only Admin Edit Post

Post 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. ;)
I learn English with phpbb.com :)
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Only Admin Edit Post

Post 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".
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Only Admin Edit Post

Post by DavidIQ »

MOD Updated to version 1.0.2
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Only Admin Edit Post

Post by DavidIQ »

MOD re-Updated to version 1.0.2
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Gadget27
Registered User
Posts: 22
Joined: Mon May 18, 2009 8:53 am
Location: France (Eure)
Contact:

Re: Only Admin Edit Post

Post 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 ;)
I learn english with phpbb.com :)
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: Only Admin Edit Post

Post by joebart72 »

Thanks héhéhéhéhé :D
I learn English with phpbb.com :)
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Only Admin Edit Post

Post by RMcGirr83 »

Thanks Gadget!! :)
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
trickymicky
Registered User
Posts: 15
Joined: Tue Jun 14, 2005 11:57 pm

Re: Only Admin Edit Post

Post by trickymicky »

Thanks Gadget27! :D Are those edits for the new version?
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Only Admin Edit Post

Post by RMcGirr83 »

Yes they are.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
trickymicky
Registered User
Posts: 15
Joined: Tue Jun 14, 2005 11:57 pm

Re: Only Admin Edit Post

Post by trickymicky »

Ok, thanks, I'm off to install the new version. ;)
User avatar
Ephemeraboy
Registered User
Posts: 333
Joined: Tue Dec 29, 2009 4:25 pm
Location: Bandung Kota Hujan
Name: Bernando Bona Tius Sianipar
Contact:

Re: Only Admin Edit Post

Post by Ephemeraboy »

gerat mods..
love it so much
My diary, my notepad, and my life on
http://www.bonatius.com
Locked

Return to “[3.0.x] MOD Database Releases”