[SOLVED] Custom Theme - Customer Dashboard not Reflecting
Moderator: crythias
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
[SOLVED] Custom Theme - Customer Dashboard not Reflecting
Hi,
I have created a new theme by copying certain files from the Standard theme and making the required changes. All I really did was change the header and footer files for the customer interface. I changed the default theme to my new custom theme, which works great. If I go to the customer.pl page, it reflects my new theme, but as soon as I log in, the Standard theme is used. I assume that I only need to change CustomerHeader.dtl and CustomerFooter.dtl, and then the theme should change across all customer interface pages?
I have made sure to follow the instructions in the WIKI by adding the theme in mysql, and also deleted all user preferences for themes, but still no luck.
How do I get the theme to reflect correctly across all customer interface pages, and not just the login screen?
I have created a new theme by copying certain files from the Standard theme and making the required changes. All I really did was change the header and footer files for the customer interface. I changed the default theme to my new custom theme, which works great. If I go to the customer.pl page, it reflects my new theme, but as soon as I log in, the Standard theme is used. I assume that I only need to change CustomerHeader.dtl and CustomerFooter.dtl, and then the theme should change across all customer interface pages?
I have made sure to follow the instructions in the WIKI by adding the theme in mysql, and also deleted all user preferences for themes, but still no luck.
How do I get the theme to reflect correctly across all customer interface pages, and not just the login screen?
Last edited by davidbann on 19 Aug 2010, 12:13, edited 1 time in total.
Re: Custom Theme - Customer Dashboard not Reflecting
Have a check on the settings of the customer user and change the theme there
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
I have tried that - I logged in as a test user, and checked preferences, but there is no option to select a theme... Where must I check this?
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
Note that I also executed the following to delete any preferences to do with a theme:
sql> delete from customer_preferences where preferences_key = 'UserTheme';
This did not work
sql> delete from customer_preferences where preferences_key = 'UserTheme';
This did not work
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
Ok I enabled the Customer option to set their own theme using SysConfig, and noticed that the new theme is not an option in the theme dropdown. The same applies for agents. I have verified that my theme has been inserted into the "theme" table with id=3, theme="Name", valid_id=1.
Any idea why the new theme does not appear as an option?
Any idea why the new theme does not appear as an option?
Re: Custom Theme - Customer Dashboard not Reflecting
did you followed all steps: http://doc.otrs.org/2.4/en/html/c2079.html
Did you also changed the default theme in sysconfig?
Did you also changed the default theme in sysconfig?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
As I mentioned in the original post, I did follow the steps and I did change the default theme in SysConfig.
Here is exactly what I have done:
Creates a directory called Kernel/Output/HTML/K5ERP and copied the following files from Kernel/Output/HTML/Standard and modified them:
- CustomerFooter.dtl
- CustomerHeader.dtl
I then ran the following script:
mysql> INSERT INTO theme
-> (theme, valid_id, create_time, create_by, change_time, change_by)
-> VALUES
-> ('K5ERP', 1, current_timestamp, 1, current_timestamp, 1);
[EDIT] I also went to the SysConfig under Core and set DefaultTheme to "K5ERP".
After all of this, still no luck - as recommended by the OTRS support assessment, I have enabled query_cache_size=32m and query_cache_type=1. To ensure that this problem is not caused by cached results, I executed RESET QUERY CACHE; in mysql but still no luck.
Here is exactly what I have done:
Creates a directory called Kernel/Output/HTML/K5ERP and copied the following files from Kernel/Output/HTML/Standard and modified them:
- CustomerFooter.dtl
- CustomerHeader.dtl
I then ran the following script:
mysql> INSERT INTO theme
-> (theme, valid_id, create_time, create_by, change_time, change_by)
-> VALUES
-> ('K5ERP', 1, current_timestamp, 1, current_timestamp, 1);
[EDIT] I also went to the SysConfig under Core and set DefaultTheme to "K5ERP".
After all of this, still no luck - as recommended by the OTRS support assessment, I have enabled query_cache_size=32m and query_cache_type=1. To ensure that this problem is not caused by cached results, I executed RESET QUERY CACHE; in mysql but still no luck.
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
Just to clarify - this problem is not specific to the customer interface.. I have realised that this is a general problem and even though I have installed the new theme according to the steps in the wiki, the new theme does not show as an option under the agent or customer theme dropdown box.
Strangely, because I have set the default theme correctly in SysConfig, when going to Customer.pl, the new theme is actually used - only after logging in does it revert back to the Standard theme. Very strange...
Strangely, because I have set the default theme correctly in SysConfig, when going to Customer.pl, the new theme is actually used - only after logging in does it revert back to the Standard theme. Very strange...
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
It looks like this is not a very common problem - can anyone provide advice on how I can try and find what the problem is? I don't have much PHP or Perl experience, but I can work things out, so if anyone has any suggestions where to start, I would appreciate it!
Re: Custom Theme - Customer Dashboard not Reflecting
According to what you have explained, I do not see that you have put the new theme for the customer user. Go (as admin or agent) to the customer user properties and set the new Theme.
Re: Custom Theme - Customer Dashboard not Reflecting
what is the output from: select * from theme; in the MySQL CLI?
I guess that your insert statement did not work!
I guess that your insert statement did not work!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
Here is the output:jojo wrote:what is the output from: select * from theme; in the MySQL CLI?
I guess that your insert statement did not work!
Code: Select all
mysql> use otrs
Database changed
mysql> select * from theme;
+----+----------+----------+---------------------+-----------+---------------------+-----------+
| id | theme | valid_id | create_time | create_by | change_time | change_by |
+----+----------+----------+---------------------+-----------+---------------------+-----------+
| 1 | Standard | 1 | 2010-07-15 20:27:29 | 1 | 2010-07-15 20:27:29 | 1 |
| 2 | Lite | 1 | 2010-07-15 20:27:29 | 1 | 2010-07-15 20:27:29 | 1 |
| 3 | K5ERP | 1 | 2010-08-17 19:20:43 | 1 | 2010-08-17 19:20:43 | 1 |
+----+----------+----------+---------------------+-----------+---------------------+-----------+
3 rows in set (0.19 sec)
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
When I go to the settings of a customer user, it does not give me the option of my new theme in the "theme" dropdown. It only shows "Standard" and "Light". The same applies for when I go to my own preferences - Agents don't have the new theme as an option either.ivit wrote:According to what you have explained, I do not see that you have put the new theme for the customer user. Go (as admin or agent) to the customer user properties and set the new Theme.
Re: Custom Theme - Customer Dashboard not Reflecting
Are you pointing to the correct DB? Check the config.
-
- Znuny newbie
- Posts: 92
- Joined: 21 Jun 2010, 22:51
- Znuny Version: 6.5.2
- Real Name: David Bann
- Location: South Africa
Re: Custom Theme - Customer Dashboard not Reflecting
Wow - that's embarrassing... lol - thanks, I had an older OTRS database and forgot that I had elected to use another DB name instead. So once i added the theme into the new database everything started working as expected.ivit wrote:Are you pointing to the correct DB? Check the config.
Thanks everyone for the help!