NetTalk Central

Author Topic: Problem with themes  (Read 2741 times)

Matthew

  • Full Member
  • ***
  • Posts: 137
    • View Profile
    • Email
Problem with themes
« on: December 02, 2011, 04:42:51 AM »
Hello,

I have problem with themes. I have two web servers which used one web folder. I that folder I have different themes for example 'web\themes\ws1' and 'web\themes\ws2' where i have different css filename for example 'ws1.css' and 'ws2.css', but i some cases the css class name are the same in that files but different properties for example:
- for ws1.css
.MyBackgroundColor{
  background-color: blue;
}
- for ws2.css
.MyBackgroundColor{
  background-color: red;
}

After compiling first web server theme for that web server works fine. Then when I compile second web server then it's losing it's own themes. GzipAll.Bat was created only once after compiling first web server and it add only ws1.css to both themes.css in ws1 and ws2 folder. So the background-color in my second web server is blue.

My questions is:
1. Is it possible to create themes.css file independently for every folder in themes folder?
2. Can I use the same web folder for two web server? (In NetTalk 5 it works fine based on style folder)
3. What should I do to have separate themes.css for two web servers?

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: Problem with themes
« Reply #1 on: December 02, 2011, 06:25:55 AM »
I am going to try this for my servers - make the default theme a global variable saved in the ini. and put a theme name in there.
Then in your themes folder, have 2 themes - ws1 and ws2
in the ini have the theme name set to whichever theme you need.

I am doing this later today so I can also allow the user to select their own theme.

HTH,
Chris
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Problem with themes
« Reply #2 on: December 02, 2011, 09:12:44 PM »
>> where i have different css filename for example 'ws1.css' and 'ws2.css', but i some cases the css class name are the same in that files but different properties for example:

this is the key.
a) make them the _same_ name - use the folder location to differentiate them rather than the name.

b) On the WebServer procedure, nettalk extension, Settings, styles, Files, add the "one name" there.

cheers
Bruce