[SOLVED] Problem with themes

Moderator: crythias

Locked
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

[SOLVED] Problem with themes

Post by aph »

I created a new theme and placed it under 'Kernel/Output/HTML/Company' and added it in SysConfig under 'Frontend::Themes' as described here. http://otrs.github.io/doc/manual/admin/ ... hemes.html.

The theme however does not appear under 'Preferences'. As a matter of fact, there is no option to select a theme, although theme is activated in SysConfig
Unbenannt_24.PNG
Is it possible to set a default skin for agents?

Thank you
You do not have the required permissions to view the files attached to this post.
Last edited by aph on 21 Jul 2014, 13:12, edited 1 time in total.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Problem with themes

Post by aph »

Do I have to register themes somewhere other than 'Frontend::Themes' as well?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Problem with themes

Post by aph »

Any idea why 'Theme' option does not appear in user preferences?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with themes

Post by reneeb »

Please show us how/where you have configured the Themes. Is the Company directory readable for the webserver user (Did you run otrs.SetPermissions.pl after you have created the dir)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Problem with themes

Post by aph »

I created the directory named 'Company' under ....\otrs\OTRS\Kernel\Output\HTML.
The same users that have access to the ....\otrs\OTRS\Kernel\Output\HTML\Standard directory also have access to ....\otrs\OTRS\Kernel\Output\HTML\Company directory.

On running the command

Code: Select all

C:\otrs\OTRS\bin>otrs.SetPermissions.pl --otrs-group=users
I get the following error

Code: Select all

bin/otrs.SetPermissions.pl - set OTRS file permissions
Copyright (C) 2001-2014 xxx, http://otrs.com/
Usage: otrs.SetPermissions.pl
    [--otrs-user=<OTRS_USER>]
    [--web-user=<WEBSERVER_USER>]
    [--otrs-group=<OTRS_GROUP>]
    [--web-group=<WEB_GROUP>]
    [--admin-user=<ADMIN_USER>]
    [--admin-group=<ADMIN_GROUP>]
    [--admin-group-writable]
    [--secure]  (paranoid mode: all files readonly, does not work with PackageManager)
    [--not-root]
    <OTRS_HOME>

Try: otrs.SetPermissions.pl /opt/otrs
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with themes

Post by reneeb »

renee wrote:Please show us how/where you have configured the Themes
You didn't show us how you *configured* it
aph wrote: On running the command

Code: Select all

C:\otrs\OTRS\bin>otrs.SetPermissions.pl --otrs-group=users
I get the following error

Code: Select all

bin/otrs.SetPermissions.pl - set OTRS file permissions
Copyright (C) 2001-2014 xxx, http://otrs.com/
Usage: otrs.SetPermissions.pl
    [--otrs-user=<OTRS_USER>]
    [--web-user=<WEBSERVER_USER>]
    [--otrs-group=<OTRS_GROUP>]
    [--web-group=<WEB_GROUP>]
    [--admin-user=<ADMIN_USER>]
    [--admin-group=<ADMIN_GROUP>]
    [--admin-group-writable]
    [--secure]  (paranoid mode: all files readonly, does not work with PackageManager)
    [--not-root]
    <OTRS_HOME>

Try: otrs.SetPermissions.pl /opt/otrs
Then run the command as shown...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Problem with themes

Post by aph »

reneeb wrote: You didn't show us how you *configured* it
I created a directory ....'Kernel/Output/HTML/Company' In this directory I copied the dtl files and changed them. I then activated the theme under Frontend::Themes in Framework -> Core::Web.

In Framework -> Frontend::Agent::Preferences, I have the following settings (which as far as understand defines that the 'Theme' option should be dispalyed under 'Edit your preferences' )
Unbenannt_24.PNG
on running the command as shown I get the error

Code: Select all

The getpwnam function is unimplemented at C:\otrs\OTRS\bin\otrs.SetPermissions.pl line 314.
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with themes

Post by reneeb »

Sorry, didn't read that you're using Windows. Forget the SetPermissions stuff...
I then activated the theme under Frontend::Themes in Framework -> Core::Web.
Please post a screenshot...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Problem with themes

Post by aph »

Here is the screenshot
Unbenannt_32.PNG
Thanks
You do not have the required permissions to view the files attached to this post.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Problem with themes

Post by reneeb »

The option will appear in the preferences when there are at least to themes to choose from. As you have enabled only one (your own), the option is not shown.

So you should set your own theme as the standard theme.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Problem with themes

Post by aph »

Working now! After creating a new theme, a drop down list appears.
Thanks!
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Locked