http://www.icyphoenix.com/viewtopic.php?f=35&t=489&p=3973#p3973
-----------------------------------
moreteavicar
Sat 21 Oct, 2006 14:13

Re: Quick Links (nav_quick_links.tpl) Doesn't Switch Admin
-----------------------------------
[quote user="Vortex" post="3965"]
[quote user="moreteavicar" post="3962"]Oh dear... here goes...
As we have no idea whether or not you have checked the cached template file /cache/tpl_ca_aphrodite.nav_quick_links.php, which would confirm once and for all if there was a caching problem[/quote]

I did. You said you wouldn't answer again, so I decided not to answer to you, in order not to continue with such attitude that is totally unuseful, imho.
[/quote]
The point is to inform everyone here, not just me, of the things you have or have not tried to do. 

Yes, this is a support forum - I am trying to help you see sense in providing as much accurate and useful information in order that everyone else here who doesn't have access to your hosting account can diagnose the problem you are having. We can only work on what information you provide.

For example, from your last 2 posts, I don't actually know whether this worked:
[codeblock]if (($userdata['user_level'] == ADMIN) || ($userdata['user_level'] ==1 ))
{
   $template->assign_block_vars('mg_switch_user_is_admin', array());
} [/codeblock]

If not, you could even try:

[codeblock]if ($userdata['user_level'] ==1)
{
   $template->assign_block_vars('mg_switch_user_is_admin', array());
} [/codeblock]

and if that still doesn't work (I really don't understand why not, but lets suppose the block variable name is being set by something somewhere else), then try

[codeblock]if ($userdata['user_level'] ==1)
{
   $template->assign_block_vars('switch_show_admin_links', array());
} [/codeblock]

and replace <!-- BEGIN mg_switch_user_is_admin -->  with <!-- BEGIN switch_show_admin_links -->  and likewise replace the END statements in the quicklinks template file.


