Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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?

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...