News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Theme Permissions

Started by [SiNaN], September 28, 2008, 02:31:49 AM

Previous topic - Next topic

[SiNaN]

Link to Mod

Theme Permissions

This modification allows you to set group based permissions for your every theme.

You can set from:

Admin Control Panel >> Themes and Layout >> Themes Settings

Based on the mod request by Jade.

-[SiNaN]
Former SMF Core Developer | My Mods | SimplePortal

Apllicmz

Good work
nice mod
update that linguage

<file name="$languagedir/Modifications.portuguese.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Permissões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você não pode escolher este tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Permissões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você não pode escolher este tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Permissões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você não pode escolher este tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>


<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode escolher este tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode escolher este tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode escolher este tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>



Marcus Forsberg

Another great mod from a great mod author. Good work :)

Swedish translation:

    <file name="$languagedir/Modifications.swedish.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema Rättigheter';
$txt['alundra_theme_permissions_guest'] = 'Du kan inte ange rättigheter till forumets standard tema. Det måste vara tillgängligt för alla användare.';
$txt['alundra_select_not_allow'] = 'Du kan inte välja detta tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>


    <file name="$languagedir/Modifications.swedish-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// !!! Alundra
$txt['alundra_theme_permissions_title'] = 'Tema R&auml;ttigheter';
$txt['alundra_theme_permissions_guest'] = 'Du kan inte ange r&auml;ttigheter till forumets standard tema. Det m&aring;ste vara tillg&auml;ngligt f&ouml;r alla anv&auml;ndare.';
$txt['alundra_select_not_allow'] = 'Du kan inte v&auml;lja detta tema!';
// !!! Alundra
]]></add>
        </operation>
    </file>




[SiNaN]

Thanks for the translations. But I would recommend starting a topic in your language boards and including the translations there. I can include a link to that topic on the mod page too.
Former SMF Core Developer | My Mods | SimplePortal

willerby

Great Mod...  worked perfectly.

A question though...

How can I set a theme that guests get by default but registered members get as a matter of course without admin having to reset their Theme?

I think its possible but can't find a way. I have a Default-Lite theme that has less clutter than the standard Default most of my members use but can't find a way to make it the default for guests only...

Sorry. probably being dumb.

gamerxgirl

This is a great mod, too bad it's not for the 1.1.x version.
Xenaverse.net Xena: Warrior Princess Forums | Gallery | Reviews | Fan Fiction

lax.slash

lol... posted a feature request back in March for this. Glad to finally see it! Great work! :)

Just a couple questions/suggestions:

1) Are you ever going to make it compatible with 1.1.x?

2) Why not make it so that they can't see the theme if they don't have access to it, as opposed to letting people see it, but not access it?

[SiNaN]

willerby:

Set it as default by only setting the "Overall forum default:" option. For guests and user only who selected the "Forum or Board Default" theme will see the forum with that theme. But other users, who selected a theme will see with their own theme.

gamerxgirl:

Thanks. Unfortunately I don't think I'll backport this.

lax.slash:

1) Don't think so.
2) It is already like that. Users without permission can't see the *anywhere*.
Former SMF Core Developer | My Mods | SimplePortal

candidosa2

when Update please dont forget
Linguage portuguese and brazilian

Quote<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
// !!! Alundra translate candidosa2 Suporte smfpt.net
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Ele deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode selecionar o tema!';
// !!! Alundra
]]></add>
      </operation>
   </file>
   <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
// !!! Alundra translate candidosa2 Suporte smfpt.net
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Ele deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode selecionar o tema!';
// !!! Alundra
]]></add>
      </operation>
   </file>
   <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
// !!! Alundra translate candidosa2 Suporte smfpt.net
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Ele deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode selecionar o tema!';
// !!! Alundra
]]></add>
      </operation>
   </file>
   <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
// !!! Alundra translate candidosa2 Suporte smfpt.net
$txt['alundra_theme_permissions_title'] = 'Tema Permiss&otilde;es';
$txt['alundra_theme_permissions_guest'] = 'Voc&ecirc; n&atilde;o pode configurar permiss&otilde;es de f&oacute;rum tema default. Ele deve ser utiliz&aacute;vel por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Voc&ecirc; n&atilde;o pode selecionar o tema!';
// !!! Alundra
]]></add>
      </operation>
   </file>

Sakae

http://www.tigrelog.com.br
l: simple p: machines

shumilica

Is this mod compatible with 2.0 RC2?

Sinan, do you consider updating the mod?
Today, if you're not confused it means you're not thinking clear!

Sakae

Quote from: shumilica on December 04, 2009, 11:08:26 PM
Is this mod compatible with 2.0 RC2?

Sinan, do you consider updating the mod?

I would love that!
http://www.tigrelog.com.br
l: simple p: machines

Arantor

I'm not sure this does work on RC2 :(
Holder of controversial views, all of which my own.


Sakae

http://www.tigrelog.com.br
l: simple p: machines

Arantor

No... that's not what I meant. Some mods, particularly ones that don't change the interface much, work just fine on RC2 if they come from RC1.

This mod appears to not work correctly when we tried it on an RC2 build.
Holder of controversial views, all of which my own.


[SiNaN]

I have bumped the version to 1.0.1 adding support for SMF 2.0 RC2. Only template edit required recoding.
Former SMF Core Developer | My Mods | SimplePortal

Arantor

We tried this on SimpleDesk a few days back and the permissions didn't seem to be enforced properly.
Holder of controversial views, all of which my own.


[SiNaN]

I have tested it before uploading as well. How did you test it?
Former SMF Core Developer | My Mods | SimplePortal

Arantor

I didn't have anything to do with it, to be honest. Just I know it was tried over on SD and it didn't work out. Nas and Trekkie, I think, know more about it.
Holder of controversial views, all of which my own.


Advertisement: