Advertisement:

How can I save a new value on the profile page and use it for the member?

Aloittaja xpopy, lokakuu 24, 2013, 02:57:36 AP

« edellinen - seuraava »

Arantor

Did you add $user_settings to the list of global variables in the function where you're using it?
Holder of controversial views, all of which my own.


xpopy

Yeah I did.


I also noticed that if $user_settings['theme_color'] is empty, the default kicks in and sets the header to blue, otherwise if it's not empty its not putting out anything.

Arantor

That's clever, I managed to make a typo in that code ;)

<style type="text/css">
    #header{background-color:', !empty($user_settings['theme_color']) ? $user_settings['theme_color'] : 'blue', ';}
</style>


Thing is, if it's not empty it should be outputting a value...
Holder of controversial views, all of which my own.


xpopy


Advertisement: