I'm trying to put a switches in some of the html pages to make certain things visible to Moderators only.
The following works:
<!-- IF U_ACP -->
-- code viewable to Admin only --
<!-- ENDIF -->
but the following doesn't:
<!-- IF U_MCP -->
-- code viewable to Mods only --
<!-- ENDIF -->
The code that is to be seen to Mods only is not seen by them whilst it is seen to registered users.
Any advise?
Mark
Why does U_ACP work and U_MCP not?
Re: Why does U_ACP work and U_MCP not?
Surely somebody has the answer here?
How do I make certain code in the .html files applicable to Mods only?
Mark
How do I make certain code in the .html files applicable to Mods only?
Mark
Re: Why does U_ACP work and U_MCP not?
What file are you tring to add this line into?
Mark
Mark
Re: Why does U_ACP work and U_MCP not?
Hi,
I'm trying to add the code to:
styles/subSilver/template/ucp_profile_signature.html
and
styles/subSilver/template/posting_body.html
so that the colour box is not viewable to members/guests and only to Mods.
This is the code that doesn't work:
and
Mark
I'm trying to add the code to:
styles/subSilver/template/ucp_profile_signature.html
and
styles/subSilver/template/posting_body.html
so that the colour box is not viewable to members/guests and only to Mods.
This is the code that doesn't work:
Code: Select all
<!-- IF U_MCP -->
<td class="genmed" align="center">{L_FONT_COLOR}</td>
<!-- ENDIF -->
Code: Select all
<!-- IF U_MCP -->
<script type="text/javascript">
<!--
colorPalette('v', 7, 6)
//-->
</script>
<!-- ENDIF -->
-
- Registered User
- Posts: 5
- Joined: Wed Oct 04, 2006 4:31 am
- Contact:
Re: Why does U_ACP work and U_MCP not?
it's seems to be a bug or actually be a feature in posting.php. You have to use the U_ACP instead of U_MCP due to the code may be missing assign a var in posting.php.
For a simple work around for now you may have in posting.php add a simple statement.
but if you not really want it, then wait for the fix would be better.
I have just tested global moderator due to I'am not family with the acl control and if any wrong, please let me know.
Thank you
For a simple work around for now you may have in posting.php add a simple statement.
Code: Select all
$template->assign_var('U_MCP', 'MCP');
I have just tested global moderator due to I'am not family with the acl control and if any wrong, please let me know.
Thank you