I love the idea, and I do participate on www.bariswanschers.com!

But I find it rather frustrating that it overrides even my Admin interface, although I selected another interface for the Admin section.
I would be nice to show the Admin interface, if this setting is other than System Default.

This enables me to still manage content, whil the end-users only see the Naked interface.

Comments

nesta_’s picture

Assigned: Unassigned » nesta_

I take note of this and try to send the patch throughout the week that comes), even make a migration to D7

Best regards!

nesta_’s picture

StatusFileSize
new361 bytes

Add user admin conditional for apply naked.

nesta_’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new361 bytes

Add user admin conditional for apply naked.

nesta_’s picture

Component: User interface » Code
Status: Patch (to be ported) » Needs review
StatusFileSize
new361 bytes

sorry, Add user admin conditional for apply naked.

tobiassjosten’s picture

Status: Needs review » Needs work

I think we'd want to target the admin pages instead of the admin users, no? That means `arg(0) == 'admin'` in Drupal 6 and `path_is_admin()` in Drupal 7.

Do you want to take another shot at it, Neftalí?

nesta_’s picture

This is if the admin has to change something about the public part and need to have the views_ui or other modules in active.

greetings!.

BarisW’s picture

You can do it like this:

<?php
  global $theme;
  if ($theme == variable_get('theme_default', 'bartik') && is_naked_day()) {
    // do magic.
  }
?>

This way it works for all roles, not only user 1.

nesta_’s picture

That day should be Naked for everyone, except if you have to fix or modify any functionality, with what is only left him be admin users who have disabled the day naked

BarisW’s picture

That is what my code snippet does. It replaces the front-end theme with the naked theme, but not the admin theme. That's how I'd expect it to work.

The problem with using user 1 is that many sites don't have the user 1 login at all. For instance, we don't hand the user 1 account to our clients but we create a user with the Administrator role for them.