Admin Restrictions

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
User avatar
Da Undead
Registered User
Posts: 116
Joined: Tue Jun 21, 2005 2:24 am
Location: USA, Texas
Contact:

Admin Restrictions

Post by Da Undead »

My other admin can't Purge the Cache, why is that?
He has all the other resetting abilities but the ability to Purge Cache. I want him to have the ability to do it because we use it for our phpBB3 Portal Mod. And I don't want him to have access to change my access. Any idea on what to do?
Image
Create your very own MMORPG, click picture above!
User avatar
TriggerSpasm
Registered User
Posts: 23
Joined: Fri Jun 01, 2007 6:06 pm
Location: Hereford, England

Re: Admin Restrictions

Post by TriggerSpasm »

Only "Founder" flagged admins can purge.
You would need to mod your board to allow your other admin the purge function without the ability to edit your account
User avatar
Da Undead
Registered User
Posts: 116
Joined: Tue Jun 21, 2005 2:24 am
Location: USA, Texas
Contact:

Re: Admin Restrictions

Post by Da Undead »

Ok thankyou. Think you can guide me on how to do that?
Image
Create your very own MMORPG, click picture above!
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29298
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: Admin Restrictions

Post by Marshalrusty »

Moved from the 3.0.x Support Forums
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
User avatar
TriggerSpasm
Registered User
Posts: 23
Joined: Fri Jun 01, 2007 6:06 pm
Location: Hereford, England

Re: Admin Restrictions

Post by TriggerSpasm »

Da Undead wrote:Ok thankyou. Think you can guide me on how to do that?
Open ./includes/acp/acp_main.php

Find (line 266)

Code: Select all

				if ((int) $user->data['user_type'] !== USER_FOUNDER)
						{
							trigger_error($user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING);
						}
Delete the above

If you dont want to delete it entirely just ad /* before if and */ after }

then open ./adm/style/acp_main.html

Find (line 130)

Code: Select all

			<!-- IF S_FOUNDER -->
			<form id="action_purge_cache_form" method="post" action="{U_ACTION}">
				<dl>
					<dt><label for="action_purge_cache">{L_PURGE_CACHE}</label><br /><span>{L_PURGE_CACHE_EXPLAIN}</span></dt>
					<dd><input type="hidden" name="action" value="purge_cache" /><input class="button2" type="submit" id="action_purge_cache" name="action_purge_cache" value="{L_RUN}" /></dd>
				</dl>
			</form>
			<!-- ENDIF -->
Remove

Code: Select all

<!-- IF S_FOUNDER -->
and

Code: Select all

<!-- ENDIF -->
And Job done :)


oh and ironically youll probably need to purge the cache afterwards for the button to show :P
User avatar
Da Undead
Registered User
Posts: 116
Joined: Tue Jun 21, 2005 2:24 am
Location: USA, Texas
Contact:

Re: Admin Restrictions

Post by Da Undead »

Alright thankyou for your support.

Btw, why was this moved? It was an 3.x.x support question..
Image
Create your very own MMORPG, click picture above!
User avatar
TriggerSpasm
Registered User
Posts: 23
Joined: Fri Jun 01, 2007 6:06 pm
Location: Hereford, England

Re: Admin Restrictions

Post by TriggerSpasm »

No problem at all :)

im guessing Marshalrusty was still half asleep because it should be in 3.0 mod requests not 2.0 :P
smackall
Registered User
Posts: 2
Joined: Mon Jun 04, 2007 6:47 am

Re: Admin Restrictions

Post by smackall »

ah, Thanks a lot. I was searching for this code.
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29298
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: Admin Restrictions

Post by Marshalrusty »

TriggerSpasm wrote:im guessing Marshalrusty was still half asleep because it should be in 3.0 mod requests not 2.0 :P
Gah, sleepless nights are indeed the cause. Sorry guys.

Moving to the right place...
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
Locked

Return to “[3.0.x] MOD Requests”