Author Topic: Unknown action  (Read 22 times)

0 Members and 1 Guest are viewing this topic.

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13225
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Unknown action
« on: February 05, 2012, 10:46:16 PM »
Here is a nice little trick I implemented on this site. Are you tired of looking at the who's online list and seeing unknown action next to one of your users or guests. ??? Well check this out. A real quick way to do it is to make a change in your Who.php file that is located in your Sources directory. Here is the edit, thanks to Kindred over at SMF:

In Who.php Find
:
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];

Replace with:

:
// Unlisted or unknown action.
else
// $data[$k] = $txt['who_unknown'];
$data[$k] = 'Viewing the <a href="' . $scripturl . '?action=' . $actions['action'] . '">' . $actions['action'] . '</a>';

There is a bit more at this thread over at SMF. He is also working on sub actions as well I think. Hopefully that goes somewhere as it would be real nice to have:

http://www.simplemachines.org/community/index.php?topic=467136.0
« Last Edit: February 05, 2012, 10:50:03 PM by bigguy »

Offline Oldcrow

  • Rebel Rouser
  • Full Member
  • *
  • Posts: 190
  • Karma: 274
  • Gender: Male
    • The Over 50 Golden Group
  • SMF Version: SMF 2.0.2
Re: Unknown action
« Reply #1 on: February 07, 2012, 01:55:05 PM »
Nice one Bigguy, thanks.


Ron..
The first half of our lives is ruined by our parents, and the second half by our children. ~ Clarence Darrow

My place ~ theover50goldengroup.com

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13225
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Unknown action
« Reply #2 on: February 07, 2012, 06:06:44 PM »
Not a problem. I should have more tricks posted soon as well. :) As always before I post them they will get tried out on this site first. Just so I know they work and there safe. :)