(SOLVED) Different style when logged in

July 08 Joomla Templates
GK User
Tue Mar 10, 2009 3:40 pm
Hi, what i want to is: if a registered user is logged in i want to load a different stylesheet. Is that possible and when: how to do it?

Thanx!
User avatar
Fresh Boarder

GK User
Tue Mar 10, 2009 3:46 pm
Hi,

Maybe it is possible, but I did not hear about it...maybe you should look for some plugin or component that can do that...
User avatar
Senior Boarder

GK User
Tue Mar 10, 2009 4:15 pm
Thanks for answering, i found it out. If someone needs that:

for the gomuproject-template this can be the way:

on line 52 into the index.php put this:

Code: Select all
<?php
global $my;
//$my->id user id of the loggid in user
if($my->id) { ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/gk_gomuproject/css/template_css.css" rel="stylesheet" type="text/css"/>
<?php }
else { ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/gk_gomuproject/css/template_css2.css" rel="stylesheet" type="text/css"/>
<?php } ?>


i hope this will running :-)
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.