Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-26-2009, 08:55 AM change colours
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Hi

I have two websites for the same product with two different domains.

The several colors of one is based on different shades of green.

The other is made with different shades of blue.

All the information and structure of both sites are the same.

Now my question is:

Instead of having in the server two complete equal websites diverging only the colors and the titles, how can I have only one having a file that states something like that

color=#00600" == ($1g)
color=#00610" == ($2g)
color=#0000ff" == ($1b)
color=#000cff" == ($2b)
and so on


if (($domain == "www.websitename.com" or $domain == "websitename.com")) {
if ($color == "$1g") $color="#00600";

}

Of course that I have to replace all the colors statements by variables.

I don't know if I made myself understood.
josil is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-26-2009, 10:18 AM Re: change colours
Experienced Talker

Posts: 41
Trades: 0
you talking about making a array of thoes colors?
flatrat is offline
Reply With Quote
View Public Profile
 
Old 07-26-2009, 12:52 PM Re: change colours
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Quote:
Originally Posted by flatrat View Post
you talking about making a array of thoes colors?
Well probably I do have to, but I don't think so.

Imagine that you have an site number 1 and a site number 2 with the same structure. In another words you have only one structure, only one set of website that compose the site at the server but the domain of the number one opens the web site with green colors and te numebr two with blue colours.
josil is offline
Reply With Quote
View Public Profile
 
Old 07-26-2009, 01:06 PM Re: change colours
Experienced Talker

Posts: 41
Trades: 0
wrap them in diffrent style sheets and it should do that? .CSS
it will change the layout of your sites
flatrat is offline
Reply With Quote
View Public Profile
 
Old 07-26-2009, 05:53 PM Re: change colours
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Quote:
Originally Posted by flatrat View Post
wrap them in diffrent style sheets and it should do that? .CSS
it will change the layout of your sites

Ok. But...how to do it? I never have done it.
I never did css before

Any chance to do it for me those files?

here it is the paramenters:


domain number one and domain number two.

colors for domain numebr one:
green a, green b, green c. (I will replace the color codes for each one.)

colors for domain numebr two:
blue a, blue b, blue c (I will replace the color codes for each one.)

How to write the variables in the website files to represent the various colors.

What file does the domains go in order to open the website in a set up color?

thanks for the help
josil is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to change colours
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21108 seconds with 12 queries