Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Howto: display custom actions on "Who is online" page

Aloittaja xXiNiXx, marraskuu 06, 2013, 08:52:50 AP

« edellinen - seuraava »

xXiNiXx

I've added some custom actions to my forum to display other information. When I look at the "who is online" page, a user, looking at a custom action, will be displayed with action: Unknown action. What do I have to change to modify this text?

My SMF version: 2.0.6, with no addons, just my custom addons

Thanks in advance.

Arantor

What are the actions in question? Do they have subactions?
Holder of controversial views, all of which my own.


xXiNiXx

Yes, the action has subactions. For example:

action=games;sa=list;
will show a list of games

action=games;sa=view;in=1
will show the detail of a game

The name for these don't need te be detailed, just some other info than "Unknown action"

Arantor

You add them to Theme/default/languages/Who.english.php

$txt['whoall_games'] = 'Viewing games';
$txt['whoall_games_list'] = 'Viewing the list of games';
$txt['whoall_games_view'] = 'Viewing a game';


Tweak to suit :)
Holder of controversial views, all of which my own.


xXiNiXx


Advertisement: