From: <dj...@us...> - 2012-01-20 16:59:13
|
Revision: 8759 http://xoops.svn.sourceforge.net/xoops/?rev=8759&view=rev Author: djculex Date: 2012-01-20 16:59:04 +0000 (Fri, 20 Jan 2012) Log Message: ----------- Admin changes + applying statistics on index.php page thus deleting statistics.php Modified Paths: -------------- XoopsModules/smallworld/trunk/smallworld/admin/about.php XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php XoopsModules/smallworld/trunk/smallworld/admin/index.php XoopsModules/smallworld/trunk/smallworld/admin/index0.php XoopsModules/smallworld/trunk/smallworld/admin/menu.php XoopsModules/smallworld/trunk/smallworld/class/adminclass.php XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php XoopsModules/smallworld/trunk/smallworld/language/danish/main.php XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php XoopsModules/smallworld/trunk/smallworld/language/english/admin.php XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php Removed Paths: ------------- XoopsModules/smallworld/trunk/smallworld/admin/index.html XoopsModules/smallworld/trunk/smallworld/admin/statistics.php Property Changed: ---------------- XoopsModules/smallworld/trunk/smallworld/admin/about.php XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php XoopsModules/smallworld/trunk/smallworld/admin/help.php XoopsModules/smallworld/trunk/smallworld/admin/index0.php XoopsModules/smallworld/trunk/smallworld/admin/moduleinfo.php XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt XoopsModules/smallworld/trunk/smallworld/docs/credits.txt XoopsModules/smallworld/trunk/smallworld/docs/install.txt XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt XoopsModules/smallworld/trunk/smallworld/docs/licence.txt XoopsModules/smallworld/trunk/smallworld/docs/readme.txt XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php XoopsModules/smallworld/trunk/smallworld/language/danish/help/help.html XoopsModules/smallworld/trunk/smallworld/language/danish/help/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/index.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_attencionneeded.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_complaint.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_newcomment.html XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_register.html XoopsModules/smallworld/trunk/smallworld/language/danish/main.php XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php XoopsModules/smallworld/trunk/smallworld/language/english/help/help.html XoopsModules/smallworld/trunk/smallworld/language/english/help/index.html XoopsModules/smallworld/trunk/smallworld/templates/admin_help.html XoopsModules/smallworld/trunk/smallworld/templates/admin_moduleinfo.html XoopsModules/smallworld/trunk/smallworld/templates/admin_statistics.html XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html Modified: XoopsModules/smallworld/trunk/smallworld/admin/about.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/about.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -1,29 +1,36 @@ <?php /** - * Birthday module - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project (http://www.xoops.org) - * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) - * @package birthday - * @since 2.5.0 - * @author XOOPS Module Team - * @version $Id $ - **/ +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ +**/ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); +global $xoTheme; +$xoTheme->addStylesheet(XOOPS_URL . '/modules/smallworld/SmallworldAdmin.css'); +$xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderAbout('WKFZBRBGMYKCA', false); +echo $aboutAdmin->renderAbout('', false); + + include 'admin_footer.php'; \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/about.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -7,12 +7,16 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * -* @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license http://www.fsf.org/copyleft/gpl.html GNU public license -* @package modules -* @subpackage Small World -* @since 1.0.0 -* @author Culex - homepage.: http://culex.dk & email.: cu...@cu... +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ echo "<div class='adminfooter'>\n" Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/admin_footer.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/admin_header.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -1,28 +1,28 @@ <?php /** - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright : The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license : http://www.fsf.org/copyleft/gpl.html GNU public license - * @module : Smallworld - * @Author : Michael Albertsen (http://culex.dk) <cu...@cu...> - * @copyright : 2011 Culex - * @Repository path: $HeadURL$ - * @Last committed: $Revision$ - * @Last changed by: $Author$ - * @Last changed date: $Date$ - * @ID : $Id$ - **/ +* You may not change or alter any portion of this comment or credits +* of supporting developers from this source code or any supporting source code +* which is considered copyrighted (c) material of the original comment or credit authors. +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* +* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ +* @license: http://www.fsf.org/copyleft/gpl.html GNU public license +* @module: Smallworld +* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> +* @copyright: 2011 Culex +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ +**/ $path = dirname(dirname(dirname(dirname(__FILE__)))); include_once $path . '/mainfile.php'; include_once $path . '/include/cp_functions.php'; -include_once $path . '/class/xoopsmodule.php'; +include_once $path . '/kernel/module.php'; require_once $path . '/include/cp_header.php'; global $xoopsModule; Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/help.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Deleted: XoopsModules/smallworld/trunk/smallworld/admin/index.html =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.html 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.html 2012-01-20 16:59:04 UTC (rev 8759) @@ -1 +0,0 @@ - <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/index.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/index.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -20,7 +20,7 @@ **/ -require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +//require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); @@ -29,54 +29,93 @@ $admin = new SmallworldAdmin(); -$tpl = new XoopsTpl(); -$ai = array(); -$ani = array(); - -// --------------- First tab in admin --------------- // Find oldest message and apply to template $dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); + // Get days number $totaldays = $admin->CountDays(); // get average messages per day $avgperday = $admin->AvgMsgDay ($totaldays); -// XIM version number +// Smallworld version number $installversion = $admin->ModuleInstallVersion (); -// XIM install date +// Smallworld install date $installdate = $admin->ModuleInstallDate (); -//check current version of XIM, return desc,link,version if new available +//check current version of Smallworld, return desc,link,version if new available $installCheck = $admin->doCheckUpdate (); -// Count members using XIM +// Count members using Smallworld $sumallusers = $admin->TotalUsers (); // Find list of most active users (total) -$admin->mostactiveusers_allround(); +$maAllround = $admin->mostactiveusers_allround(); + $ma = "<table class='smallworldadmin'><tr>"; + $ma .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($maAllround)-1) { + $ma .= vsprintf('<tr><td>%s</td>',array($maAllround['counter'][$i])); + $ma .= vsprintf('<td>%s</td>',array($maAllround['img'][$i])); + $ma .= vsprintf('<td>%s</td>',array($maAllround['cnt'][$i])); + $ma .= vsprintf('<td>%s</td></tr>',array($maAllround['from'][$i])); + $i++; + } + $ma .= "</tr></table>"; + // Find list of most active users (24 hours) -$admin->mostactiveusers_today(); +$maToday = $admin->mostactiveusers_today(); + $mat = "<table class='smallworldadmin'><tr>"; + $mat .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($maToday)-1) { + $mat .= vsprintf('<tr><td>%s</td>',array($maToday['counter'][$i])); + $mat .= vsprintf('<td>%s</td>',array($maToday['img'][$i])); + $mat .= vsprintf('<td>%s</td>',array($maToday['cnt'][$i])); + $mat .= vsprintf('<td>%s</td></tr>',array($maToday['from'][$i])); + $i++; + } + $mat .= "</tr></table>"; // FInd list of best rated users overall -$admin->topratedusers('up'); +$topusers = $admin->topratedusers('up'); + $top = "<table class='smallworldadmin'><tr>"; + $top .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($topusers)-1) { + $top .= vsprintf('<tr><td>%s</td>',array($topusers['counter'][$i])); + $top .= vsprintf('<td>%s</td>',array($topusers['img'][$i])); + $top .= vsprintf('<td>%s</td>',array($topusers['cnt'][$i])); + $top .= vsprintf('<td>%s</td></tr>',array($topusers['user'][$i])); + $i++; + } + $top .= "</tr></table>"; // FInd list of worst rated users overall -$admin->topratedusers('down'); +$lowusers = $admin->topratedusers('down'); + $low = "<table class='smallworldadmin'><tr>"; + $low .= "<td><b>"._AM_SMALLWORLD_STATS_POS."</b></td><td><b>"._AM_SMALLWORLD_STATS_IMG."</b></td><td><b>"._AM_SMALLWORLD_STATS_AMOUNT."</b></td><td><b>"._AM_SMALLWORLD_STATS_NAME."</b></td></tr>"; + $i = 1; + while ($i < count($lowusers)-1) { + $low .= vsprintf('<tr><td>%s</td>',array($lowusers['counter'][$i])); + $low .= vsprintf('<td>%s</td>',array($lowusers['img'][$i])); + $low .= vsprintf('<td>%s</td>',array($lowusers['cnt'][$i])); + $low .= vsprintf('<td>%s</td></tr>',array($lowusers['user'][$i])); + $i++; + } + $low .= "</tr></table>"; -$indexAdmin->addInfoBox( _AM_SMALLWORLD_USERSTATS); -//$indexAdmin->addInfoBoxLine( _AM_XTUBE_MINDEX_VIDEOSUMMARY, "<infolabel>" .<{$lang_userstats}>. "</infolabel>", index.php); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_DATEOFFIRSTMESSAGE, $dateoffirstmessage, 'Green'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOTALUSERS, $totalusers, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_AVERAGEMSGPERDAY, $avgperday, 'Red'); +$indexAdmin->addInfoBox(_AM_SMALLWORLD_USERSTATS); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<span style='smallworldadmin_tab_container'><p class='smallworldadmin'>"._AM_SMALLWORLD_DATEOFFIRSTMESSAGE." : %s</p>",$dateoffirstmessage,'Green','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOTALUSERS." : %s</p>",$sumallusers, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_AVERAGEMSGPERDAY." : %s</p>", $avgperday, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS_TODAY." : %s</p>", $mat, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPCHATTERS." : %s</p>", $ma, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_TOPRATEDUSERS." : %s</p>", $top, 'Red','default'); +$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, "<p class='smallworldadmin'>"._AM_SMALLWORLD_BOTTOMRATEDUSERS." : %s</p></span>", $low, 'Red','default'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPCHATTERS_TODAY, $avgperday, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPCHATTERS, $avgperday, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_TOPRATEDUSERS, $avgperday, 'Red'); -$indexAdmin->addInfoBoxLine( _AM_SMALLWORLD_USERSTATS, _AM_SMALLWORLD_BOTTOMRATEDUSERS, $avgperday, 'Red'); - echo $indexAdmin->addNavigation('index.php'); echo $indexAdmin->renderIndex(); - -include "admin_footer.php"; \ No newline at end of file +include "admin_footer.php"; +?> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/smallworld/admin/index0.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/index0.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/admin/index.php $ -* @Last committed: $Revision: 8707 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ -* @ID: $Id: index.php 8707 2012-01-13 08:40:50Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ require_once 'admin_header.php'; Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/index0.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/admin/menu.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/menu.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/menu.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -18,6 +18,7 @@ * @Last changed date: $Date$ * @ID: $Id$ **/ + $dirname = basename(dirname(dirname(__FILE__))); $module_handler = xoops_gethandler('module'); $module = $module_handler->getByDirname($dirname); @@ -31,7 +32,7 @@ $i++; $adminmenu[$i]['title'] = _MI_SMALLWORLD_ADMENU; $adminmenu[$i]['link'] = 'admin/moduleinfo.php'; -$adminmenu[$i]['icon'] = $pathIcon32."/home.png"; +$adminmenu[$i]['icon'] = $pathIcon32."/update.png"; $i++; $adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_USERADMIN; @@ -39,17 +40,6 @@ $adminmenu[$i]['icon'] = $pathIcon32."/administration.png"; $i++; -$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_STATS; -$adminmenu[$i]['link'] = "admin/statistics.php"; -$adminmenu[$i]['icon'] = $pathIcon32."/stats.png"; - -//$i++; -//$adminmenu[$i]['title'] = _MI_SMALLWORLDMENU_HELP; -//$adminmenu[$i]['link'] = "admin/help.php"; -//$adminmenu[$i]['icon'] = $pathIcon32."/help.png"; - -$i++; - $adminmenu[$i]["title"] =_MI_SMALLWORLDMENU_ABOUT; $adminmenu[$i]["link"] = "admin/about.php"; $adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/moduleinfo.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Deleted: XoopsModules/smallworld/trunk/smallworld/admin/statistics.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/admin/statistics.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/admin/statistics.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -1,79 +0,0 @@ -<?php -/** -* You may not change or alter any portion of this comment or credits -* of supporting developers from this source code or any supporting source code -* which is considered copyrighted (c) material of the original comment or credit authors. -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -* -* @copyright: The XOOPS Project http://sourceforge.net/projects/xoops/ -* @license: http://www.fsf.org/copyleft/gpl.html GNU public license -* @module: Smallworld -* @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> -* @copyright: 2011 Culex -* @Repository path: $HeadURL$ -* @Last committed: $Revision$ -* @Last changed by: $Author$ -* @Last changed date: $Date$ -* @ID: $Id$ -**/ - -require_once 'admin_header.php'; -require_once '../../../include/cp_header.php'; -include_once(XOOPS_ROOT_PATH."/modules/smallworld/include/functions.php"); -include_once(XOOPS_ROOT_PATH."/modules/smallworld/class/class_collector.php"); - -require_once XOOPS_ROOT_PATH . '/class/template.php'; -if (!isset($xoopsTpl)) {$xoopsTpl = new XoopsTpl();} -$xoopsTpl->xoops_setCaching(0); - -xoops_cp_header(); - -$admin = new SmallworldAdmin(); -$tpl = new XoopsTpl(); - -$ai = array(); -$ani = array(); - -// Count members using Smallworld -$sumallusers = $admin->TotalUsers (); -// Find list of most active users (total) -$admin->mostactiveusers_allround(); -// Find list of most active users (24 hours) -$admin->mostactiveusers_today(); -// Get days number -$totaldays = $admin->CountDays(); -// Find oldest message and apply to template -$dateoffirstmessage = date('d-m-Y H:i:s',$admin->oldestMsg()); -// get average messages per day -$avgperday = $admin->AvgMsgDay ($totaldays); -// FInd list of best rated users overall -$admin->topratedusers('up'); - -// FInd list of worst rated users overall -$admin->topratedusers('down'); - -// template assignments - // tab titles - $xoopsTpl->assign('lang_statistics', _AM_SMALLWORLD_STATISTICS_TITLE); - - // help file from admin - $xoopsTpl->assign('lang_dateoffirstmessage', _AM_SMALLWORLD_DATEOFFIRSTMESSAGE); - $xoopsTpl->assign('lang_totalusers', _AM_SMALLWORLD_TOTALUSERS); - $xoopsTpl->assign('lang_averagemsgperday', _AM_SMALLWORLD_AVERAGEMSGPERDAY); - $xoopsTpl->assign('lang_topchatters',_AM_SMALLWORLD_TOPCHATTERS); - $xoopsTpl->assign('lang_topchatterstoday',_AM_SMALLWORLD_TOPCHATTERS_TODAY); - $xoopsTpl->assign('lang_toprated',_AM_SMALLWORLD_TOPRATEDUSERS); - $xoopsTpl->assign('lang_bottomrated',_AM_SMALLWORLD_BOTTOMRATEDUSERS); - $xoopsTpl->assign('dateoffirstmessage', $dateoffirstmessage); - $xoopsTpl->assign('totalusers', $sumallusers); - $xoopsTpl->assign('averagemsgperday', $avgperday); - $xoopsTpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/admin_statistics.html'); - - global $xoTheme; - $xoTheme->addStyleSheet('modules/smallworld/css/SmallworldAdmin.css'); - $xoTheme->addScript(XOOPS_URL . '/modules/smallworld/js/adminsmallworld.js'); - -xoops_cp_footer(); -?> \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/class/adminclass.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -90,41 +90,43 @@ } // find user with most posted messages function mostactiveusers_allround() { - global $xoopsDB,$xoopsUser,$xoopsTpl; + global $xoopsDB,$xoopsUser; $sql = "SELECT uid_fk, COUNT( * ) as cnt "; $sql .= "FROM ( "; $sql .= "SELECT uid_fk "; - $sql .= "FROM xoops_smallworld_messages "; + $sql .= "FROM ".$xoopsDB->prefix('smallworld_messages')." "; $sql .= "UNION ALL SELECT uid_fk "; - $sql .= "FROM xoops_smallworld_comments "; + $sql .= "FROM ".$xoopsDB->prefix('smallworld_comments')." "; $sql .= ") AS u "; $sql .= "GROUP BY uid_fk "; $sql .= "ORDER BY count( * ) DESC limit 20"; $result = $xoopsDB->queryF($sql); $counter = $xoopsDB->getRowsNum($result); - if ($counter < 1) { - $msg['cnt'] = _AM_SMALLWORLD_NO; - $msg['uid_fk'] = _AM_SMALLWORLD_THEREARE; - $xoopsTpl->append('topuser', $msg); + if ($counter == 1) { + $msg['cnt'][1] = _AM_SMALLWORLD_NO; + $msg['uid_fk'][1] = _AM_SMALLWORLD_THEREARE; + //$xoopsTpl->append('topuser', $msg); } else { $msg = array(); - $counter = 1; + + $i = 1; while ($row = $xoopsDB->fetchArray($result)) { - $msg["counter"] = $counter; - $msg["img"] = "<img src = '../images/".$counter.".png'></img>"; - if ($msg['counter'] > 3) { $msg["img"] = '';} - $msg["cnt"] = $row["cnt"]; - $msg["from"] = $xoopsUser->getUnameFromId($row["uid_fk"]); - $xoopsTpl->append('topuser', $msg); - $counter++; + $msg["counter"][$i] = $i; + $msg["img"][$i] = "<img style='margin:0px 5px;' src = '../images/".$i.".png'></img>"; + if ($msg['counter'][$i] > 3) { $msg["img"][$i] = '';} + $msg["cnt"][$i] = $row["cnt"]; + $msg["from"][$i] = $xoopsUser->getUnameFromId($row["uid_fk"]); + //$xoopsTpl->append('topuser', $msg); + $i++; } } - return $msg; + return $msg; } + // find user with most posted messages in last 24 hours function mostactiveusers_today() { - global $xoopsDB,$xoopsUser,$xoopsTpl; + global $xoopsDB,$xoopsUser; $sql = "SELECT uid_fk, COUNT( * ) as cnt "; $sql .= "FROM ( "; $sql .= "SELECT uid_fk "; @@ -139,20 +141,18 @@ $result = $xoopsDB->queryF($sql); if ($xoopsDB->getRowsNum($result) > 0) { $msgtoday = array(); - $counter = 1; + $i = 1; while ($row = $xoopsDB->fetchArray($result)) { - $msgtoday["counter"] = $counter; - $msgtoday["img"] = "<img src = '../images/".$counter.".png'></img>"; - if ($msgtoday['counter'] > 3) { $msgtoday["img"] = '';} - $msgtoday["cnt"] = $row["cnt"]; - $msgtoday["from"] = $xoopsUser->getUnameFromId($row["uid_fk"]); - $xoopsTpl->append('topusertoday', $msgtoday); - $counter++; + $msgtoday["counter"][$i] = $i; + $msgtoday["img"][$i] = "<img style='margin:0px 5px;' src = '../images/".$i.".png'></img>"; + if ($msgtoday['counter'][$i] > 3) { $msgtoday["img"][$i] = '';} + $msgtoday["cnt"][$i] = $row["cnt"]; + $msgtoday["from"][$i] = $xoopsUser->getUnameFromId($row["uid_fk"]); + $i++; } } else { - $msgtoday['cnt'] = _AM_SMALLWORLD_NO; - $msgtoday['from'] = _AM_SMALLWORLD_THEREARE; - $xoopsTpl->append('topusertoday', $msgtoday); + $msgtoday['cnt'][1] = _AM_SMALLWORLD_NO; + $msgtoday['from'][1] = _AM_SMALLWORLD_THEREARE; } return $msgtoday; } @@ -161,33 +161,47 @@ function topratedusers($direction) { global $xoopsUser, $xoopsDB,$xoopsTpl; $array = array(); - $counter = 1; - if ($direction == 'up') { - $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where up='1' GROUP by owner ORDER BY cnt DESC limit 20"; - $result = $xoopsDB->queryF($sql); - while ($row = $xoopsDB->fetchArray($result)) { - $array['counter'] = $counter; - $array['img'] = "<img src = '../images/".$counter.".png'></img>"; - if ($array['counter'] > 3) { $array["img"] = '';} - $array['cnt'] = $row['cnt']; - $array['user'] = $xoopsUser->getUnameFromId($row["owner"]); - $xoopsTpl->append('topratedusers', $array); - $counter++; - } - } else { - $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where down='1' GROUP by owner ORDER BY cnt DESC limit 20"; + $i = 1; + if ($direction == 'up') { + $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where up='1' GROUP by owner ORDER BY cnt DESC limit 20"; $result = $xoopsDB->queryF($sql); - while ($row = $xoopsDB->fetchArray($result)) { - $array['counter'] = $counter; - $array['img'] = "<img src = '../images/".$counter.".png'></img>"; - if ($array['counter'] > 3) { $array["img"] = '';} - $array['cnt'] = $row['cnt']; - $array['user'] = $xoopsUser->getUnameFromId($row["owner"]); - $xoopsTpl->append('bottomratedusers', $array); - $counter++; + $count = $xoopsDB->getRowsNum($result); + if ($count != 0) { + while ($row = $xoopsDB->fetchArray($result)) { + $array['counter'][$i] = $i; + $array['img'][$i] = "<img height='10px' width='10px' style='margin:0px 5px;' src = '../images/like.png'></img>"; + if ($array['counter'][$i] > 3) { $array["img"][$i] = '';} + $array['cnt'][$i] = $row['cnt']; + $array['user'][$i] = $xoopsUser->getUnameFromId($row["owner"]); + $i++; + } + } else { + $array['counter'][$i] = ''; + $array['img'][$i] = ""; + $array['cnt'][$i] = _AM_SMALLWORLD_NO; + $array['user'][$i] = _AM_SMALLWORLD_THEREARE; } - } - + } else { + $sql = "SELECT owner, count(*) as cnt FROM ".$xoopsDB->prefix('smallworld_vote')." where down='1' GROUP by owner ORDER BY cnt DESC limit 20"; + $result = $xoopsDB->queryF($sql); + $count = $xoopsDB->getRowsNum($result); + if ($count != 0) { + while ($row = $xoopsDB->fetchArray($result)) { + $array['counter'][$i] = $i; + $array['img'][$i] = "<img height='10px' width='10px' style='margin:0px 5px;' src = '../images/dislike.png'></img>"; + if ($array['counter'][$i] > 3) { $array["img"][$i] = '';} + $array['cnt'][$i] = $row['cnt']; + $array['user'][$i] = $xoopsUser->getUnameFromId($row["owner"]); + $i++; + } + } else { + $array['counter'][$i] = ''; + $array['img'][$i] = ""; + $array['cnt'][$i] = _AM_SMALLWORLD_NO; + $array['user'][$i] = _AM_SMALLWORLD_THEREARE; + } + } + return $array; } // Get all users to loop in admin for administration Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/changelog.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/credits.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/install.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/lang_diff.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/licence.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/docs/readme.txt ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/admin.php $ -* @Last committed: $Revision: 8707 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ -* @ID: $Id: admin.php 8707 2012-01-13 08:40:50Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/admin.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/help/help.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/help/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_attencionneeded.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_complaint.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_newcomment.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/mailTpl/mail_register.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/main.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/main.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/main.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/main.php $ -* @Last committed: $Revision: 8707 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-13 03:40:50 -0500 (Fri, 13 Jan 2012) $ -* @ID: $Id: main.php 8707 2012-01-13 08:40:50Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ /*----------------- Menu items ---------------*/ Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/main.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -12,11 +12,11 @@ * @module: Smallworld * @Author: Michael Albertsen (http://culex.dk) <cu...@cu...> * @copyright: 2011 Culex -* @Repository path: $HeadURL: https://xoops.svn.sourceforge.net/svnroot/xoops/XoopsModules/smallworld/trunk/language/english/modinfo.php $ -* @Last committed: $Revision: 8743 $ -* @Last changed by: $Author: djculex $ -* @Last changed date: $Date: 2012-01-16 09:29:22 -0500 (Mon, 16 Jan 2012) $ -* @ID: $Id: modinfo.php 8743 2012-01-16 14:29:22Z djculex $ +* @Repository path: $HeadURL$ +* @Last committed: $Revision$ +* @Last changed by: $Author$ +* @Last changed date: $Date$ +* @ID: $Id$ **/ define("_MI_SMALLWORLD_MODULE_NAME","Smallworld"); Property changes on: XoopsModules/smallworld/trunk/smallworld/language/danish/modinfo.php ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/english/admin.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/admin.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/english/admin.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -40,7 +40,7 @@ define('_AM_SMALLWORLD_MODULEINFO','Module info'); define('_AM_SMALLWORLD_USERSTATS','User stats'); define('_AM_SMALLWORLD_NONEYET','No messages in database'); -define('_AM_SMALLWORLD_NO','no'); +define('_AM_SMALLWORLD_NO','none'); define('_AM_SMALLWORLD_THEREARE','There are'); define('_AM_SMALLWORLD_UPDATE_STATUS','Status of your Smallworld version:'); @@ -71,53 +71,10 @@ define('_AM_SMALLWORLD_UPDATE_YOUHAVENEWESTVERSION','You have the newest version of Smallworld'); define('_AM_SMALLWORLD_HELP','Help'); define('_AM_SMALLWORLD_ADMIN_USERDELETEDALERT',' and associated folders, files and table rows has been deleted'); +define('_AM_SMALLWORLD_STATS_POS','#'); +define('_AM_SMALLWORLD_STATS_NAME','Name'); +define('_AM_SMALLWORLD_STATS_AMOUNT','Amount'); +define('_AM_SMALLWORLD_STATS_IMG','Icon'); -//Help section -define('_AM_SMALLWORLD_HELP_ABOUT','About Smallworld'); -define('_AM_SMALLWORLD_HELP_PREFACE','Smallworld is a Social Network system. Inspired by the Srinivas Tamada tutorials on fecebook scripting. The base system has been re-written, adapted, and heavily expanded for XOOPS by Culex<br/>The module is featuring like/dislike, bookmarking, wall system, image gallery, and is using XIM if installed. The admin side is featuring deleting users, banning users based on time. A countdown is shown on user side to when it\'s back.. And many more features. It is fully supported by XOOPS version 2.5.0 and higher.<br/>Smallworld is released under the terms of the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License (GPL)</a> and is free to use and modify. It is free to redistribute as long as you abide by the distribution terms of the GPL.'); -define('_AM_SMALLWORLD_HELP_HEADER_REQUIREMENTS','Requirements'); -define('_AM_SMALLWORLD_HELP_REQUIREMENTS','<ul class="help"> - <li>WWW Server (<a href="http://www.apache.org/" target="_blank">Apache</a>, IIS, Roxen, etc)</li> - <li><a href="http://www.xoops.org/" target="_blank">XOOPS</a> 2.4.0 or higher as Smallworld uses preloads</li> - <li><a href="http://www.php.net/" target="_blank">PHP</a> 5.2.0 or higher.</li> - <li><a href="http://www.mysql.com/" target="_blank">MySQL</a> 4 or higher (5 or higher recommended)</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_RECOMMENDED','Recommended for testing Smallworld'); -define('_AM_SMALLWORLD_HELP_RECOMMENDED','<ul class="help"> - <li>Browser <a href="http://www.mozilla.com" target"_blank">Firefox</a> and the Firefox plugin <a href="https://addons.mozilla.org/en-US/firefox/downloads/latest/1843/addon-1843-latest.xpi" target="_blank">FireBug plugin (latest version)</a></li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_INSTALLATION','How to install'); -define('_AM_SMALLWORLD_HELP_FIRSTTIMEINSTALL','<ul class="help"> - <li>Check to see if the downloaded Smallworld version is the latest released version.</li> - <li>Turn cookie and JavaScript of your browser on.</li> - </ul>'); - -define('_AM_SMALLWORLD_HELP_HEADER_HOSTED_PLATFORM','Installing on a hosted platform'); -define('_AM_SMALLWORLD_HELP_HOSTED_PLATFORM','<ul class="help"> - <li>Upload the unzipped folder Smallworld to your module directory.</li> - <li>Install using XOOPS module install as any other module installation.</li> - <li>Make the block visible for the user groups you want to see the block (admin/moderators etc etc).</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_UPGRADING','Upgrading from a previous version'); -define('_AM_SMALLWORLD_HELP_UPGRADING','<ul class="help"> - <li>Make sure you are using newest version</li> - <li>Read the readme.txt in archive</li> - <li>Maybe do a backup of your tables</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_FAQ','Problem solving'); -define('_AM_SMALLWORLD_HELP_HEADER_COMMENPROBLEMS1','I get blank page, can\'t click username, The block does not show.......'); -define('_AM_SMALLWORLD_HELP_COMMENPROBLEMS1','<ul class="help"> - <li>Make sure your Xoops version is > 2.4.0. Older versions of Xoops don\'t have preloads, which are required.</li> - <li>Turn on debug and check to see if any errors emerge.</li> - <li>Using FireFox, right click on the screen, choose inspect element, choose console in the tabs and check to see if any errors<br/></li> - <li>If no errors, use Firebug (Right click->inspect element->console) and see if there are any jQuery errors.</li> - <li>If there are no jQuery errors. Clean caches-> module update Smallworld, system modules.</li> - <li>If the page is still blank, Go to your protector module -> settings and write smallworld in the form "Modules out of Dos / Crawler checker".</li> - </ul>'); -define('_AM_SMALLWORLD_HELP_HEADER_CONTACTS','Ask question'); -define('_AM_SMALLWORLD_HELP_OTHERHELP','<ul class="help"> - <li>If still questions or errors please post at the <a href="http://www.xoops.org/modules/newbb" target="_blank">Xoops support Forum</a></li> - </ul> - '); -define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake by buying me a coffee</a>'); +define('_AM_SMALLWORLD_SP','<img style="margin: 0pt 5px 0pt 0pt; vertical-align: middle;" src="../images/sp.png" height="30px" width="30px"> <a style="position: relative; margin: 0px;vertical-align: middle;" href="javascript:void(0);" id="smallworldDonate">If you like this module and the work I put into it, you could keep me awake by buying me a coffee</a>'); define('_AM_SMALLWORLD_FOOTER', "<div class='center smallsmall italic pad5'>Module SmallWorld is maintained by <a class='tooltip' rel='external' href='http://culex.dk/' title='Visit my Website'>Culex</a></div>"); \ No newline at end of file Property changes on: XoopsModules/smallworld/trunk/smallworld/language/english/help/help.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/language/english/help/index.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Modified: XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php 2012-01-20 08:52:39 UTC (rev 8758) +++ XoopsModules/smallworld/trunk/smallworld/language/english/modinfo.php 2012-01-20 16:59:04 UTC (rev 8759) @@ -52,6 +52,9 @@ define ("_MI_SMALLWORLD_BOOKMARSAVATARS","Use Smallworld Logo when bookmarking ? "); define ("_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC","When posts are public and you want to share on social networks. You can here descide weather to use<br>smallworld logo as shared image or 'no' = the posting users avatar.<br><br>Default is 'yes' = smallworld logo."); +define ("_MI_SMALLWORLD_USEMAILNOTIFICATION","Use mail notifications ? "); +define ("_MI_SMALLWORLD_USEMAILNOTIFICATION_DESC","When new user register a mail is sent to admin, or when a comment is added to a post where user is part a mail is sent to user.<br><br>Default is 'yes'"); + // Select fields & Mandetory fields define ('_MI_SMALLWORLD_VIEWFIELDS','Use fields in registration and profile'); define ('_MI_SMALLWORLD_VIEWFIELDS_DESC','Select fields to use in registration form and in profile viewing<br>Use control + mouse to multiselect'); @@ -59,6 +62,7 @@ define ('_MI_SMALLWORLD_VERIFYFIELDS_DESC','Select (*) mandatory fields in registration form<br>Use control + mouse to multiselect'); define ('_MI_SMALLWORLD_REALNAME','Real name'); +define ('_MI_SMALLWORLD_GENDER','Gender'); define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); define ('_MI_SMALLWORLD_RELATIONSHIPSTATUS','relationship status'); define ('_MI_SMALLWORLD_PARTNER','Partner'); Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_help.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_moduleinfo.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_statistics.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID Property changes on: XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html ___________________________________________________________________ Added: svn:keywords + HeadURL Revision Author Date ID This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |