select your color theme?
#1
Posted 21 September 2005 - 07:04 AM
How would i go about doing this?
#2
Posted 21 September 2005 - 07:11 AM
#3
Posted 21 September 2005 - 01:38 PM
red_bar.jpg or blue_bar.jpg ect.
Then make a form with a select option with all the colors.
Make the name of your select color.
Then include this code:
if (isset($_GET['color'])){
$color = $_GET['color'];
}else{
if isset($_POST['color']){
$color = $_POST['color'];
}else{
$color = 'DEFAULTCOLORHERE';
}
}
echo '<img src="'.$color.'.jpg">';
Make sure everythign link has ?color='.$color.' at the end of your links so the color is carried over.
Edited by Lang, 21 September 2005 - 01:40 PM.
#4
Posted 21 September 2005 - 03:23 PM
The database should have a few, and i believe spoono.com has a tutorial on how they do theirs.
But if you're doing actual images like what lang mentioned, you can try that, or javascript (javascript would probably be harder)
#5
Posted 21 September 2005 - 10:39 PM
www.spoono.com
They wont mind.
#6
Posted 22 September 2005 - 03:20 PM
You can look at their code to see what they did, but don't copy/paste and change a few image names
p.s. My first statement is sarcasim, copyright violation is illegal...
#7
Posted 23 September 2005 - 02:54 PM
could you please elaborate more
~aeiko
#8
Posted 23 September 2005 - 06:34 PM
rc69, on Sep 22 2005, 08:20 PM, said:
You can look at their code to see what they did, but don't copy/paste and change a few image names
p.s. My first statement is sarcasim, copyright violation is illegal...
Ive asked on the forums aswell.
#9
Posted 23 September 2005 - 08:49 PM
#10
Posted 24 September 2005 - 02:10 AM
#11
Posted 24 September 2005 - 11:14 AM
#12
Posted 24 September 2005 - 11:20 AM
#13
Posted 24 September 2005 - 11:21 AM
MillerTime, on Sep 24 2005, 04:14 PM, said:
#14
Posted 24 September 2005 - 08:32 PM
thanks again
#15
Posted 24 September 2005 - 09:56 PM
tyler, on Sep 25 2005, 01:32 AM, said:
thanks again
------------------------------------------
As you may of seen on http://www.spoono.com They have a skin changer! This is something similar and it has the same idea as theirs. Just that this has a refresh page that will bring you back to the last page page you were viewing instead of going back to the home page.
1) First off, create your index.php This will have a very few lines of code, and add this in there:
Quote
ini_set("session.cookie_lifetime", "315360000");
session_start();
//Settign the styles
switch($_SESSION["style"])
{
case "red":
include("red.php");
break;
/*
To add a new skin, simply add:
case "NAME OF SKIN":
include("FILENAME TO SKIN");
break;
*/
default:
include("default.php");
break;
}
?>
All your skins will be in different files. Your default skin will be set to default.php So you would set up that file the same you would with index.php. If you wanted a red skin. You could simply create the red skin on the file red.php with the images set to the red images and etc. Please also note:
Quote
To add a new skin, simply add:
case "NAME OF SKIN":
include("FILENAME TO SKIN");
break;
*/
2) Now, create a style.php and insert this code:
Quote
ini_set("session.cookie_lifetime", "315360000");
session_start();
$_SESSION["style"] = $_GET["set"];
?>
Please Wait...
layout scheme selected, please wait to be redirected...
( Click here if you are not redirected in 3 seconds )
Please notice the code $HTTP_REFERER which is the last page you visited. If you did not visit a page before the style page is loaded. You are stuck
To change a skin, you can simply set a hyperlink to
Quote
Final Notes: Cookies must be enabled for this to work. Also, this is a lifetime cookie so it will take a LONG time to expire.
If you have any questions, comments, suggestions, please feel free to speak your mind.
Tutorial Copyright © 2005 Chaos King -- Pixel-Designz
Hoped this helped you if you still needed it.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
