Warning: The author of this contribution does not provide support for it anymore.

Anti Spam ACP

No Flag, IP search, or ban Founder, or Self | Instruct Here! - Anti Spam ACP

No Flag, IP search, or ban Founder, or Self | Instruct Here!

by PiperB » Wed Aug 02, 2017 7:13 pm

------------------------------------
I really don't like seeing the option to Flag myself as founder, or for other users with permissions to flag to be able to flag their founder admin, or for them to see any founder IP address or search it for that matter, even if they are a moderator.

I do love this mod though, and decided it really needed this one last bit of tweaking to make it right for me. If you are interested in doing the same, please proceed and the fix is here.

Open: viewtopic.php
Note: This stops the flag option from showing on a Founder admin's posts in the mini-profile data area when viewing topics. The find here is only for people who already have this mod installed.

Find:

Code: Select all

	// START Anti-Spam ACP
	antispam::flagged_output($poster_id, $user_cache[$poster_id], 'postrow.custom_fields', $row['post_id']);
	// END Anti-Spam ACP
Replace with:

Code: Select all

	// START Anti-Spam ACP
	if ($row['user_type'] == 0 && $poster_id != $user->data['user_id'])
	{
	antispam::flagged_output($poster_id, $user_cache[$poster_id], 'postrow.custom_fields', $row['post_id']);
	}
	// END Anti-Spam ACP
Save the file.

Open: root/antispam/asacp.php
Note: This is to not show the option to search ip address or even see the ip address as well as not see flag options for Founder admin. So it won't show up in the Founder admin's profile as an option in other words. Also not on their own profile, they can't see options to flag themselves or their own ip search stuff. lol, only on all other profiles but founder and one's own. This also stops them from seeing one click ban for founder profiles.

Find:

Code: Select all

				// Output Flagged section
				self::flagged_output($user_row['user_id'], $user_row, 'custom_fields');
Replace with:

Code: Select all

				// Output Flagged section
				if ($auth->acl_get('m_asacp_user_flag') && $user_id != $user->data['user_id'] && $user_id != 2)
				{
				self::flagged_output($user_row['user_id'], $user_row, 'custom_fields');
                }
Find:

Code: Select all

				// Output IP Search section
				if ($auth->acl_get('a_asacp_ip_search'))
Replace with:

Code: Select all

				// Output IP Search section
				if ($auth->acl_get('m_asacp_ip_search') && $user_id != $user->data['user_id'] && $user_id != 2)
Find:

Code: Select all

				// Output One Click Ban section
				if ($auth->acl_get('m_asacp_ban') && $user_id != $user->data['user_id'])
Replace with:

Code: Select all

				// Output One Click Ban section
				if ($auth->acl_get('m_asacp_ban') && $user_id != $user->data['user_id'] && $user_id != 2)
Save the file. Done, Enjoy! ;)

__________________________________
Disclaimer: I decided to share my edits, fixes, addons, companion mods, e.t.c. for "wiki" type purposes and for those out there like me who are on older versions of phpbb3 still. Also for those who still have or wanted this mod to have a new feature or a fix this is for you! :)
Last edited by PiperB on Sun Jan 14, 2018 12:27 am
<!-- IF U_LOVE_NOTEPAD++ -->
[td class=statement]I Notepad++ ![/td]
<!-- ENDNEVER --> <!-- tee hee --> :P
Whoa ooo whoa ooo whoa I'm a Lady!
User avatar
PiperB
Registered User
Posts: 173
Joined: Mon Nov 07, 2016 6:54 pm

Re: No Flag, or IP search Founder, or Self | Instructions He

by RMcGirr83 » Wed Aug 02, 2017 8:13 pm

Still necro posting outdated mods I see.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact: