|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Myspace profile
Hello, I was just wondering if someone could give me an idea of how the myspace profile page works?
I know users can use html/css in their page for background images, and font colors, etc. If a user sets font-family fnt-size and color, aswell as a background image the page would display with these settings, but what if a user didn't set these? How would the profile page know that these have not been set, in order to use default values? Any info on the best way to make a myspace style profile page would be helpful. thanks. |
|
#2
|
|||
|
|||
|
Does MySpace use PHP?
|
|
#3
|
|||
|
|||
|
this is standard db type question. what you can do is have a table with all the info that user can change ie background-color, color etc etc and then in the css file (which has to change to something.php and a declaration in php to tell browser it is a css file needs to be put!) you get the row for the current user and do bunch of If elses ie if there is a row[color] then echo "color:$row[color]"; else echo "color:<default color>"; etc etc
|
|
#4
|
||||
|
||||
|
The normal MySpace profile CSS is there, it is just over written by the CSS which you, the user, enters. It is all done client side, no real server stuff is done other than echoing. Also, MySpace uses Cold Fusion, not PHP. Hmm, not sure what forum this should be in, so I will suggest the CSS forum.
__________________
|
|
#5
|
||||
|
||||
|
Thread moved from PHP to Scripts ... the question isn't how to do it with CSS but how to know when to use defaults, which is a general scripting question not related to a particular language (where did the Algorithms forum go?).
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Myspace profile |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|