[Solved] IF structure for admins

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
|UVI|
Registered User
Posts: 18
Joined: Sat Aug 04, 2007 10:21 pm
Location: Italy
Contact:

[Solved] IF structure for admins

Post by |UVI| »

Could I use an if structure that can execute code only if a user is an admin?
In viewtopic_body.html I could use:

Code: Select all

<!-- IF postrow.RANK_TITLE == "NAME OF GROUP" -->

<!-- ENDIF -->
but in index_body.html that don't work. So what's the solution?
Last edited by |UVI| on Fri Aug 17, 2007 8:39 am, edited 1 time in total.
My phpbb forum:
lost
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34459
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Re: IF structure for admins

Post by A_Jelly_Doughnut »

If the user is logged in, use

Code: Select all

<!-- IF U_ACP -->
Fun links go here
<!-- ENDIF -->
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: IF structure for admins

Post by IPB_Refugee »

Hi Uvi,

you might find the links interesting which I posted here:

http://www.phpbb.com/community/viewtopi ... 8#p3152318

Regards
Wolfgang
|UVI|
Registered User
Posts: 18
Joined: Sat Aug 04, 2007 10:21 pm
Location: Italy
Contact:

Re: IF structure for admins

Post by |UVI| »

Thanks to all ;)
My phpbb forum:
lost
Locked

Return to “[3.0.x] Support Forum”