From: <be...@us...> - 2012-05-28 21:42:47
|
Revision: 9597 http://xoops.svn.sourceforge.net/xoops/?rev=9597&view=rev Author: beckmi Date: 2012-05-28 21:42:40 +0000 (Mon, 28 May 2012) Log Message: ----------- Updating install.txt and English language entries Modified Paths: -------------- XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt XoopsModules/TDMStats/trunk/TDMStats/include/stats.php XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php Modified: XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/docs/install.txt 2012-05-28 21:42:40 UTC (rev 9597) @@ -1,6 +1,43 @@ -INSTALL/UNISTALL -================= -No special measures necessary, follow the standard installation process \x96 extract the /TDMStats folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. +************************************************** ********** +UPDATE +************************************************** ********** -Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i) \ No newline at end of file +- Overwrite the file TDMStats, to update the module from the site administration. +- When using a custom template set, remove the module's templates for regnrer. +- Use the tab admin / plugin for copying the plugin or refer you to the "manual copy" +- Appointments in the administration module To create permissions. + + +************************************************** ********** +INSTALLATION +************************************************** ********** + +- Upload the entire folder 'TDMStats' folder to / modules / +- Go to Admin of your site to install the module. +- Go to the Administration module, then use the tab 'plugin' to copy the plugin or refer you to the "manual copy". +- Set permissions. + + + +************************************************** ********** +Manually copy the files in the folder "xoops_plugins" +************************************************** ********** + +follow the structure of folders and subfolders + +function.xoStats.php (new file) + +Copy the file TDMStats/xoops_plugins/function.xoStats.php + +into + +/class/smarty/xoops_plugins/ + +************************************************** ********** +SMARTY TDMStats +************************************************** ********** + +1) <{xoStats}> (account visits) + +Note: Remember to copy the code "<{xoStats}>" to theme.html in your theme in order to record the visits ... \ No newline at end of file Modified: XoopsModules/TDMStats/trunk/TDMStats/include/stats.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/include/stats.php 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/include/stats.php 2012-05-28 21:42:40 UTC (rev 9597) @@ -105,6 +105,38 @@ +///mont/// +$mth = array(); + global $xoopsDB; + $mth_info = getResult("select distinct mth, year, count from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year' order by id desc"); + //$mth_max = getResult("select max(count) as max from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); + $mth_sum = getREsult("select sum(count) as sum from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); + + +// $mth_result = PrintStats($mth_sum[0]['sum'], $mth_max[0]['max'], $mth_info, sizeof($mth_info)); + if($mth_info){ + for($i=0; $i<sizeof($mth_info); $i++){ + + if ($mth_sum[0]['sum'] > 0) { + + $mth_percent = $mth_info[$i]['count'] * 100 / $mth_sum[0]['sum'] ; + + } else { + $mth_percent = 0; + + } + + $mth['info'][] = $mth_info[$i]['count']; + //$mth['week'][] = $mth_info[$i]['week']; + $mth['percent'][] = round($mth_percent, '2'); + +if ($mth_percent > 0) { + $xoopsTpl->append('mths', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); + $xoopsTpl->append('mths_map', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); + } + } + } + //////WEEK///////////// $last = array(); global $xoopsDB; @@ -141,40 +173,8 @@ $xoopsTpl->assign('lang_mth_mth', _AM_MTH_VISITS); - -///mont/// -$mth = array(); - global $xoopsDB; - $mth_info = getResult("select distinct mth, year, count from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year' order by id desc"); - //$mth_max = getResult("select max(count) as max from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); - $mth_sum = getREsult("select sum(count) as sum from ".$xoopsDB->prefix("TDMStats_mth")." where year='$year'"); - -// $mth_result = PrintStats($mth_sum[0]['sum'], $mth_max[0]['max'], $mth_info, sizeof($mth_info)); - if($mth_info){ - for($i=0; $i<sizeof($mth_info); $i++){ - - if ($mth_sum[0]['sum'] > 0) { - - $mth_percent = $mth_info[$i]['count'] * 100 / $mth_sum[0]['sum'] ; - - } else { - $mth_percent = 0; - - } - - $mth['info'][] = $mth_info[$i]['count']; - //$mth['week'][] = $mth_info[$i]['week']; - $mth['percent'][] = round($mth_percent, '2'); - -if ($mth_percent > 0) { - $xoopsTpl->append('mths', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); - $xoopsTpl->append('mths_map', array('id' => 'mth'.$i, 'mth' => $mth_info[$i]['mth'], 'year' => $mth_info[$i]['year'], 'info' => $mth_info[$i]['count'], 'percent' => round($mth_percent, '2'))); - } - } - } - /////////////HOUR $hour = array(); global $xoopsDB; Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/admin.php 2012-05-28 21:42:40 UTC (rev 9597) @@ -33,7 +33,7 @@ define ( "_AM_ISTATS_UPDATED", "File updated config.php"); // index.php -define ( "_AM_ISTATS_INDEXDESC", "module index"); +define ( "_AM_ISTATS_INDEXDESC", "Module index"); define ( "_AM_ISTATS_TABLE", "Table Name"); define ( "_AM_ISTATS_LENGTH", "Size of data file"); define ( "_AM_ISTATS_FREE", "Lost space"); @@ -46,13 +46,13 @@ define ( "_AM_ISTATS_ABOUT", "About the Module"); define ( "_AM_ISTATS_UPDATE", "Update Module"); define ( "_AM_ISTATS_PERM", "Managing Permissions"); -define ( '_AM_ISTATS_PLUG', 'Plugin Management'); +define ( '_AM_ISTATS_PLUG', 'Management Plugin'); // plug.php -define ( '_AM_ISTATS_PLUGHELP', '<b> Note: </ b> Remember to copy the code "<b> <xoStats ()> </ b>" in the file of your theme theme.html underway to account for visits ...'); +define ( '_AM_ISTATS_PLUGHELP', "<b> Note: </b> Remember to copy the code '<b> <{xoStats}> </b>' to the theme.html file of your current theme after the '<b> < body ></b>' tag, to record visits ..."); define ( '_AM_ISTATS_PLUGERROR', 'Please copy the file "xoops_plugins / function.xoStats.php" in your site root, "/ class / smarty / xoops_plugins /"'); define ( '_AM_ISTATS_PLUGOK', 'Plugin installed'); -define ( '_AM_ISTATS_PLUGETAT', 'State of the plugin'); +define ( '_AM_ISTATS_PLUGETAT', 'Plugin status'); // About (about.php) define ( "_AM_ABOUT_RELEASEDATE", "Release Date"); Modified: XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php =================================================================== --- XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php 2012-05-28 14:24:53 UTC (rev 9596) +++ XoopsModules/TDMStats/trunk/TDMStats/language/english/main.php 2012-05-28 21:42:40 UTC (rev 9597) @@ -21,14 +21,14 @@ // text of top head define ( '_AM_TRAFFIC_REPORT', 'Traffic Report Site'); -define ( '_AM_SUMMARY', 'Description'); +define ( '_AM_SUMMARY', 'Summary'); define ( '_AM_REFERER', 'References'); define ( '_AM_VISITOR_INFO', 'System'); define ( '_AM_TRAFFIC', 'Traffic Stats'); define ( '_AM_LOCA', 'Location'); // text of stats topic -define ( '_AM_BY_TODAY_HOUR', 'Traffic Graph of the Day'); +define ( '_AM_BY_TODAY_HOUR', 'Traffic Graph of Today'); define ( '_AM_BY_DAY', 'Days of the Month'); define ( '_AM_BY_WEEKDAY', 'Days of the Week'); define ( '_AM_BY_WEEK', 'Weekly'); @@ -36,16 +36,16 @@ define ( '_AM_BY_PAYS', 'Country Hits'); define ( '_AM_BY_COUNTRY', 'Country / City'); define ( '_AM_BY_REF', 'Visits by Referee'); -define ( '_AM_BY_HOUR', 'Time'); +define ( '_AM_BY_HOUR', 'Hourly'); define ( '_AM_BY_PAGE', 'Pages'); define ( '_AM_BY_MODULE', 'Modules'); define ( '_AM_BY_BROWSER', 'Browser'); define ( '_AM_BY_OS', 'Operating System'); define ( '_AM_BY_HOST', 'Hostname'); -define ( '_AM_FORECAST', 'Day Forcast'); +define ( '_AM_FORECAST', "Today's Forcast"); // text of summary -define ( '_AM_STATS_INFO', 'Description'); +define ( '_AM_STATS_INFO', 'Overview'); define ( '_AM_SITENAME', 'Website'); define ( '_AM_NOW', 'Today'); define ( '_AM_MAX_DATE', 'Best Day'); @@ -122,8 +122,8 @@ define ( 'AM_AVE', 'An average'); define ( 'AM_DAILY_VISIT', 'visits take place before'); define ( 'AM_BAS_NBR', 'Based on a number of'); -define ( 'AM_SO_FAR', 'visitors at the moment, your site should achieve'); -define ( 'AM_PAGE_VIEW', 'page (s) found (s ).'); +define ( 'AM_SO_FAR', 'visitors at the moment, your site should reach'); +define ( 'AM_PAGE_VIEW', 'page views.'); // perm define ( "_AM_QUERYNOPERM", "You do not have permission for this action"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |