Hello and good day everyone... Im having problem on my sidebar... I have this code #fw-sidebar {background: url('www.example.com/example.jpg') no-repeat;} How can i change the background of my sidebar when im logged in? I want to simply change the background of my sidebar when im logged in or my users are logged in.... This code also works #fw-sidebar a:visited {background: url('www.example.com/changeexample.jpg') no-repeat;} but the only changes it made is for my fonts.... Please help... Thank You so Much and bless you all...
Hi, I think you need some improve of you script (example: php). So in your html page, head section you must write condition for logged or guest users. Example: <head> ... <?php if($user_logged) { echo '<link type="text/css" rel="stylesheet" href="../css_folder/logged.css" />'; } else { echo '<link type="text/css" rel="stylesheet" href="../css_folder/guest.css" />'; } ?> ... </head> Code (markup): Or maybe is different way, but I don't know it at this time.
what biiccs suggested will work, but instead of creating separate css files create two css classes e.g. .guest_background { background: } .member_background { background: }
Thank you for the replies... But i only need the sidebar background to change... I saw someone do that on blogger but they just said that its in the css...
For example... When logged in my sidebar background is red... When logged out my sidebar will turn to black...
You need to use PHP for this kearra. By logging in you are interacting with the database. So log in -> connection with database -> change CSS -> log out -> connection with database -> change CSS
php and javascript will do the trick. You don't need separate style sheets, just add and remove a class on the navbar depending if the user is logged in or not. logged in, set the style on your element. document.getElementById("blah").className = "cssclass"; Code (markup): logged out, set the class again
Thank you guys... But i dont have access on my php, javascript or html... I use website builder and we only have access on css....
Hi Only with CSS I think its difficult to do. Because when you are using the Login and Logout condition you must have to inform to the css to change. But it is not possible with out any language like java script or PHP.
FINALLY!!! I got it!!! I used css, but the missing part was the module.. Ive been looking for the # codes but when logged out or not sign in, the source is not the same as the backdoor of the log-in menu. So the idea was to change module... Anyway, im just excited that i did it... Thank you for the reply though...