Advertisement:

Author Topic: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.  (Read 38105 times)

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Question: How to show the action and subaction on the Who is Online screen if the action is unkown.

Some user admin like to know what some guest use as unknown action ;). With this small change you can see this.

Search in the $sourcedir/Who.php for

Code: [Select]
else
$data[$k] = $txt['who_unknown'];

and replace it with

Code: [Select]
else
$data[$k] = $txt['who_unknown'].
($user_info['is_admin'] ? (
(isset($actions['action']) ? ' <span class="smalltext">('.$txt['who_action'].': '.$actions['action'].
(isset($actions['sa']) ? ' -> '.$actions['sa'] : '').')</span>' : '')) : '');

Than after the "unkown action" stand for admins (Action: ACTION -> SUBACTION (if exist)).

This should work in SMF 1.1.x

Bye
DIN1031
« Last Edit: December 12, 2007, 01:18:33 AM by ディン1031 »
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Offline Elmacik

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,276
  • Gender: Male
  • = Human Draft =
    • IT Store
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #1 on: September 02, 2007, 09:34:34 PM »
I already have done this in my forum so long ago.
But let me say, the unknown action is mostly "quickmode2" :)

It will help people who has "bad coded" mods installed :P
Home of Elmacik

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #2 on: September 04, 2007, 03:11:11 AM »
I copied the codes for future reference 'cause I don't need it right now. Good tip tho.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #3 on: December 29, 2008, 10:59:30 AM »
Thanks for the tip cuz for most of my users all I see is "Unknown Action"

I used the code posted here but now all I see is "Unknown Action (Action: shoutbox -> get)" for almost everyone?

Any ideas or suggestions? Thanks in advance.

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #4 on: December 29, 2008, 12:36:24 PM »
Thanks for the tip cuz for most of my users all I see is "Unknown Action"

I used the code posted here but now all I see is "Unknown Action (Action: shoutbox -> get)" for almost everyone?

Any ideas or suggestions? Thanks in advance.
The shoutbox use ajax and call the data for the box itself with this. ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Offline mrtrc266

  • SMF Hero
  • ******
  • Posts: 2,164
  • Gender: Male
    • Monsters Mansion
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #5 on: December 29, 2008, 06:33:39 PM »
Thank you for your response but is there anyway to fix that?

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #6 on: December 30, 2008, 12:20:27 AM »
I think yes, but thats something a mod creator should do.
This trick show only the information about it for the admin.
But please use the mod comment thread for this.
Or make a new one. ;).
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,673
  • Gender: Male
  • Premium SMF Themes
    • idesign360 on Facebook
    • @idesign360 on Twitter
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #7 on: December 30, 2008, 01:01:14 PM »
Thank you for the tip. 

Now i know what guests are doing throughout the website while they surf all my "action pages" i created using the "custom action" mod.

Offline FlixyaFriend

  • Semi-Newbie
  • *
  • Posts: 18
    • samsung ue46c8000
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #8 on: January 19, 2009, 04:29:56 AM »
Thank you for the tip. 


Offline Dzonny

  • Lead Localizer
  • SMF Super Hero
  • *
  • Posts: 11,610
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #10 on: January 26, 2009, 06:30:04 AM »
i was bored of "unknown action"
tnx... :)

Offline stingerman

  • Jr. Member
  • **
  • Posts: 116
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #11 on: January 28, 2009, 04:33:05 PM »
Cool!  Just implemented this and it worked:

I get:     Unknown Action (Action: verificationcode)

What does this mean? They are trying to register or something?

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #12 on: January 30, 2009, 02:23:13 PM »
Cool!  Just implemented this and it worked:

I get:     Unknown Action (Action: verificationcode)

What does this mean? They are trying to register or something?
Ajax update of the verification picuture, if someone could not read the current one ;).
Or the sound output do the same, as far i know ;).
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #13 on: February 01, 2009, 04:15:41 PM »
i trying this in smf 2.0 seem work ok but i see always this:

Unknown Action (Action: error)

you think is normal din ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #14 on: February 02, 2009, 02:00:27 AM »
i trying this in smf 2.0 seem work ok but i see always this:

Unknown Action (Action: error)

you think is normal din ?
I wrote it for SMF 1.1, i think at first it will not work with smf 2 together ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #15 on: February 02, 2009, 05:57:47 AM »
i trying this in smf 2.0 seem work ok but i see always this:

Unknown Action (Action: error)

you think is normal din ?
I wrote it for SMF 1.1, i think at first it will not work with smf 2 together ;).

Bye
DIN1031

for many subaction it work for smf 2,0 too ;)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline ディン1031

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,599
  • Gender: Male
  • はるひ! :P
    • ~DIN1031
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #16 on: February 02, 2009, 06:16:25 AM »
Error is than the same as in the smf 1-1 it's a standard error that is currently outputet. For example isAllowedTo i think will show this ;). Or the function fatal_lang_error. (But I'm not 100% sure)

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x


Offline velocity123

  • Semi-Newbie
  • *
  • Posts: 22
    • crisp productions - we dont hold back
Re: [TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.
« Reply #18 on: February 08, 2009, 11:25:13 AM »
works like a charm.
thanks a lot
visit my site [nofollow]

Offline mattchewone

  • Jr. Member
  • **
  • Posts: 310
    • PPForums
Is this 2.0 RC1 compatable?