Display the viewers username

A place to suggest possible new mods or to suggest abandoned mods to take over.

Display the viewers username

Postby MudkipzRule » 19 Aug 2012, 01:35

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?
MudkipzRule
New member
New member
 
Posts: 5
Joined: 19 Aug 2012, 01:31

Re: Display the viewers username

Postby RMcGirr83 » 19 Aug 2012, 18:28

Display the viewers username where?
Image
User avatar
RMcGirr83
MOD Team Leader
MOD Team Leader
 
Posts: 428
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Display the viewers username

Postby MudkipzRule » 19 Aug 2012, 19:13

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.
MudkipzRule
New member
New member
 
Posts: 5
Joined: 19 Aug 2012, 01:31

Re: Display the viewers username

Postby tumba25 » 20 Aug 2012, 01:02

In something using the phpBB template system.
Code: Select all
{S_USERNAME}


Or in a php file.
Code: Select all
$user->data['username']
User avatar
tumba25
Administrator
Administrator
 
Posts: 845
Joined: 24 Oct 2007, 13:10
Location: Kokkola, Finland.
Real name: Jari Kanerva

Re: Display the viewers username

Postby MudkipzRule » 20 Aug 2012, 01:13

That does not work in a chat, it only displays the shouter's username to everyone.
MudkipzRule
New member
New member
 
Posts: 5
Joined: 19 Aug 2012, 01:31

Re: Display the viewers username

Postby RMcGirr83 » 20 Aug 2012, 02:19

The viewers username is already displayed in that mod no matter if the user made a shout or not...eg

Noname.jpg


and I made no message in that chat.
Image
User avatar
RMcGirr83
MOD Team Leader
MOD Team Leader
 
Posts: 428
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Display the viewers username

Postby MudkipzRule » 20 Aug 2012, 02:30

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.
MudkipzRule
New member
New member
 
Posts: 5
Joined: 19 Aug 2012, 01:31


Return to MOD Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron