Help
Ask questions about how to do or fix things in Arrowchat
User avatar
AGAZZETTA
Customer
 
Posts: 2
Joined: 10 Jun 2018, 08:08

 

by AGAZZETTA 13 Jun 2018, 07:54

Hi,
I install arrowchat and it works fine!
I'd like to add in my chatroom the user's Username: the username of the user who is chatting.
This is one of my chatroom:
https://www.iground.it/chat-arena.html
In the left on the top, I'd like to change the default text from "Messages" in "Tu: name of the session user", for example "Tu: azigozago".
I modified file /arrowchat/public/popout/index.php.
I change this from:
<div class="arrowchat_popout_left_header_text"><?php echo $language[110]; ?></div>
to:
<div class="arrowchat_popout_left_header_text"><?php echo 'Tu: ' . get_username($userid) ; ?></div>
</div>
This don't work. The result is "Tu: Ospite" and Ospite is Guest for me. It Shoud be "Tu: USERNAME".

I try to modified so:
<div class="arrowchat_popout_left_header_text"><?php echo 'Tu: ' . get_user_id() ; ?></div>
</div>
In this case the result is: "Tu: 42" and it's right because my ID in socialengine is 42.
Why the get_username function don't work? Someone can help me?
Thanks,
Anna
User avatar
AGAZZETTA
Customer
 
Posts: 2
Joined: 10 Jun 2018, 08:08

 

by AGAZZETTA 13 Jun 2018, 08:04

Using get_username($userid)

screenshot.png



Using get_user_id()

screenshot.png
You do not have the required permissions to view the files attached to this post.