News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[TIP/TRICK] Show Action and Subaction on "Unknow Action" to the Admin.

Started by ディン1031, September 02, 2007, 06:12:19 AM

Previous topic - Next topic

ディン1031

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


else
$data[$k] = $txt['who_unknown'];


and replace it with


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
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

Elmacik

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

Bulakbol

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

mrtrc266

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.

ディン1031

Quote from: mrtrc266 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.
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


ディン1031

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

Mick.

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.



Dzonny


stingerman

Cool!  Just implemented this and it worked:

I get:     Unknown Action (Action: verificationcode)

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

ディン1031

Quote from: stingerman 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?
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

edi67

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

ディン1031

Quote from: edi67 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 ?
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

edi67

Quote from: ディン1031 on February 02, 2009, 02:00:27 AM
Quote from: edi67 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 ?
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

ディン1031

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


velocity123

visit my site [nofollow]


Advertisement: