Click to See Complete Forum and Search --> : Log in CP
Dragonkai
06-05-2007, 12:21 AM
You know when you log into web developer, it displays your Control panel. Now Creating a log in page requires to use mysql right? Then if it matches you log in, but for a personalized control panel, how does it display that. What I mean is that the same page is different for different accounts. So what kind of script do they use to do that?
bokeh
06-05-2007, 04:58 AM
what kind of script do they use to do that?I guess it would be helpful if you could say who "they" are!
Dragonkai
06-05-2007, 11:14 PM
Well I guess web developer.
HazardTW
06-05-2007, 11:58 PM
I am guessing that there are predefined themes using stylesheets plus maybe the ability to choose certain styling features you like best, and the database that keeps your member information would also keep a record of the theme you selected and load the appropriate stylesheet for you.
If that isn't what you are talking about, then you are probably referring to the mind reading thing which I can't talk about.
bokeh
06-06-2007, 04:34 AM
for a personalized control panel, how does it display that.There is a database table that contains the preferences of each user. The controlling script produces output taking these preferences into consideration.
Dragonkai
06-06-2007, 11:33 PM
Alright then
Dragonkai
06-08-2007, 12:54 AM
Could it be done and integrated into CSS styles.. then if so well is there such thing as a CSS variable, or do I use something else to do it?
HazardTW
06-08-2007, 01:46 AM
You can write your css files as PHP files and pass variables to them, once you realize how flexible that is I imagine you can do just about anything you set your mind to.
This place (http://www.barelyfitz.com/projects/csscolor/) is where I read about using PHP for CSS files and use some of those tecniques, it's not exactly what you are asking about but it might give you some creative ideas.
bokeh
06-08-2007, 02:27 AM
The main stylesheet should remain the same; there is no need to use php to make it dynamic. User settings, (which may contradict the main stylesheet,) can be placed in an inline stylesheet in the head of your html document. From that position the styles will have a high specificity in the cascade order and therefore will override the default styles.
Dragonkai
06-08-2007, 05:16 PM
So you have variables which are style sheet options, stored in a database. And then when the person logs in that CSS variable becomes their preference and is placed as inline style sheet.
So like my original question.. is there such thing that can CSS variable that changes with different accounts.
bokeh
06-09-2007, 03:50 AM
So you have variables [...] stored in a database.No, you have data, not variables, stored in the database. How you choose to use that data, once fetched, is entirely up to you.