Customizing SMF > Tips and Tricks

[TRICK] displaying the "unknown action" in the who's online list

<< < (4/10) > >>

Kindred:
ah yes...   I didn't even think to $txt the english string (naughty me!)

Sorry, my dutch is non existent, so I can't comment directly. lol....

Yoshi:

--- Quote from: Kindred on April 05, 2012, 04:08:43 PM ---ah yes...   I didn't even think to $txt the english string (naughty me!)

Sorry, my dutch is non existent, so I can't comment directly. lol....

--- End quote ---
First code's what needs to be added in Modifications.{language}.php, second and third code is Find > Replace.

Antechinus:
Nifty. I like it. Should be default IMO.

What I would also like is a change in that silly "Nothing, or nothing you can see" message. It would make more sense to say "Ant is messing around in admin" or something like that, if it is the case, rather than getting all spooky about it.

TattooLeashed:
I did all that Yoshi but it still doesn't work :(


This is how it looks like in who.php:



--- Code: ---// Unlisted or unknown action.
else {
if (isset($actions['sa'])) {
$extraaction['sa']['text'] = ' - ' . $actions['sa'];
$extraaction['sa']['url'] = ';sa=' . $actions['sa'];
} else {
$extraaction['sa']['text'] = '';
$extraaction['sa']['url'] = '';
}
if (isset($actions['area'])) {
$extraaction['area']['text'] = ' - ' . $actions['area'];
$extraaction['area']['url'] = ';area=' . $actions['area'];
} else {
$extraaction['area']['text'] = '';
$extraaction['area']['url'] = '';
}
if (isset($actions['u'])) {
$extraaction['u']['text'] = ' for User ID' . $actions['u'];
$extraaction['u']['url'] = ';u=' . $actions['u'];
} else {
$extraaction['u']['text'] = '';
$extraaction['u']['url'] = '';
}
if (isset($actions['cat'])) {
$extraaction['cat']['text'] = ' in Category' . $actions['cat'];
$extraaction['cat']['url'] = ';cat=' . $actions['cat'];
} else {
$extraaction['cat']['text'] = '';
$extraaction['cat']['url'] = '';
}

$data[$k] = $txt['unknown_action_viewing'] . ' <a href="' . $scripturl . '?action=' . $actions['action'] . '">' . $actions['action'] . '</a>';
}[s][/s] 
--- End code ---

And I put the txt line in my modifications.dutch.php file. What am i doing wrong? Starts to bug me ;)

Yoshi:
That's the code that doesn't work ;)

Just use the code I provided, it's in the first post of this topic.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version