UBB.Dev
Posted By: PDOstrander User Color by IP? - 10/07/2004 8:58 PM
Anyone have any idea if it's possible to set / over ride a users display name color if they are logging on from a specific I.P.?

I have folks who rotate through a help desk position and I'd like their names to show up differently from normal users while they are acting in this capacity. Luckily we sitck them in a dark closet that only has on 'puter so I know the I.P. won't change.

P-
Posted By: SnowBall Re: User Color by IP? - 12/10/2004 7:51 AM
YO!!!!
Posted By: phoenix1962 Re: User Color by IP? - 12/10/2004 12:50 PM
[]SnowBall said:
YO!!!! [/]

you make important posts NOT
Posted By: dimopoulos Re: User Color by IP? - 12/10/2004 9:06 PM
You can make a small change in the ubbt.inc.php file adding a new function which will read the IP address of the user (using the find_environmental function) and if it matches the criteria you set to output the relevant name using a specific color. Following that you use that function anywhere you want, mainly showflat.php and showthreaded.php.
© UBB.Developers