News:

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

Main Menu

Add user in Who's online section in my Mod

Started by ITA003, December 29, 2009, 05:53:28 AM

Previous topic - Next topic

ITA003

Hi!
I'm developing a mod and I'd like to show in who's on line section when a user is in my mod pages.
Where I can found docs about this??


I look here, but I didn't found that I looking for...


thanks.

Arantor

So, what pages, potentially, will the user be at? Depending on what the mod does, will reflect how you modify either Who.php or Who.{language}.php.
Holder of controversial views, all of which my own.


ITA003

I'm developing a new mod that show new pages to user (there is a new action to do this), I'd like to see in who's on line page when the user is in one of these pages.

Arantor

Since it's URL dependent I need more details in order to be able to help you.
Holder of controversial views, all of which my own.


ITA003

I have a new action locali and some sub actions that show three pages that I'd like to see in the Who's on line:


1) Page show the content of one categorie (example)
2) Page show a detail page (example)
3) Page show a list (example)


I'm developing this mod and, at the moment, the page are in Italian.


Arantor

Holder of controversial views, all of which my own.


ITA003


Arantor

It's actually documented in Who.php what you have to do:

Adding actions to the Who's Online list:
---------------------------------------------------------------------------
Adding actions to this list is actually relatively easy....
- for actions anyone should be able to see, just add a string named
   whoall_ACTION.  (where ACTION is the action used in index.php.)
- for actions that have a subaction which should be represented
   differently, use whoall_ACTION_SUBACTION.
- for actions that include a topic, and should be restricted, use
   whotopic_ACTION.
- for actions that use a message, by msg or quote, use whopost_ACTION.
- for administrator-only actions, use whoadmin_ACTION.
- for actions that should be viewable only with certain permissions,
   use whoallow_ACTION and add a list of possible permissions to the
   $allowedActions array, using ACTION as the key.
Holder of controversial views, all of which my own.


ITA003

Thanks!!


I insert the strings whoall_ACTION in custom Language file and than load it in the Who.php file.

Advertisement: