jkewlo Posted June 17, 2009 Share Posted June 17, 2009 How will I go about displaying the .css in a text are so a user can edit his profile? Quote Link to comment https://forums.phpfreaks.com/topic/162505-displaying-css-in-a-text-area-for-user-editing/ Share on other sites More sharing options...
Maq Posted June 17, 2009 Share Posted June 17, 2009 How will I go about displaying the .css in a text are so a user can edit his profile? ...How will displaying a CSS file enable a user to edit their profile? Quote Link to comment https://forums.phpfreaks.com/topic/162505-displaying-css-in-a-text-area-for-user-editing/#findComment-857706 Share on other sites More sharing options...
jkewlo Posted June 17, 2009 Author Share Posted June 17, 2009 well im not sure if i am approaching this wrong. I want users to be able to customize there profile like myspace, will i have to save the CSS to the database? and then let them edit it from that? Quote Link to comment https://forums.phpfreaks.com/topic/162505-displaying-css-in-a-text-area-for-user-editing/#findComment-857708 Share on other sites More sharing options...
Maq Posted June 17, 2009 Share Posted June 17, 2009 Don't let them edit it. That could pose a huge security issue. People could easily inject code. Instead you should let them choose from different options for style so you have control over sanitizing the inputs. Quote Link to comment https://forums.phpfreaks.com/topic/162505-displaying-css-in-a-text-area-for-user-editing/#findComment-857712 Share on other sites More sharing options...
jkewlo Posted June 17, 2009 Author Share Posted June 17, 2009 Yeah I was thinking that Creating pre made themes and then letting them select that and just have the theme read from the database have a path set up in there to like css/themes/dark/style.css css/themes/default/style.css etc.... echo "<LINK REL=StyleSheet HREF=css/themes/". $Crows['style'] ."style.css TYPE=text/css>"; or something on the lines of that, Also I am looking for some other php dev's if interested in helping with the site alot of it is completed/work in progress http://www.eve-lounge.com Quote Link to comment https://forums.phpfreaks.com/topic/162505-displaying-css-in-a-text-area-for-user-editing/#findComment-857727 Share on other sites More sharing options...
Maq Posted June 17, 2009 Share Posted June 17, 2009 Yeah I was thinking that Creating pre made themes and then letting them select that and just have the theme read from the database have a path set up in there to like Most sites have that, or do what I suggested before, which is give them options to choose from so you have entire control. or something on the lines of that, Also I am looking for some other php dev's if interested in helping with the site alot of it is completed/work in progress http://www.eve-lounge.com That would belong in the Freelance section. Quote Link to comment https://forums.phpfreaks.com/topic/162505-displaying-css-in-a-text-area-for-user-editing/#findComment-857965 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.