pwes24 Posted March 19, 2008 Share Posted March 19, 2008 Hello everyone. I'd like to create a user friendly admin file where one can change elements like coloron a different web page. For example, to change the background of a web page, the client just logs on to the admin panel and makes the change. How do I write code to go to the web page and update this information permanently? Your help will be apperciated. Quote Link to comment https://forums.phpfreaks.com/topic/96841-writing-to-phpcss-files/ Share on other sites More sharing options...
maexus Posted March 20, 2008 Share Posted March 20, 2008 I imagine this would involve either just displaying the contents of the css file in a textarea and the users edits or or more complicated approach of parsing the css into a form and recompiling when saved. Quote Link to comment https://forums.phpfreaks.com/topic/96841-writing-to-phpcss-files/#findComment-496995 Share on other sites More sharing options...
Liquid Fire Posted March 20, 2008 Share Posted March 20, 2008 or databasing it and using php to generate css(dynamic css). Quote Link to comment https://forums.phpfreaks.com/topic/96841-writing-to-phpcss-files/#findComment-497156 Share on other sites More sharing options...
maexus Posted March 20, 2008 Share Posted March 20, 2008 Do you have an example db structure for that? I would seem that would be hard to do when you start to get into the more complex css files. Quote Link to comment https://forums.phpfreaks.com/topic/96841-writing-to-phpcss-files/#findComment-497226 Share on other sites More sharing options...
dbo Posted March 21, 2008 Share Posted March 21, 2008 Your description is really too loosely defined to be able to give an adequate suggestion on design. Can you list some specific requirements for how you wish the system will work? Have you thought about the user interfaces and how a user would be updating these fields. Often times it helps to come up with what you want the interface to do and look like and then figure out how to write the code to do it. This is why that role is often split up. When you get developers thinking about design... while keeping coding in mind it can limit creativity (can also be a good thing sometimes...). Give us some more thought to your vision and then we'll help. Quote Link to comment https://forums.phpfreaks.com/topic/96841-writing-to-phpcss-files/#findComment-497252 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.