| Author |
Message |
cozmicshredder

Joined: Nov 10, 2008
Posts: 4
Location: MI, USA.
|
Posted:
Sat Jul 18, 2009 8:12 am |
|
I been looking where to add the AUC .UsernameColor(). not sure if its possible seeing lots of this code is written in Java?
I'll hopefully get this sorted out soon if nobody here beats me too it!
An Example line from user information would be:
| Code: |
$who_online_now .= " <a '.urinfo_help($tit)." href=\"modules.php?name=Your_Account&op=userinfo&username=".$session['uname']."\">".UsernameColor($session['uname'])."</a>"; |
|
| |
|
|
 |
hawklen

Joined: Aug 06, 2009
Posts: 5
|
Posted:
Thu Aug 06, 2009 8:43 pm |
|
I hope you get it! I'd like for user colors to show up in the chatbox. hehe |
| |
|
|
 |
Guardian

Joined: Dec 09, 2006
Posts: 333
|
Posted:
Mon Aug 10, 2009 1:24 am |
|
AUC is a mod for the forums so the UsernameColor() function and the $session['uname'] variable is only available within the forums and those modules that require Forums to work like the PM module and Memberlist module.. |
_________________ Code Authors Nuke Reviews |
|
|
 |
cozmicshredder

Joined: Nov 10, 2008
Posts: 4
Location: MI, USA.
|
Posted:
Tue Aug 11, 2009 3:59 am |
|
Actually it works with anything with Nuke Evolution I just could't figure our why with Live chat. I have it working with any block that tracks members on the website.
I mean anywhere a member name is displayed it can show name color.
We have it working with our shout box as well which is java based but for the life of me I cannot see how to get it with live chat. I tried but it mess's up live chat but it does show user name color it just won't let the chat refresh. |
| |
|
|
 |
Guardian

Joined: Dec 09, 2006
Posts: 333
|
Posted:
Tue Aug 11, 2009 5:15 am |
|
It sounds like the UsernameColor() function is the one that sets the variable $session['uname'] so the first thing to do would be to echo out $session['uname'] to see if it holds a value for that user. If it doesn't, you might simply need to add $session['uname'] to the global statement in livechat for it to work |
_________________ Code Authors Nuke Reviews |
|
|
 |
hawklen

Joined: Aug 06, 2009
Posts: 5
|
Posted:
Wed Aug 12, 2009 8:12 pm |
|
|
|
 |
|
|