January 4, 201115 yr Hi, First of all not sure if this is the right place so sorry if its not! Right what id like to do is to be able to edit a CSS style sheet via a browser but with a user friendly interface for my clients. Id like them to be able to edit mainly just colours and it saves it to the style sheet and its done and ready to go. Is there a script that can do this? Im not very good with starting things from scratch if you get me so I need a bit of help with this please Hope you can help Many thanks Joe
January 4, 201115 yr I think you could do this with php? I have heard that you can enable php to run in a style sheet using a HTACCESS file. What you would need to do is set the colours in the style sheet as variable e.g. box {color:$boxcolour;\} Then have a page that is included that the user can select the colour from and make it set the variable. Correct me If im wrong as im still learning php?
January 4, 201115 yr You could put the styles that you will allow the client to edit in a separate stylesheet, then use the host's server control panel to set restriction with a username and password that only allows access to that css file (and set a different username and password for all the others so that he/she can't access all the others). I think you can do this with ftp username/password. On reflection that isn't very user-friendly because although there would only be access to a few styles, the client would have to know how to edit them, so a form where the client enters and submits a color, like green, and the PHP converts that to a code and edits the css file is required. Edited January 4, 201115 yr by Wickham
January 5, 201115 yr Author Hi Thanks alot for the replies ayoungh - I dont have enough knowledge to know how to code it from scratch I need a simple example then I can make the rest work. Wickham - This would be to complex as my clients have NO HTML knowledge Many thanks for your help though Joe
Create an account or sign in to comment