problem with template modification

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Gunnar
Registered User
Posts: 55
Joined: Sun Sep 09, 2007 11:54 am

problem with template modification

Post by Gunnar »

what is makes this not work...

Code: Select all

<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF U_ACP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;|&nbsp;<a href="{U_ACP}">{L_ACP}</a>&nbsp;]</p><!-- ENDIF --> 
Should show [ MCP | ACP ] if user is admin and just [ MCP ] if user is a mod and nothing at all if user is normal...

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10365
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: problem with template modification

Post by Noxwizard »

This should do it for you:

Code: Select all

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;<!-- IF U_ACP -->|&nbsp;<a href="{U_ACP}">{L_ACP}</a>&nbsp;<!-- ENDIF -->]</p><!-- ENDIF -->
If you have admins who don't have access to the moderator control panel, you'll need something like this:

Code: Select all

<!-- IF U_MCP and U_ACP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;|&nbsp;<a href="{U_ACP}">{L_ACP}</a>&nbsp;]</p>
<!-- ELSEIF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p>
<!-- ELSEIF U_ACP --><p>[&nbsp;<a href="{U_ACP}">{L_ACP}</a>&nbsp;]</p>
<!-- ENDIF -->
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

Gunnar
Registered User
Posts: 55
Joined: Sun Sep 09, 2007 11:54 am

Re: problem with template modification

Post by Gunnar »

you sir are a genius !

Locked

Return to “[3.0.x] Support Forum”