Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 14th March 2013, 09:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

ISPConfig 3.0.5 themes contain a version file, if your theme is compatible with the installed version, please add the ispconfig_version file in your theme with the current version number of the installed ispconfig version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 14th March 2013, 15:06
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

Till,

Can you give me an example of this file? I found one in the default-304 folder. I added that into my folder and changed the version number to 3.0.5.1. That did not work.

I even changed the permissions on the file to be 750 as they are in the other folder, but still no luck. Have you tried the theme switching on any test boxes that you have? Is it working?

Last edited by dclardy; 14th March 2013 at 15:22.
Reply With Quote
  #13  
Old 14th March 2013, 16:48
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

Till,

I have found the issue. I was looking through the code for login, and I found this.

Code:
if($_SESSION['s']['user']['theme'] != 'default') {
                                    $tmp_path = ISPC_THEMES_PATH."/".$_SESSION['s']['user']['theme'];
                                    if(!@is_dir($tmp_path) || !@file_exists($tmp_path."/ISPC_VERSION") || trim(file_get_contents($tmp_path."/ISPC_VERSION")) != ISPC_APP_VERSION) {
                                        // fall back to default theme if this one is not compatible with current ispc version
                                        $_SESSION['s']['user']['theme'] = 'default';
                                        $_SESSION['s']['theme'] = 'default';
                                        $_SESSION['show_error_msg'] = $app->lng('theme_not_compatible');
                                    }
                                }
It is checking for the file ISPC_VERSION. The sample files in the other directories are ispconfig_version.

I made the change to my file name, and the theme loads every single time.

So the key here is to add an ISPC_VERSION file to your theme for it to work. The file name ispconfig_version will not work currently.
Reply With Quote
  #14  
Old 14th March 2013, 16:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Ok, thanks for pointing that ou. I fixed the code so that it uses the correct name "ispconfig_version" for the file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 14th March 2013, 16:59
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

Quote:
Originally Posted by till View Post
Ok, thanks for pointing that ou. I fixed the code so that it uses the correct name "ispconfig_version" for the file.
Well, I guess I will change my file name when you release 3.0.5.2. For now, I am just using the one that you are checking for.
Reply With Quote
  #16  
Old 14th March 2013, 17:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Or you add both filenames.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 14th March 2013, 18:05
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

Quote:
Originally Posted by till View Post
Or you add both filenames.
I went ahead and added that.
Reply With Quote
  #18  
Old 14th April 2013, 13:27
jimmyk jimmyk is offline
Junior Member
 
Join Date: Apr 2013
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

I have just upgraded an ISPConfig 3.0.4.6 to version 3.0.5.2 and I have been struggling with the same login issues on my theme.

After adding both the 'ISPC_VERSION' and 'ispconfig_version' files to my theme folder the login problems were resolved. I then removed the file name 'ISPC_VERSION' and the login process still worked fine so I think this issue seems to have been resolved in version 3.0.5.2.

The odd thing is that the upgrade process added an 'ispconfig_version' file to all the ISPConfig default theme folders, but the files contained version number 3.0.4.6. This meant that these themes were not visible in the webinterface for ISPconfig under the: Tools--> Interface --> Design, dropdown menu.

Thanks for this post as I was struggling to resolve this issue (even thought I noticed the new ISPConfig version contained an additional 'ispconfig_version' file about four hours before I came across this post!)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6.3 - Change From Single Private IP To Multiple Public IP Block Unfaiir Installation/Configuration 3 14th February 2013 10:18
Cannot change ISPConfig theme todx General 4 30th April 2012 15:26
Issues with Change SQL Password plugin for Squirrel Mail on Centos 5.4 and ISPConfig3 centosarus Installation/Configuration 6 4th May 2010 15:59
Two FTP Issues: Change Port and Alerts jonwatson Installation/Configuration 3 13th February 2009 13:49
Change the default language and theme Felipe Tips/Tricks/Mods 2 13th December 2005 17:11


All times are GMT +2. The time now is 15:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.