-1
Do you remember that in Orkut had that option to change color, and the chosen color worked on everything.
So, I read some articles and saw that you can do this with SASS, but I do not understand SASS and I would like to know how I can do this with PHP?
Without using a shitload of IFs
.
You want the user to change, is that it? I rarely used Orkut, so I have no idea if this is what you mean, would it be like the twitter color theme for the user? You want this to be only visible to the user or such user has a profile and you want this profile to change color for anyone who accesses?
– Guilherme Nascimento
That would be like the theme of twitter, but that no one has access the profile is unique to the person, is a sisteminha I want to implement that she can choose the color of the navbar.
– Fábio Stralioti Martins
So it’s not like twitter, because twitter spreads to everyone else your profile, in this case it’s simpler, I’ll tell you, you’ll need to choose, between saving the theme in the user-related database or just in the user’s browser session, but that would depend on what you already have ready.
– Guilherme Nascimento
So Guilherme, I have nothing ready, I managed to change the theme with JS doing so [link]<button type="button" name="button" class="btn btn-Primary col-Sm-4 col-Md-4 col-lg-4 pt-4 mt-4" onclick="Document.getElementById('navbar').style.background = 'blue'">Blue</button> [/link] but I don’t know if it’s right or if it’s right to save this, and how to bring this information
– Fábio Stralioti Martins
And what would be wrong with saving in the bank? Could even be a tmp file related to user ID, the issue is not what is right or wrong, the issue is what you need.
– Guilherme Nascimento
So, I don’t know how to save this in the bank, is it possible to save it in the bank? a cmd javascript?
– Fábio Stralioti Martins
CMD and JS? What’s this for? Web is HTTP, just save it to the backend, whether it’s database, txt, or Session.
– Guilherme Nascimento
CMD is abbreviating command, ie I created this button using Onclick to change the color of navbar, my question is how to save it in mysql database and load it as I can ?
– Fábio Stralioti Martins