This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
firestats [2010/05/05 13:13] ben |
firestats [2010/05/06 03:57] ben |
||
---|---|---|---|
Line 5: | Line 5: | ||
//This code is almost entirely copied from the Google Analytics plugin by Terence J. Grant. See [[http://www.dokuwiki.org/plugin:googleanalytics|his plugin page]] for details. | //This code is almost entirely copied from the Google Analytics plugin by Terence J. Grant. See [[http://www.dokuwiki.org/plugin:googleanalytics|his plugin page]] for details. | ||
// | // | ||
- | Credit should stay entirely with him. | + | Credit for the work should ostensibly be his- I merely deleted a few lines and changed a configuration name. |
Concerning this rendering of the code: | Concerning this rendering of the code: | ||
Line 16: | Line 16: | ||
An example URL looks like: http://yoursite.com/yourfirestats/js/fs.js.php?site_id=2 | An example URL looks like: http://yoursite.com/yourfirestats/js/fs.js.php?site_id=2 | ||
+ | ====== Download ====== | ||
- | ====== File/Directory structure: ====== | + | The file is {{:dokufirestats.tgz|here.}} |
+ | ====== Details ====== | ||
+ | |||
+ | |||
+ | ===== File/Directory structure: ===== | ||
dokufirestats/\\ | dokufirestats/\\ | ||
Line 26: | Line 31: | ||
dokufirestats/conf/\\ | dokufirestats/conf/\\ | ||
dokufirestats/conf/metadata.php\\ | dokufirestats/conf/metadata.php\\ | ||
- | ====== Action.php ====== | + | ===== Action.php ===== |
<code> | <code> | ||
<?php | <?php | ||
/* | /* | ||
- | * | ||
* | * | ||
* This code is almost entirely copied from the Google Analytics plugin by: | * This code is almost entirely copied from the Google Analytics plugin by: | ||
Line 37: | Line 41: | ||
* See: http://www.dokuwiki.org/plugin:googleanalytics | * See: http://www.dokuwiki.org/plugin:googleanalytics | ||
* | * | ||
+ | * My changes to the code were made on 05/05/2010. | ||
+ | * | ||
*/ | */ | ||
Line 48: | Line 54: | ||
return array( | return array( | ||
- | 'author' => 'Benjamin Hall (code HEAVILY borrowed from Terrence J. Grant\'s Google Analytics Plugin)', | + | 'author' => 'Benjamin Hall (base code from Terence J. Grant\'s Google Analytics Plugin)', |
'email' => 'ben@benhall.com', | 'email' => 'ben@benhall.com', | ||
'date' => '2010-05-05', | 'date' => '2010-05-05', | ||
Line 75: | Line 81: | ||
?> | ?> | ||
</code> | </code> | ||
- | ====== Metadata.php ====== | + | |
+ | ===== Metadata.php ===== | ||
<code> | <code> | ||
<?php | <?php | ||
Line 83: | Line 90: | ||
?> | ?> | ||
</code> | </code> | ||
- | + | ===== Settings.php ===== | |
- | ====== Settings.php ====== | + | |
<code> | <code> | ||
<?php | <?php | ||
Line 90: | Line 96: | ||
$lang['dont_count_admin'] = 'Don\'t count admin/superuser'; | $lang['dont_count_admin'] = 'Don\'t count admin/superuser'; | ||
$lang['dont_count_users'] = 'Don\'t count logged in users'; | $lang['dont_count_users'] = 'Don\'t count logged in users'; | ||
+ | ?> | ||
</code> | </code> |