Quick "if" statement, please!

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Registered User
Posts: 3
Joined: Mon Apr 18, 2005 8:44 am

Quick "if" statement, please!

Post by sloaneys »

URL: n/a
Template(s) used: SubSilver (unmodified)
Any and all MODs: none
Do you use a port of phpBB: no
Version of phpBB: latest
Version of PHP: 4
Which database server and version: MySQL 4
Host: streamline.net
Did someone install this for you/who: n
Is this an upgrade/from what to what: n
Is this a conversion/from what to what: n
Have you searched for your problem: y
If so, what terms did you try: if statement ACP
State the nature of your problem: I want to restrict certain administrative operations from even the other top admins (eg. "Mass Email"). I don't do PHP ASP... don't hurt me! so could somebody write me a little if statement for the menu bar of the ACP which would only produce the "a href equals blah" (and thus a link) if the person is logged in as "ceepee"? I know it's bad to hardcode stuff like this in, but I just need a quick fix.
eg. "If username is ceepee, display "a href etc.", else nothing

Thanks in advance

Do you have a test account for us: n
Registered User
Posts: 427
Joined: Fri Aug 13, 2004 1:00 am
Location: London

Post by tOnk3r »

I dont get these kinds of questions.
If you dont trust someone with admin powers then dont make them admin.
Make them a mod.

Whats the point of making someone admin then restricting thier powers so they are equal to a moderator?
User avatar
Former Team Member
Posts: 2643
Joined: Sun May 16, 2004 10:07 am
Location: Wellington, NZ

Post by thecharmed01 »

If you do want to do that, use this mod here

You might want this and this too :D
Please refrain from PM'ing me for support unless I specifically ask you to.......

Helpful Pages: ~ [Styles FAQ] ~ [Styles User Guide] ~ [Styles Submission Policy]
My Site: [C1 Web Design]
| Mum | Web Designer | Airsoft Player| Business Owner|

Return to “2.0.x Support Forum”