Page 1 of 1

Admin Restrictions

Posted: Mon Jun 04, 2007 3:02 am
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?

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 3:37 am
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

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 4:43 am
by Da Undead
Ok thankyou. Think you can guide me on how to do that?

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 5:20 am
by Marshalrusty
Moved from the 3.0.x Support Forums

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 6:32 am
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

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 7:21 am
by Da Undead
Alright thankyou for your support.

Btw, why was this moved? It was an 3.x.x support question..

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 7:38 am
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

Re: Admin Restrictions

Posted: Mon Jun 04, 2007 2:29 pm
by smackall
ah, Thanks a lot. I was searching for this code.

Re: Admin Restrictions

Posted: Wed Jun 06, 2007 5:12 am
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...