plugin:whoisonline
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:whoisonline [2013-06-21 01:26] – [whoisonline Plugin] millsdude | plugin:whoisonline [2022-07-17 22:20] (current) – coastGNU | ||
---|---|---|---|
Line 7: | Line 7: | ||
type : syntax | type : syntax | ||
lastupdate : 2013-06-20 | lastupdate : 2013-06-20 | ||
- | compatible : 2013-05-10 "Weatherwax" | + | compatible : Hrun, Weatherwax, Greebo, !Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : users, ajax | tags : users, ajax | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
Line 21: | Line 21: | ||
---- | ---- | ||
+ | === For Hogfather and Igor support === | ||
+ | * Edit '' | ||
+ | public function render($mode, | ||
+ | * with< | ||
+ | public function render($mode, | ||
===== Installation ===== | ===== Installation ===== | ||
Copy the whoisonline folder into the / | Copy the whoisonline folder into the / | ||
- | Install | + | Search and install |
===== Examples/ | ===== Examples/ | ||
- | |||
- | See the plugin in action [[www.demosite.com|here]]. The sample page shows all the styles available with the plugin. | ||
For just a simple display of the online count add this: | For just a simple display of the online count add this: | ||
Line 39: | Line 42: | ||
~~whoisonline~~ | ~~whoisonline~~ | ||
- | The popup list can be customized in the admin configuration. The default is {username} but you can add all sorts of HTML to make it link to places. Here is what I use on my site... | + | The popup list can be customized in the admin configuration. The default is '' |
<a href="/ | <a href="/ | ||
Line 45: | Line 48: | ||
This will make the popup list have their fullname that links to their user page on the wiki, and then the current page they are looking at which you can click to. | This will make the popup list have their fullname that links to their user page on the wiki, and then the current page they are looking at which you can click to. | ||
- | If you want to track the users but not show the count or the list just add the NOSHOW option on some footer to record their presence, then you can do the regular ~~whoisonline~~ on an admin page to view the results. | + | If you want to track the users but not show the count or the list just add the NOSHOW option on some footer to record their presence, then you can do the regular |
~~whoisonline: | ~~whoisonline: | ||
Line 55: | Line 58: | ||
~~whoisonline: | ~~whoisonline: | ||
~~whoisonline: | ~~whoisonline: | ||
- | |||
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
Line 67: | Line 69: | ||
=== Change Log === | === Change Log === | ||
- | * **20013-06-20** | + | * **2013-06-20** |
* Initial release | * Initial release | ||
Line 84: | Line 86: | ||
The idea from this came from this link http:// | The idea from this came from this link http:// | ||
which had a great code example. I formatted it for my needs and made a Dokuwiki plugin out of it. | which had a great code example. I formatted it for my needs and made a Dokuwiki plugin out of it. | ||
+ | |||
+ | ===== Adding Email to Substitution List ===== | ||
+ | On line 48 of syntax.php, replace: | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | if( isset($INFO[' | ||
+ | $userdisplay = str_replace( array( " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | array( $INFO[" | ||
+ | $INFO[" | ||
+ | $INFO[" | ||
+ | $_SERVER[" | ||
+ | $displaypattern ); | ||
+ | </ | ||
+ | |||
+ | with: | ||
+ | <code php> | ||
+ | |||
+ | if( isset($INFO[' | ||
+ | $userdisplay = str_replace( array( " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | array( $INFO[" | ||
+ | $INFO[" | ||
+ | $INFO[" | ||
+ | $INFO[" | ||
+ | $_SERVER[" | ||
+ | $displaypattern ); | ||
+ | </ | ||
+ | |||
+ | on line 10 of settings.php | ||
+ | |||
+ | replace: | ||
+ | <code php> | ||
+ | $lang[' | ||
+ | </ | ||
+ | with: | ||
+ | <code php> | ||
+ | $lang[' | ||
+ | </ | ||
===== Discussion ===== | ===== Discussion ===== | ||
plugin/whoisonline.1371770772.txt.gz · Last modified: 2013-06-21 01:26 by millsdude