Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 4th, 2008, 06:12 PM
stevenatherton4 stevenatherton4 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 73 stevenatherton4 New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 1 Day 10 h 28 m 59 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 4th, 2008, 06:56 PM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,418 lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 16 h 9 m 22 sec
Reputation Power: 685
Does MySpace use PHP?

Reply With Quote
  #3  
Old January 5th, 2008, 06:43 PM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,239 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 12 h 25 m 28 sec
Reputation Power: 17
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

Reply With Quote
  #4  
Old January 5th, 2008, 06:50 PM
ryon420's Avatar
ryon420 ryon420 is offline
Historian->°
Click here for more information. Click here for more information
 
Join Date: Jun 2006
Location: Was lost, then found, now lost again.
Posts: 2,985 ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)ryon420 User rank is General (90000 - 100000 Reputation Level)  Folding Points: 1496 Folding Title: Novice Folder
Time spent in forums: 5 Months 2 Weeks 4 Days 5 h 9 m 34 sec
Reputation Power: 934
Send a message via MSN to ryon420 Send a message via Google Talk to ryon420
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.
Comments on this post
lnxgeek agrees: This is what I was getting at, thank you.
__________________

Warning, the post above may contain extreme sarcasm, crude language, and code that may confuse amateurs and professionals.


Helpful stuff: Google your question first | Read the rules | How to ask a question | Read the [PHP] manual, it is good for you
Proud supporter of: Philosophorum - "where even the trolls are smart" | Chikyu Hakken - digging for trolls
"Any excuse will serve a tyrant." -- Aesop


Reply With Quote
  #5  
Old January 7th, 2008, 07:17 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,344 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 6 h 26 m 32 sec
Reputation Power: 787
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Myspace profile


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway