Display the viewers username
-
- New member
- Posts: 5
- Joined: 19 Aug 2012, 01:31
Display the viewers username
Is there any way to do this on phpbb 3? I saw a link on google for a old mod here for the same thing. URL was broken and I couldn't find the topic. Any help?
Re: Display the viewers username
Display the viewers username where?
-
- New member
- Posts: 5
- Joined: 19 Aug 2012, 01:31
Re: Display the viewers username
I was thinking in a BBCode but it doesn't have to be that. I'm trying to display the viewers username in Handyman's AJAX Chat. We have custom chat commands that can parse php so it could easily be any type of php code.
- tumba25
- Supporter
- Posts: 1052
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: Display the viewers username
In something using the phpBB template system.
Or in a php file.
Code: Select all
{S_USERNAME}
Or in a php file.
Code: Select all
$user->data['username']
-
- New member
- Posts: 5
- Joined: 19 Aug 2012, 01:31
Re: Display the viewers username
That does not work in a chat, it only displays the shouter's username to everyone.
Re: Display the viewers username
The viewers username is already displayed in that mod no matter if the user made a shout or not...eg
and I made no message in that chat.
and I made no message in that chat.
-
- New member
- Posts: 5
- Joined: 19 Aug 2012, 01:31
Re: Display the viewers username
I'm not trying to display their name in the online list, I have chat commands and I was going to make a command like !viewer. So it would be used like: Hello, !viewer.
!viewer would be replace with the username of the viewer.
!viewer would be replace with the username of the viewer.