RedZone Posted May 16, 2009 Posted May 16, 2009 Okay, for some reason my viewuser is not working for the mod I made up... Let me tell ya about it. Its an option we made in the edit user in admin to change the color of peoples names. (Drop down option) Well we got it to work with the header but for some reason its not working with the viewuser.php... I used the same strip of code I used from header.php on viewuser.php if($ir['color']){$u='<font color="#'.$ir['color'].'">'.$ir['username'].'</font>';} Now for viewuser.php i used if($r['color']){$u='<font color="#'.$r['color'].'">'.$r['username'].'</font>';} It ain't working..... Even when I keep the $ir nothing is working its like its totally reading over the color part. It shows the username but no color. Quote
shrek1609 Posted May 16, 2009 Posted May 16, 2009 Re: Weird problem it could be because you are declaring $u in the header then trying to declare it again in viewuser... Quote
CrazyT Posted May 16, 2009 Posted May 16, 2009 Re: Weird problem It could be that, there a donator it put's there color red. Quote
AlabamaHit Posted May 16, 2009 Posted May 16, 2009 Re: Weird problem They used 2 places cuase header is for them. and viewuser is for the person they are viewing.... Now the problem. i would guess your using a hex number? Not the word? Quote
RedZone Posted June 2, 2009 Author Posted June 2, 2009 Re: Weird problem non of the above... I fixed it. I just don't remember how I fixed it. :mrgreen: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.