Why does U_ACP work and U_MCP not?

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
interlog
Registered User
Posts: 19
Joined: Tue Feb 28, 2006 3:10 pm
Contact:

Why does U_ACP work and U_MCP not?

Post by interlog »

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 :D

interlog
Registered User
Posts: 19
Joined: Tue Feb 28, 2006 3:10 pm
Contact:

Re: Why does U_ACP work and U_MCP not?

Post by interlog »

Surely somebody has the answer here?

How do I make certain code in the .html files applicable to Mods only?

Mark :D

User avatar
turblety
Registered User
Posts: 23
Joined: Sun Feb 20, 2005 1:57 pm

Re: Why does U_ACP work and U_MCP not?

Post by turblety »

What file are you tring to add this line into?

Mark

interlog
Registered User
Posts: 19
Joined: Tue Feb 28, 2006 3:10 pm
Contact:

Re: Why does U_ACP work and U_MCP not?

Post by interlog »

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:

Code: Select all

<!-- IF U_MCP -->
  <td class="genmed" align="center">{L_FONT_COLOR}</td>
<!-- ENDIF -->
and

Code: Select all

<!-- IF U_MCP -->
  <script type="text/javascript">
        <!--
        colorPalette('v', 7, 6)
        //-->
   </script>
<!-- ENDIF -->
Mark :D

blueray2048
Registered User
Posts: 5
Joined: Wed Oct 04, 2006 4:31 am
Contact:

Re: Why does U_ACP work and U_MCP not?

Post by blueray2048 »

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.

Code: Select all

$template->assign_var('U_MCP', 'MCP'); 
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

Post Reply