Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1422)
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 (http://www.simplemachines.org/community/index.php?action=profile;u=119433).
-[SiNaN]
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õ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-utf8.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-utf8.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>
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ä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>
Really useful for my forum thanks
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.
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.
This is a great mod, too bad it's not for the 1.1.x version.
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?
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*.
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ões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Ele deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você nã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ões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Ele deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você nã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ões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Ele deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você nã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ões';
$txt['alundra_theme_permissions_guest'] = 'Você não pode configurar permissões de fórum tema default. Ele deve ser utilizável por todos os utilizadores.';
$txt['alundra_select_not_allow'] = 'Você não pode selecionar o tema!';
// !!! Alundra
]]></add>
</operation>
</file>
Late but... Thank you!
Is this mod compatible with 2.0 RC2?
Sinan, do you consider updating the mod?
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!
I'm not sure this does work on RC2 :(
Quote from: Arantor on February 02, 2010, 02:11:50 AM
I'm not sure this does work on RC2 :(
Sure it doesn't :(
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.
I have bumped the version to 1.0.1 adding support for SMF 2.0 RC2. Only template edit required recoding.
We tried this on SimpleDesk a few days back and the permissions didn't seem to be enforced properly.
I have tested it before uploading as well. How did you test it?
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.
Well, then it might be something related to how template edit was updated. As I said, I have tested it myself before uploading. If anyone has an issue, I'll look into it.
Howdy Sinan! Thanks for updating, first of all.
I can't find the settings for your mod. I searched at Admin Control Panel >> Themes and Layout >> Themes Settings, as instructed, but there's no "Themes Settings"!
So I added the languages strings on my portuguese_brazilian-utf8 (and cleared the Cache), but still nothing happens.
What am I missing?
Oh-wow, I think something it's wrong here. I managed to find the "Theme Permissions" located one menu above Themes and Layout (don't know the exactly translation, but it's something about 'the Actual Theme').
But that motivates a error message: You cannot set permissions for forum default theme. It must be usable by all users.
Oh-double-wow! :P
I managed to setup it correctly!! Sorry, I had misunderstood the (VERY SIMPLE, BTW) instructions... LOL
Now it's working great! Thanks a lot, mate!! Now I managed to work it on some VIP accounts for my forum! :)
Yeah, you just needed to click on the name of the theme in the Theme Settings page. Glad that you could find it. ;)
Mod is now updated for SMF 2.0 RC4!
Any hard changes?
I installed on my SMF 2.0 RC4 yesterday, is working great already.
Any chance of making this for 1.x
I've got a problem with this mod. For example, if I allow to moderators select a theme a user who is moderator can select it. All it's right but when this user cease to be moderator he can continue using it, not selecting it, but he continues having the theme. I want that when user stops being moderator has the default theme automatically.
The mod is very old, but it's very necesary to me use it
I hope you unserstand me
Thanks!
So... This mod lets you pick which usergroups can use that theme?
Need this for 2.1! O:)