Forum Moderators: coopster

Message Too Old, No Replies

Another Modification help

         

joshiley

8:40 am on Dec 25, 2008 (gmt 0)

10+ Year Member



wel hello and happy holidays again

I want to create a website in php-fusion and i hav to add another feature to it....so if sombody hav experience wid it i will really appreciate his help.....
the thing which i needed is a modification in " register page"
suppose i hav user from say 10 countrys...
USA
UK
CANADA
ASIA
CHINA
INDIA
EUROPE etc..

when dese user register say there is a field called coutry or location...

when they choose dese location they get different theme depending upon there location...

again...

a field in register form....
if u choose any location the user gets directed to an assigned theme...

say user A choses location CANADA..... he gets som xyz theme designed for user of that part of the word.....

so wat changes i hav to make to acheive this...
i think itz a really tuf thing for a noob like me...but at least i m thinkin...Wink

hoping for a reply..i know itz holidays... but stilll if sombody has tym...i will really appreaciate dis help...

thanx to all

coopster

1:58 pm on Dec 25, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You could either store the user's theme in a cookie that you set or perhaps even in their user profile. Of course, you may also want to allow them the option of changing that theme whenever they desire.

Pico_Train

5:24 am on Dec 26, 2008 (gmt 0)

10+ Year Member



$theme = ''

switch $theme;
case "Canada":
$theme = "canada-style.css";
break;

case "India":
$theme = "india-style.css";
break;

<link type="text/css" rel="stylesheet" href="path-to-css/<?php echo $theme;?>" >

McBlack

8:58 pm on Dec 26, 2008 (gmt 0)

10+ Year Member



That won't work...

switch ($theme) {
case "Canada":
$theme = "canada-style.css";
break;

case "India":
$theme = "india-style.css";
break;

}

you can't use a semicolon for starting a switch condition.

Pico_Train

5:19 pm on Dec 27, 2008 (gmt 0)

10+ Year Member



typo...