Advertisement:

Author Topic: Theme Permissions  (Read 14851 times)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Theme Permissions
« on: September 28, 2008, 02:31:49 AM »
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

Offline Joomlamz

  • SMF Hero
  • ******
  • Posts: 2,630
  • Gender: Male
  • Suporte SmfPT
    • apllicmz on Facebook
    • apllicmz on GitHub
    • https://www.linkedin.com/in/aplic on LinkedIn
    • @aplichosting on Twitter
    • Webdesign
Re: Theme Permissions
« Reply #1 on: September 28, 2008, 03:23:30 AM »
Good work
nice mod
update that linguage

Code: [Select]
<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>

Code: [Select]
<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>



Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Theme Permissions
« Reply #2 on: September 28, 2008, 03:34:29 AM »
Another great mod from a great mod author. Good work :)

Swedish translation:

Code: [Select]
    <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>

Code: [Select]
    <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>




Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Theme Permissions
« Reply #4 on: September 29, 2008, 09:35:08 AM »
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

Offline laetabi

  • Full Member
  • ***
  • Posts: 428
  • Gender: Male
Re: Theme Permissions
« Reply #5 on: November 16, 2008, 06:03:06 PM »
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.
What type of washing machine is September?

An autumnatic. :)

Offline gamerxgirl

  • Semi-Newbie
  • *
  • Posts: 56
  • Gender: Female
    • Xenaverse.net
Re: Theme Permissions
« Reply #6 on: November 28, 2008, 09:32:05 AM »
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

Offline lax.slash

  • Jr. Member
  • **
  • Posts: 337
  • Gender: Male
  • Let's go Buffalo!
Re: Theme Permissions
« Reply #7 on: December 09, 2008, 09:34:03 PM »
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?

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Theme Permissions
« Reply #8 on: December 10, 2008, 07:31:08 AM »
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

  • Guest
Re: Theme Permissions
« Reply #9 on: July 05, 2009, 01:02:33 PM »
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>

Offline Sakae

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
    • TigreLOG
Re: Theme Permissions
« Reply #10 on: July 13, 2009, 11:12:46 AM »
Late but... Thank you!
http://www.tigrelog.com.br
l: simple p: machines

Offline shumilica

  • Jr. Member
  • **
  • Posts: 218
  • Gender: Male
  • SMF all the way!
    • Psiholog Body Mind Spirit
Re: Theme Permissions
« Reply #11 on: December 04, 2009, 11:08:26 PM »
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!

Offline Sakae

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
    • TigreLOG
Re: Theme Permissions
« Reply #12 on: February 02, 2010, 12:16:01 AM »
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,395
    • StoryBB/StoryBB on GitHub
Re: Theme Permissions
« Reply #13 on: February 02, 2010, 02:11:50 AM »
I'm not sure this does work on RC2 :(
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Sakae

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
    • TigreLOG
Re: Theme Permissions
« Reply #14 on: February 02, 2010, 06:25:16 PM »
I'm not sure this does work on RC2 :(

Sure it doesn't :(
http://www.tigrelog.com.br
l: simple p: machines

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,395
    • StoryBB/StoryBB on GitHub
Re: Theme Permissions
« Reply #15 on: February 03, 2010, 02:42:57 AM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Theme Permissions
« Reply #16 on: February 03, 2010, 05:53:38 AM »
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,395
    • StoryBB/StoryBB on GitHub
Re: Theme Permissions
« Reply #17 on: February 03, 2010, 06:10:05 AM »
We tried this on SimpleDesk a few days back and the permissions didn't seem to be enforced properly.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,526
  • Young and Foolish
    • SimplePortal
Re: Theme Permissions
« Reply #18 on: February 03, 2010, 06:13:31 AM »
I have tested it before uploading as well. How did you test it?
Former SMF Core Developer | My Mods | SimplePortal

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,395
    • StoryBB/StoryBB on GitHub
Re: Theme Permissions
« Reply #19 on: February 03, 2010, 06:44:01 AM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.