|
From: <luc...@us...> - 2013-09-30 17:18:23
|
Revision: 12110
http://sourceforge.net/p/xoops/svn/12110
Author: luciorota
Date: 2013-09-30 17:18:17 +0000 (Mon, 30 Sep 2013)
Log Message:
-----------
added: new autosummary option: autosummary if summary field is empty
fixed(imo): autosummary truncate xoops tags
fixed: errors in language definitions
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/reportsmodifications.php
XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php
XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt
XoopsModules/wfdownloads/trunk/wfdownloads/include/constants.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php
XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php
XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/mirrors.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -164,7 +164,7 @@
$GLOBALS['xoopsTpl']->assign('mirrors_published_pagenav', $pagenav_published->renderNav());
}
- $xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_mirrors'));
+ $xoopsTpl->assign('use_mirrors', $wfdownloads->getConfig('enable_mirrors'));
$xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_ratings'));
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/ratings.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -75,7 +75,7 @@
$ratings_pagenav = new XoopsPageNav($ratings_count, $wfdownloads->getConfig('admin_perpage'), $start, 'start');
$GLOBALS['xoopsTpl']->assign('ratings_pagenav', $ratings_pagenav->renderNav());
- $xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_mirrors'));
+ $xoopsTpl->assign('use_mirrors', $wfdownloads->getConfig('enable_mirrors'));
$xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_ratings'));
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/reportsmodifications.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/reportsmodifications.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/reportsmodifications.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -354,7 +354,7 @@
$GLOBALS['xoopsTpl']->assign('modifications_pagenav', $pagenav_modification -> renderNav());
}
- $xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_mirrors'));
+ $xoopsTpl->assign('use_mirrors', $wfdownloads->getConfig('enable_mirrors'));
$xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_ratings'));
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/admin/reviews.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -176,7 +176,7 @@
$GLOBALS['xoopsTpl']->assign('reviews_published_pagenav', $pagenav_published -> renderNav());
}
- $xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_mirrors'));
+ $xoopsTpl->assign('use_mirrors', $wfdownloads->getConfig('enable_mirrors'));
$xoopsTpl->assign('use_ratings', $wfdownloads->getConfig('enable_ratings'));
$xoopsTpl->assign('use_reviews', $wfdownloads->getConfig('enable_reviews'));
$xoopsTpl->assign('use_brokenreports', $wfdownloads->getConfig('enable_brokenreports'));
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/class/download.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -237,12 +237,13 @@
$download['lang_subdate'] = ($this->getVar('updated') != 0) ? _MD_WFDOWNLOADS_UPDATEDON : _MD_WFDOWNLOADS_SUBMITDATE;
$summary = $this->getVar('summary');
- if ($this->wfdownloads->getConfig('autosummary') == true || empty($summary)) {
+ if (
+ ($this->wfdownloads->getConfig('autosummary') == _WFDOWNLOADS_AUTOSUMMARY_YES) ||
+ ($this->wfdownloads->getConfig('autosummary') == _WFDOWNLOADS_AUTOSUMMARY_IFBLANK && empty($summary))) {
// generate autosummary
- $summaryLength = (int)$this->wfdownloads->getConfig('autosumlength');
- $summaryDescription = stripslashes($this->getVar('description'));
- $download['summary'] = $myts->displayTarea($summaryDescription, true);
- if (strlen($summaryDescription) > $summaryLength) {
+ $maxSummaryLength = (int)$this->wfdownloads->getConfig('autosumlength');
+ $download['summary'] = $this->getVar('description');
+ if (strlen($download['summary']) > $maxSummaryLength) {
$download['summary'] = wfdownloads_truncateHtml($download['summary'], $summaryLength, '...', false, true);
} else {
// NOP
@@ -404,7 +405,7 @@
$sform->addElement($versiontypes_select);
$sform->addElement(new XoopsFormText(_MD_WFDOWNLOADS_PRICEC, 'price', 10, 20, $this->getVar('price', 'e')), false);
-
+/*
if ($this->wfdownloads->getConfig('autosummary') == true) {
$summary_dhtmltextarea = new XoopsFormDhtmlTextArea(_MD_WFDOWNLOADS_SUMMARY, 'summary', $this->getVar('summary', 'e'), 10, 60, 'smartHiddenSummary');
$summary_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_ON);
@@ -415,6 +416,26 @@
$summary_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_OFF);
$sform->addElement($summary_dhtmltextarea, false);
}
+*/
+ switch ($this->wfdownloads->getConfig('autosummary')) {
+ case _WFDOWNLOADS_AUTOSUMMARY_YES :
+ $summary_dhtmltextarea = new XoopsFormDhtmlTextArea(_MD_WFDOWNLOADS_SUMMARY, 'summary', $this->getVar('summary', 'e'), 10, 60, 'smartHiddenSummary');
+ $summary_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_YES);
+ $summary_dhtmltextarea->setExtra('disabled', 'disabled');
+ $sform->addElement($summary_dhtmltextarea, false);
+ break;
+ case _WFDOWNLOADS_AUTOSUMMARY_IFBLANK :
+ $summary_dhtmltextarea = new XoopsFormDhtmlTextArea(_MD_WFDOWNLOADS_SUMMARY, 'summary', $this->getVar('summary', 'e'), 10, 60, 'smartHiddenSummary');
+ $summary_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_IFBLANK);
+ $sform->addElement($summary_dhtmltextarea, false);
+ break;
+ default :
+ case _WFDOWNLOADS_AUTOSUMMARY_NO :
+ $summary_dhtmltextarea = new XoopsFormDhtmlTextArea(_MD_WFDOWNLOADS_SUMMARY, 'summary', $this->getVar('summary', 'e'), 10, 60, 'smartHiddenSummary');
+ $summary_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_NO);
+ $sform->addElement($summary_dhtmltextarea, false);
+ break;
+ }
$description_dhtmltextarea = new XoopsFormDhtmlTextArea(_MD_WFDOWNLOADS_DESCRIPTION, 'description', $this->getVar('description', 'e'), 15, 60, 'smartHiddenDescription');
$description_dhtmltextarea->setDescription(_MD_WFDOWNLOADS_DESCRIPTION_DESC);
@@ -597,11 +618,25 @@
$options['mode'] = $mode; // for editors that support mode option
$summary_editor = new XoopsFormEditor('', $this->wfdownloads->getConfig('editor_options'), $options, $nohtml = false, $onfailure = 'textarea');
$summary_tray->addElement($summary_editor);
+/*
if ($this->wfdownloads->getConfig('autosummary') == true) {
$summary_tray->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_ON);
} else {
$summary_tray->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_OFF);
}
+*/
+ switch ($this->wfdownloads->getConfig('autosummary')) {
+ case _WFDOWNLOADS_AUTOSUMMARY_YES :
+ $summary_tray->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_YES);
+ break;
+ case _WFDOWNLOADS_AUTOSUMMARY_IFBLANK :
+ $summary_tray->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_IFBLANK);
+ break;
+ default :
+ case _WFDOWNLOADS_AUTOSUMMARY_NO :
+ $summary_tray->setDescription(_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_NO);
+ break;
+ }
$sform->addElement($summary_tray);
$description_tray = new XoopsFormElementTray(_MD_WFDOWNLOADS_DESCRIPTION, '<br />');
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/docs/changelog.txt 2013-09-30 17:18:17 UTC (rev 12110)
@@ -1,4 +1,4 @@
-<b><u>=> Version 3.23 Beta (2013-09-29)</u></b>
+<b><u>=> Version 3.23 Beta (2013-09-30)</u></b>
- module standardization: header.php, admin/admin_header.php, xoops_version.php
- module standardization: standardize directories/files names/structures
- module standardization: standardize code headers
@@ -18,7 +18,8 @@
- added: enable/disable brokens reports system (luciorota)
- added: admin side downloads filter (luciorota)
- added: breadcrumb class (luciorota)
-- added: html tags compatible autosummary generator (luciorota)
+- added: new autosummary option: autosummary if summary field is empty (luciorota)
+- added: xoops/multilanguages/html tags compatible autosummary generator (luciorota)
- added: sort subcategories by cid or title or weight (luciorota)
- added: improved by letters choice bar (luciorota)
- added: wfdownloads_submit.html template for submit.php (luciorota)
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/include/constants.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/include/constants.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/include/constants.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -39,4 +39,9 @@
define("_WFDOWNLOADS_AUTOAPPROVE_NONE", 1);
define("_WFDOWNLOADS_AUTOAPPROVE_DOWNLOAD", 2);
define("_WFDOWNLOADS_AUTOAPPROVE_MIRROR", 3);
-define("_WFDOWNLOADS_AUTOAPPROVE_BOTH", 4);
\ No newline at end of file
+define("_WFDOWNLOADS_AUTOAPPROVE_BOTH", 4);
+
+// CONFIG autosummary
+define("_WFDOWNLOADS_AUTOSUMMARY_NO", 1);
+define("_WFDOWNLOADS_AUTOSUMMARY_IFBLANK", 2);
+define("_WFDOWNLOADS_AUTOSUMMARY_YES", 3);
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/admin.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -351,7 +351,7 @@
define("_AM_WFDOWNLOADS_FILE_CREATENEWFILE","Create new file");
define("_AM_WFDOWNLOADS_FILE_TITLE","File title");
define("_AM_WFDOWNLOADS_FILE_DLURL","Remote URL");
-define("_AM_WFDOWNLOADS_FILE_FILENAME","Local filename<br /><br /><span style='font-weight: normal;'>Note: if using local file as download, then you must also enter the correct filetype below!</span>");
+define("_AM_WFDOWNLOADS_FILE_FILENAME","Local filename <br /><br /><span style='font-weight: normal;'>Note: if using local file as download, then you must also enter the correct filetype below!</span>");
define("_AM_WFDOWNLOADS_FILE_FILETYPE","File type");
define("_AM_WFDOWNLOADS_FILE_MIRRORURL","File mirror");
define("_AM_WFDOWNLOADS_FILE_SUMMARY","File summary");
@@ -368,15 +368,15 @@
define("_AM_WFDOWNLOADS_FILE_LICENCE","Software licence");
define("_AM_WFDOWNLOADS_FILE_LIMITATIONS","Software limitations");
define("_AM_WFDOWNLOADS_FILE_PRICE","Price");
-define("_AM_WFDOWNLOADS_FILE_KEYFEATURES","Key features<br /><br /><span style='font-weight: normal;'>Separate each key feature with a |</span>");
-define("_AM_WFDOWNLOADS_FILE_REQUIREMENTS","System requirements<br /><br /><span style='font-weight: normal;'>Separate each requirement with |</span>");
-define("_AM_WFDOWNLOADS_FILE_HISTORY","Download history edit<br /><br /><span style='font-weight: normal;'>Add new download history and only use this field to if you need to edit the previous history.</span>");
-define("_AM_WFDOWNLOADS_FILE_HISTORYD","Add new download history<br /><br /><span style='font-weight: normal;'>The version number and date will be added automatically</span>");
+define("_AM_WFDOWNLOADS_FILE_KEYFEATURES","Key features <br /><br /><span style='font-weight: normal;'>Separate each key feature with a |</span>");
+define("_AM_WFDOWNLOADS_FILE_REQUIREMENTS","System requirements <br /><br /><span style='font-weight: normal;'>Separate each requirement with |</span>");
+define("_AM_WFDOWNLOADS_FILE_HISTORY","Download history edit <br /><br /><span style='font-weight: normal;'>Add new download history and only use this field to if you need to edit the previous history.</span>");
+define("_AM_WFDOWNLOADS_FILE_HISTORYD","Add new download history <br /><br /><span style='font-weight: normal;'>The version number and date will be added automatically</span>");
define("_AM_WFDOWNLOADS_FILE_HISTORYVERS","<b>Version</b>");
define("_AM_WFDOWNLOADS_FILE_HISTORDATE"," <b>Updated</b> ");
-define("_AM_WFDOWNLOADS_FILE_FILESSTATUS"," Set download offline<br /><br /><span style='font-weight: normal;'>Download will not be viewable to all users.</span>");
-define("_AM_WFDOWNLOADS_FILE_SETASUPDATED"," Set download status as updated<br /><br /><span style='font-weight: normal;'>Download will display updated icon.</span>");
-define("_AM_WFDOWNLOADS_FILE_SHOTIMAGE","Select screenshot image<br /><br /><span style='font-weight: normal;'>Note that screenshots will only be displayed if activated in module preferences.</span>");
+define("_AM_WFDOWNLOADS_FILE_FILESSTATUS"," Set download offline <br /><br /><span style='font-weight: normal;'>Download will not be viewable to all users.</span>");
+define("_AM_WFDOWNLOADS_FILE_SETASUPDATED"," Set download status as updated <br /><br /><span style='font-weight: normal;'>Download will display updated icon.</span>");
+define("_AM_WFDOWNLOADS_FILE_SHOTIMAGE","Select screenshot image <br /><br /><span style='font-weight: normal;'>Note that screenshots will only be displayed if activated in module preferences.</span>");
define("_AM_WFDOWNLOADS_FILE_DISCUSSINFORUM","Add discuss in this forum?");
define("_AM_WFDOWNLOADS_FILE_PUBLISHDATE","Download publish date");
define("_AM_WFDOWNLOADS_FILE_EXPIREDATE","Download expire date");
@@ -386,8 +386,8 @@
define("_AM_WFDOWNLOADS_FILE_SETDATETIMEPUBLISH"," Set the date/time of publish");
define("_AM_WFDOWNLOADS_FILE_SETDATETIMEEXPIRE"," Set the date/time of expire");
define("_AM_WFDOWNLOADS_FILE_SETPUBLISHDATE","<b>Set publish date</b>");
-define("_AM_WFDOWNLOADS_FILE_SETNEWPUBLISHDATE","<b>Set new publish date: </b><br />published");
-define("_AM_WFDOWNLOADS_FILE_SETPUBDATESETS","<b>Publish date set: </b><br />publishes on date");
+define("_AM_WFDOWNLOADS_FILE_SETNEWPUBLISHDATE","<b>Set new publish date:</b> <br />published");
+define("_AM_WFDOWNLOADS_FILE_SETPUBDATESETS","<b>Publish date set:</b> <br />publishes on date");
define("_AM_WFDOWNLOADS_FILE_EXPIREDATESET"," Expire date set: ");
define("_AM_WFDOWNLOADS_FILE_SETEXPIREDATE","<b>Set expire date</b>");
define("_AM_WFDOWNLOADS_FILE_MUSTBEVALID","Screenshot image must be a valid image file under %s directory (ex. shot.gif). Leave it blank if there is no image file.");
@@ -524,11 +524,11 @@
define("_AM_WFDOWNLOADS_MIRROR_SUBMITDATE","Submitted");
define("_AM_WFDOWNLOADS_MIRROR_FHOMEURLTITLE","Home page title");
define("_AM_WFDOWNLOADS_MIRROR_FHOMEURL","Home Page URL: ");
-define("_AM_WFDOWNLOADS_MIRROR_UPLOADIMAGE","Upload site logo<br /><br />A small logo representing your website.");
+define("_AM_WFDOWNLOADS_MIRROR_UPLOADIMAGE","Upload site logo <br /><br />A small logo representing your website.");
define("_AM_WFDOWNLOADS_MIRROR_MIRRORIMAGE","Site logo");
define("_AM_WFDOWNLOADS_MIRROR_CONTINENT","Continent");
-define("_AM_WFDOWNLOADS_MIRROR_LOCATION","Location<br /><br />Example: London, UK");
-define("_AM_WFDOWNLOADS_MIRROR_DOWNURL","Download URL<br /><br />Enter the url to the file.");
+define("_AM_WFDOWNLOADS_MIRROR_LOCATION","Location <br /><br />Example: London, UK");
+define("_AM_WFDOWNLOADS_MIRROR_DOWNURL","Download URL <br /><br />Enter the url to the file.");
define("_AM_WFDOWNLOADS_MIRROR_FAPPROVE","Mirror approve");
define("_AM_WFDOWNLOADS_MIRROR_ACTION","Action");
define("_AM_WFDOWNLOADS_MIRROR_NOWAITINGMIRRORS","No waiting mirrors found");
@@ -667,7 +667,7 @@
define("_AM_WFDOWNLOADS_CLONE_NAME_DSC","Do not use special characters! <br />Do not choose an existing module dirname or database table name!");
define("_AM_WFDOWNLOADS_CLONE_INVALIDNAME","ERROR: Invalid module name, please try another one!");
define("_AM_WFDOWNLOADS_CLONE_EXISTS","ERROR: Module name already taken, please try another one!");
-define("_AM_WFDOWNLOADS_CLONE_CONGRAT","Congratulations! %s was sucessfully created!<br />You may want to make changes in language files.");
+define("_AM_WFDOWNLOADS_CLONE_CONGRAT","Congratulations! %s was sucessfully created! <br />You may want to make changes in language files.");
define("_AM_WFDOWNLOADS_CLONE_IMAGEFAIL","Atention, we failed creating the new module logo. Please consider modifying images/module_logo.png manually!");
define("_AM_WFDOWNLOADS_CLONE_FAIL","Sorry, we failed in creating the new clone. Maybe you need to temporally set write permissions (CHMOD 777) to 'modules' folder and try again.");
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/main.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -22,8 +22,8 @@
//Todo - Still to remove redundat defines from this area.
define("_MD_WFDOWNLOADS_NEEDLOGINVIEW","You need to login first!");
define("_MD_WFDOWNLOADS_NODOWNLOAD","This download does not exist!");
-define("_MD_WFDOWNLOADS_DOWNLOADMINPOSTS","You need to increase you post count<br />Before you can download files");
-define("_MD_WFDOWNLOADS_UPLOADMINPOSTS","You need to increase you post count<br />Before you can upload files");
+define("_MD_WFDOWNLOADS_DOWNLOADMINPOSTS","You need to increase you post count <br />Before you can download files");
+define("_MD_WFDOWNLOADS_UPLOADMINPOSTS","You need to increase you post count <br />Before you can upload files");
define("_MD_WFDOWNLOADS_SUBCATLISTING","Category listing");
define("_MD_WFDOWNLOADS_ISADMINNOTICE","Webmaster: there is a problem with this image.");
@@ -31,7 +31,7 @@
define("_MD_WFDOWNLOADS_ISAPPROVED","Thank-you for your submission. Your request has been approved and will now appear in our listing.");
define("_MD_WFDOWNLOADS_THANKSFORHELP","Thank-you for helping to maintain this directory's integrity.");
define("_MD_WFDOWNLOADS_FORSECURITY","For security reasons your user name and IP address will also be temporarily recorded.");
-define("_MD_WFDOWNLOADS_NOPERMISETOLINK","This file doesn't belong to the site you came from <br /><br />Please e-mail the webmaster of the site you came from and tell him: <br /><b>NOT TO LEECH OTHER SITES LINKS!!</b> <br /><br /><b>Definition of a Leecher:</b> One who is to lazy to link from his own server or steals other peoples hard work and makes it look like his own <br /><br /> Your IP address <b>has been logged</b>.");
+define("_MD_WFDOWNLOADS_NOPERMISETOLINK","This file doesn't belong to the site you came from <br /><br />Please e-mail the webmaster of the site you came from and tell him: <br /><b>NOT TO LEECH OTHER SITES LINKS!!</b> <br /><br /><b>Definition of a Leecher:</b> One who is to lazy to link from his own server or steals other peoples hard work and makes it look like his own <br /><br /> Your IP address <b>has been logged</b>.");
define("_MD_WFDOWNLOADS_SUMMARY","Summary");
define("_MD_WFDOWNLOADS_DESCRIPTION","Description");
define("_MD_WFDOWNLOADS_SUBMITCATHEAD","Submit download form");
@@ -118,9 +118,9 @@
define("_MD_WFDOWNLOADS_CURSORTBY","Downloads currently sorted by: %s");
define("_MD_WFDOWNLOADS_CANCEL","Cancel");
define("_MD_WFDOWNLOADS_ALREADYREPORTED","You have already submitted a broken report for this resource.");
-define("_MD_WFDOWNLOADS_MUSTREGFIRST","Sorry, you don't have the permission to perform this action.<br />Please register or login first!");
+define("_MD_WFDOWNLOADS_MUSTREGFIRST","Sorry, you don't have the permission to perform this action. <br />Please register or login first!");
define("_MD_WFDOWNLOADS_NORATING","No rating selected.");
-define("_MD_WFDOWNLOADS_CANTVOTEOWN","You cannot vote on the resource you submitted.<br />All votes are logged and reviewed.");
+define("_MD_WFDOWNLOADS_CANTVOTEOWN","You cannot vote on the resource you submitted. <br />All votes are logged and reviewed.");
define("_MD_WFDOWNLOADS_SUBMITDOWNLOAD","Submit download");
define("_MD_WFDOWNLOADS_SUB_SNEWMNAMEDESC","<ul><li>All new downloads are subject to validation and may take up to 24 hours before they appear in our listing.</li><li>We reserve the rights to refuse any submitted download or change the content without approval.</li></ul>");
define("_MD_WFDOWNLOADS_MAINLISTING","Main category listings");
@@ -180,8 +180,8 @@
define("_MD_WFDOWNLOADS_ERROR_CREATEREVIEW","ERROR: unable to create a review");
define("_MD_WFDOWNLOADS_REV_SNEWMNAMEDESC","
-Please completely fill out the form below, and we'll add your review as soon as possible.<br /><br />
-Thank you for taking the time to submit your opinion. We want to give our users a possibility to find quality software faster.<br /><br />All reviews will be reviewed by one of our webmasters before they are put up on the web site.
+Please completely fill out the form below, and we'll add your review as soon as possible. <br /><br />
+Thank you for taking the time to submit your opinion. We want to give our users a possibility to find quality software faster. <br /><br />All reviews will be reviewed by one of our webmasters before they are put up on the web site.
");
define("_MD_WFDOWNLOADS_ISNOTAPPROVED","Your submission has to be approved by a moderator first.");
define("_MD_WFDOWNLOADS_LICENCEC","Software licence");
@@ -259,8 +259,8 @@
define("_MD_WFDOWNLOADS_MIRROR_SUBMITMIRROR","Submit mirror");
define("_MD_WFDOWNLOADS_ERROR_CREATEMIRROR","ERROR: unable to create a mirror");
define("_MD_WFDOWNLOADS_MIRROR_SNEWMNAMEDESC","
-Please completely fill out the form below, and we'll add your mirror as soon as possible.<br /><br />
-Thank you for your assistance in providing another location to download these files. We want to give our users a possibility to find quality software faster.<br /><br />All mirror submissions will be reviewed by one of our webmasters before they are put up on the web site.
+Please completely fill out the form below, and we'll add your mirror as soon as possible. <br /><br />
+Thank you for your assistance in providing another location to download these files. We want to give our users a possibility to find quality software faster. <br /><br />All mirror submissions will be reviewed by one of our webmasters before they are put up on the web site.
");
define("_MD_WFDOWNLOADS_MIRROR_HHOST","Host");
define("_MD_WFDOWNLOADS_MIRROR_HLOCATION","Location");
@@ -314,11 +314,12 @@
define("_MD_WFDOWNLOADS_KEYFEATURESC_DESC","Separate each key feature with a |");
define("_MD_WFDOWNLOADS_REQUIREMENTSC_DESC","Separate each requirement with |");
define("_MD_WFDOWNLOADS_HISTORYD_DESC","The submit date will automatically be added to this.");
-define("_MD_WFDOWNLOADS_UPLOAD_FILEC_DESC","Max file size: %s<br />Max image width: %dpx<br />Max image height: %dpx<br /><span title='%s'>Allowed extensions:<br />%s</span>");
+define("_MD_WFDOWNLOADS_UPLOAD_FILEC_DESC","Max file size: %s <br />Max image width: %dpx <br />Max image height: %dpx <br /><span title='%s'>Allowed extensions: <br />%s</span>");
-define("_MD_WFDOWNLOADS_SUMMARY_DESC","You can leave this blank<br />A summary will be autocreated if empty.");
-define("_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_ON","Warning: summary field is disabled.<br />The "Download autosummary" module preference is enabled.<br />A summary will be autocreated using "Description" field content.");
-define("_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_OFF","You can leave this field blank. A summary will be autocreated using "Description" field content.");
+define("_MD_WFDOWNLOADS_SUMMARY_DESC","You can leave this blank <br />A summary will be autocreated if empty.");
+define("_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_YES","Warning: summary field is disabled. <br />The \"Download autosummary\" module preference is enabled. <br />A summary will be autocreated using \"Description\" field content.");
+define("_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_IFBLANK","You can leave this field blank. A summary will be autocreated using \"Description\" field content.");
+define("_MD_WFDOWNLOADS_SUMMARY_DESC_AUTOSUMMARY_NO","You can leave this field blank.");
define("_MD_WFDOWNLOADS_DESCRIPTION_DESC","");
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/language/english/modinfo.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -49,31 +49,31 @@
//define("_MI_WFDOWNLOADS_MMIRRORS","Mirrors"); // NOT USED FROM 3.23
// Title of config items
-define('_MI_WFDOWNLOADS_POPULAR','[status] Downloads "popular" count');
+define('_MI_WFDOWNLOADS_POPULAR','[status] Downloads "popular" count');
define('_MI_WFDOWNLOADS_POPULARDSC','The number of hits before a Download status will be considered as popular.');
//Display Icons
-define("_MI_WFDOWNLOADS_ICONDISPLAY","[status] Display Downloads "popular" and "new" icons");
-define("_MI_WFDOWNLOADS_DISPLAYICONDSC","Select how to display the "popular" and "new" icons in download listing.");
+define("_MI_WFDOWNLOADS_ICONDISPLAY","[status] Display Downloads \"popular\" and \"new\" icons");
+define("_MI_WFDOWNLOADS_DISPLAYICONDSC","Select how to display the \"popular\" and \"new\" icons in download listing.");
define("_MI_WFDOWNLOADS_DISPLAYICON1","Display as icons");
define("_MI_WFDOWNLOADS_DISPLAYICON2","Display as text");
define("_MI_WFDOWNLOADS_DISPLAYICON3","Do not display");
-define("_MI_WFDOWNLOADS_DAYSNEW","[status] Downloads days "new"");
-define("_MI_WFDOWNLOADS_DAYSNEWDSC","The amount of days a Download status will be considered as "new".");
-define("_MI_WFDOWNLOADS_DAYSUPDATED","[status] Downloads days "updated"");
-define("_MI_WFDOWNLOADS_DAYSUPDATEDDSC","The amount of days a Download status will be considered as "updated".");
+define("_MI_WFDOWNLOADS_DAYSNEW","[status] Downloads days \"new\"");
+define("_MI_WFDOWNLOADS_DAYSNEWDSC","The amount of days a Download status will be considered as \"new\".");
+define("_MI_WFDOWNLOADS_DAYSUPDATED","[status] Downloads days \"updated\"");
+define("_MI_WFDOWNLOADS_DAYSUPDATEDDSC","The amount of days a Download status will be considered as \"updated\".");
define('_MI_WFDOWNLOADS_PERPAGE','Download listing count');
define('_MI_WFDOWNLOADS_PERPAGEDSC','Number of Downloads to display in each category listing.');
define('_MI_WFDOWNLOADS_TEMPLATESET','Select Template Set');
-define('_MI_WFDOWNLOADS_TEMPLATESETDSC','Select Templates to use for your module.<br />This will allow you to choose how your downloads are listed');
+define('_MI_WFDOWNLOADS_TEMPLATESETDSC','Select Templates to use for your module. <br />This will allow you to choose how your downloads are listed');
define('_MI_WFDOWNLOADS_TEMPLATESET1','Default');
define('_MI_WFDOWNLOADS_TEMPLATESET2','Professional');
define('_MI_WFDOWNLOADS_USESHOTS','[screenshots] Display screenshot images');
-define('_MI_WFDOWNLOADS_USESHOTSDSC','Select "' . _YES . '" to display screenshot images for each download item.');
+define('_MI_WFDOWNLOADS_USESHOTSDSC','Select "' . _YES . '" to display screenshot images for each download item.');
define('_MI_WFDOWNLOADS_SHOTWIDTH','[thumbnails] Thumbnails width (pixels)');
define('_MI_WFDOWNLOADS_SHOTWIDTHDSC','Display width for thumbnails image.');
define('_MI_WFDOWNLOADS_SHOTHEIGHT','[thumbnails] Thumbnails height (pixels)');
@@ -119,10 +119,10 @@
define('_MI_WFDOWNLOADS_AUTOSUMMARYLENGTHDESC','The maximum amount of characters displayed for the summary.');
define('_MI_WFDOWNLOADS_UPLOADDIR','[upload files] Upload directory');
-define('_MI_WFDOWNLOADS_UPLOADDIRDSC','Upload directory *MUST* be an absolute path!<br />No trailing slash.');
+define('_MI_WFDOWNLOADS_UPLOADDIRDSC','Upload directory *MUST* be an absolute path! <br />No trailing slash.');
define('_MI_WFDOWNLOADS_ENABLERSS','[RSS feeds] Enable RSS Feeds');
-define('_MI_WFDOWNLOADS_ENABLERSSDSC','Select "' . _YES . '" to enable rss feeds.');
+define('_MI_WFDOWNLOADS_ENABLERSSDSC','Select "' . _YES . '" to enable rss feeds.');
define('_MI_WFDOWNLOADS_DOWNLOADMINPOSTS',"Minimum posts required to download");
define('_MI_WFDOWNLOADS_DOWNLOADMINPOSTSDSC',"Enter the minimum number of posts required to download a file.");
@@ -136,16 +136,16 @@
define('_MI_WFDOWNLOADS_ALLOWSUBMISS3','Mirror only');
define('_MI_WFDOWNLOADS_ALLOWSUBMISS4','Both');
define('_MI_WFDOWNLOADS_ALLOWUPLOADS','[submissions] User can uploads files');
-define('_MI_WFDOWNLOADS_ALLOWUPLOADSDSC','Allow Users to upload files directly to your website.<br />This includes both files & screenshots!');
+define('_MI_WFDOWNLOADS_ALLOWUPLOADSDSC','Allow Users to upload files directly to your website. <br />This includes both files & screenshots!');
define('_MI_WFDOWNLOADS_ALLOWUPLOADSGROUP','[submissions] Groups uploading files');
-define('_MI_WFDOWNLOADS_ALLOWUPLOADSGROUPDSC','Select groups that can upload files directly to your website.<br />This includes both files & screenshots!');
+define('_MI_WFDOWNLOADS_ALLOWUPLOADSGROUPDSC','Select groups that can upload files directly to your website. <br />This includes both files & screenshots!');
define('_MI_WFDOWNLOADS_SCREENSHOTS','[screenshots] Screenshots upload directory');
define('_MI_WFDOWNLOADS_CATEGORYIMG','Categories images upload directory');
define('_MI_WFDOWNLOADS_MAINIMGDIR','Main images directory');
define('_MI_WFDOWNLOADS_USETHUMBS','[thumbnails] Use thumbnails');
-define('_MI_WFDOWNLOADS_USETHUMBSDSC','Supported file types: JPG, GIF, PNG.<br />Wfdownloads will use thumbnails for images (category & screenshots).<br />Set to "' . _NO . '" to use orginal image if the server does not support this option.');
+define('_MI_WFDOWNLOADS_USETHUMBSDSC','Supported file types: JPG, GIF, PNG. <br />Wfdownloads will use thumbnails for images (category & screenshots). <br />Set to "' . _NO . '" to use orginal image if the server does not support this option.');
define('_MI_WFDOWNLOADS_DATEFORMAT','Timestamp');
-define('_MI_WFDOWNLOADS_DATEFORMATDSC','Default Timestamp for Wfdownloads users side.<br />More info here: <a href="http://www.php.net/manual/en/function.date.php">http://www.php.net/manual/en/function.date.php</a>');
+define('_MI_WFDOWNLOADS_DATEFORMATDSC','Default Timestamp for module frontend. <br />More info here: <a href="http://www.php.net/manual/en/function.date.php">http://www.php.net/manual/en/function.date.php</a>');
define('_MI_WFDOWNLOADS_SHOWDISCLAIMER','[disclaimer] Show disclaimer before user submission');
define('_MI_WFDOWNLOADS_SHOWDOWNDISCL','[disclaimer] Show disclaimer before user download');
define('_MI_WFDOWNLOADS_DISCLAIMER','[disclaimer] Submission disclaimer text');
@@ -159,10 +159,10 @@
define('_MI_WFDOWNLOADS_MAXSHOTSDSC','Sets the maximum number of allowed screenshot uploads.');
define("_MI_WFDOWNLOADS_SUBMITART","[submissions] Download submission");
-define("_MI_WFDOWNLOADS_SUBMITARTDSC","Select groups that can submit new downloads.<br />Webmasters are automatically selected!");
+define("_MI_WFDOWNLOADS_SUBMITARTDSC","Select groups that can submit new downloads. <br />Webmasters are automatically selected!");
define("_MI_WFDOWNLOADS_IMGUPDATE","[thumbnails] Update thumbnails");
-define("_MI_WFDOWNLOADS_IMGUPDATEDSC",'If selected "' . _YES . '" thumbnail images will be updated at each page render, otherwise the first thumbnail image will be used regardless.');
+define("_MI_WFDOWNLOADS_IMGUPDATEDSC",'If selected "' . _YES . '" thumbnail images will be updated at each page render, otherwise the first thumbnail image will be used regardless.');
define("_MI_WFDOWNLOADS_QUALITY","[thumbnails] Thumbnail quality");
define("_MI_WFDOWNLOADS_QUALITYDSC","Quality lowest: 0 highest: 100.");
define("_MI_WFDOWNLOADS_KEEPASPECT","[thumbnails] Keep image aspect ratio");
@@ -180,9 +180,9 @@
define('_MI_WFDOWNLOADS_COPYRIGHTDSC','Select to display a copyright notice on download page.');
// Description of each config items
-define('_MI_WFDOWNLOADS_PLATFORMDSC','List of platforms to enter.<br />Separate with |<br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!');
-define('_MI_WFDOWNLOADS_SUBCATSDSC','Select "' . _YES . '" to display subcategories. Selecting "' . _NO . '" will hide sub-categories from the listings.');
-define('_MI_WFDOWNLOADS_LICENSEDSC','List of licenses to enter.<br />Separate with |<br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!');
+define('_MI_WFDOWNLOADS_PLATFORMDSC','List of platforms to enter. <br />Separate with | <br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!');
+define('_MI_WFDOWNLOADS_SUBCATSDSC','Select "' . _YES . '" to display subcategories. Selecting "' . _NO . '" will hide sub-categories from the listings.');
+define('_MI_WFDOWNLOADS_LICENSEDSC','List of licenses to enter. <br />Separate with | <br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!');
// Text for notifications
define('_MI_WFDOWNLOADS_GLOBAL_NOTIFY','Global');
@@ -288,14 +288,14 @@
INCIDENTAL OR CONSEQUENTIAL DAMAGES HOWEVER THEY MAY ARISE AND EVEN IF
XOOPS HAS BEEN PREVIOUSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES..");
-define('_MI_WFDOWNLOADS_AUTHOR_CREDITSTEXT',"The SmartFactory Team would like to thank the following people for their help and support during the development phase of this module:<br /><br />tom, mking, paco1969, mharoun, Talis, m0nty, steenlnielsen, Clubby, Geronimo, bd_csmc, herko, LANG, Stewdio, tedsmith, veggieryan, carnuke, MadFish, Kiang<br />and anyone else who has contributed to either directly or indirectly.");
+define('_MI_WFDOWNLOADS_AUTHOR_CREDITSTEXT',"The SmartFactory Team would like to thank the following people for their help and support during the development phase of this module: <br /><br />tom, mking, paco1969, mharoun, Talis, m0nty, steenlnielsen, Clubby, Geronimo, bd_csmc, herko, LANG, Stewdio, tedsmith, veggieryan, carnuke, MadFish, Kiang<br />and anyone else who has contributed to either directly or indirectly.");
define('_MI_WFDOWNLOADS_AUTHOR_BUGFIXES',"Bug Fix History");
define('_MI_WFDOWNLOADS_COPYRIGHTIMAGE',"Images copyright WF-Project/SmartFactory and may only be used with permission");
// mirror defines
define('_MI_WFDOWNLOADS_MIRROR_USEIMAGES','Display mirror logos'); // not implemented yet
-define('_MI_WFDOWNLOADS_MIRROR_USEIMAGESDSC','Select "' . _YES . '" to display logo for each mirror.'); // not implemented yet
+define('_MI_WFDOWNLOADS_MIRROR_USEIMAGESDSC','Select "' . _YES . '" to display logo for each mirror.'); // not implemented yet
define('_MI_WFDOWNLOADS_MIRROR_IMGWIDTH','Logo display width'); // not implemented yet
define('_MI_WFDOWNLOADS_MIRROR_IMGWIDTHDSC','Display width for mirror logo.'); // not implemented yet
define('_MI_WFDOWNLOADS_MIRROR_IMGHEIGHT','Logo display height'); // not implemented yet
@@ -311,7 +311,7 @@
define('_MI_WFDOWNLOADS_MIRROR_ENABLE','[mirrors] Enable mirrors system');
define('_MI_WFDOWNLOADS_MIRROR_ENABLEDSC','If enabled, morrors system (submit and use mirrors) is enabled in backend.');
define('_MI_WFDOWNLOADS_MIRROR_ENABLEONCHK','[mirrors] Enable server online check');
-define('_MI_WFDOWNLOADS_MIRROR_ENABLEONCHKDSC','Enables the host server check for the mirrors.<br />This can slow your page load down if you have many mirrors.');
+define('_MI_WFDOWNLOADS_MIRROR_ENABLEONCHKDSC','Enables the host server check for the mirrors. <br />This can slow your page load down if you have many mirrors.');
define('_MI_WFDOWNLOADS_MIRROR_ALLOWSUBMISS','[mirrors] User mirror submissions');
define('_MI_WFDOWNLOADS_MIRROR_ALLOWSUBMISSDSC','Allow users to submit new mirrors.');
define('_MI_WFDOWNLOADS_MIRROR_MIRRORIMAGES','[mirrors] Mirror logo upload directory'); // not implemented yet
@@ -349,9 +349,9 @@
define("_MI_WFDOWNLOADS_MENU_CLONE","Clone module");
define("_MI_WFDOWNLOADS_MENU_ABOUT","About");
-define("_MI_WFDOWNLOADS_SCREENSHOTSDSC","Path relative to Xoops root path: "" . XOOPS_ROOT_PATH . "/".<br />No trailing slash.");
-define("_MI_WFDOWNLOADS_MAINIMGDIRDSC","Path relative to Xoops root path: "" . XOOPS_ROOT_PATH . "/".<br />No trailing slash.");
-define("_MI_WFDOWNLOADS_CATEGORYIMGDSC","Path relative to Xoops root path: "" . XOOPS_ROOT_PATH . "/".<br />No trailing slash.");
+define("_MI_WFDOWNLOADS_SCREENSHOTSDSC","Path relative to Xoops root path: \"" . XOOPS_ROOT_PATH . "/\". <br />No trailing slash.");
+define("_MI_WFDOWNLOADS_MAINIMGDIRDSC","Path relative to Xoops root path: \"" . XOOPS_ROOT_PATH . "/\". <br />No trailing slash.");
+define("_MI_WFDOWNLOADS_CATEGORYIMGDSC","Path relative to Xoops root path: \"" . XOOPS_ROOT_PATH . "/\". <br />No trailing slash.");
define("_MI_WFDOWNLOADS_SHOWDISCLAIMERDSC","");
define("_MI_WFDOWNLOADS_DISCLAIMERDSC","HTML tags, smiley icons, XOOPS codes, images are enabled.");
@@ -359,8 +359,8 @@
define("_MI_WFDOWNLOADS_SHOWDOWNDISCLDSC","");
define("_MI_WFDOWNLOADS_DOWNDISCLAIMERDSC","HTML tags, smiley icons, XOOPS codes, images are enabled.");
-define("_MI_WFDOWNLOADS_LIMITSDSC","List of limits to enter.<br />Separate with |<br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!");
-define("_MI_WFDOWNLOADS_VERSIONTYPESDSC","List of version types to enter.<br />Separate with |<br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!");
+define("_MI_WFDOWNLOADS_LIMITSDSC","List of limits to enter. <br />Separate with | <br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!");
+define("_MI_WFDOWNLOADS_VERSIONTYPESDSC","List of version types to enter. <br />Separate with | <br />IMPORTANT: Do not change this once the site is live, add new to the end of the list!");
define("_MI_WFDOWNLOADS_REVIEW_ENABLE","[reviews] Enable Reviews system");
define("_MI_WFDOWNLOADS_REVIEW_ENABLEDSC","If enabled, Reviews system (submit and show reviews) is enabled in backend.");
@@ -371,9 +371,15 @@
define("_MI_WFDOWNLOADS_BROKENREPORT_ENABLE","[broken reports] Enable Broken reports system");
define("_MI_WFDOWNLOADS_BROKENREPORT_ENABLEDSC","If enabled, Broken reports system is enabled in backend.");
-define("_MI_WFDOWNLOADS_SUBMISSIONS_CONFIGS","File submission generals permissions");
+define("_MI_WFDOWNLOADS_SUBMISSIONS_CONFIGS","Downloads submission generals permissions");
define("_MI_WFDOWNLOADS_SUBMISSIONS_CONFIGSDSC","");
+define("_MI_WFDOWNLOADS_DOWNLOAD_CONFIGS","Download preferences");
+define("_MI_WFDOWNLOADS_DOWNLOAD_CONFIGSDSC","");
+
+define("_MI_WFDOWNLOADS_UPLOAD_CONFIGS","Upload/submit preferences");
+define("_MI_WFDOWNLOADS_UPLOAD_CONFIGSDSC","");
+
define("_MI_WFDOWNLOADS_SCREENSHOTS_CONFIGS","Screenshots preferences");
define("_MI_WFDOWNLOADS_SCREENSHOTS_CONFIGSDSC","");
@@ -385,3 +391,7 @@
define("_MI_WFDOWNLOADS_VARIOUS_CONFIGS","Various preferences");
define("_MI_WFDOWNLOADS_VARIOUS_CONFIGSDSC","");
+
+define("_MI_WFDOWNLOADS_AUTOSUMMARY1",_NO);
+define("_MI_WFDOWNLOADS_AUTOSUMMARY2","If blank");
+define("_MI_WFDOWNLOADS_AUTOSUMMARY3",_YES);
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php 2013-09-30 02:38:53 UTC (rev 12109)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/xoops_version.php 2013-09-30 17:18:17 UTC (rev 12110)
@@ -47,9 +47,9 @@
$modversion['onUpdate'] = 'include/module.php';
$modversion['onUninstall'] = 'include/module.php';
-$modversion['date'] = '2013-09-29';
-$modversion['release_date'] = '2013/09/29';
-$modversion['releasedate'] = '2013-09-29';
+$modversion['date'] = '2013-09-30';
+$modversion['release_date'] = '2013/09/30';
+$modversion['releasedate'] = '2013-09-30';
$modversion['status'] = 'BETA 1';
$modversion['teammembers'] = "Bender, David, FrankBlack, Xpider, M0nty, Mithrandir, Marcan, felix[fx2024], Sudhaker, Jegelstaff";
@@ -323,7 +323,7 @@
$modversion['templates'][$i]['description'] = '';
-//Module config setting
+// Module config setting
xoops_load('XoopsEditorHandler');
$editor_handler = XoopsEditorHandler::getInstance();
$editorList = array_flip($editor_handler->getList());
@@ -383,9 +383,28 @@
'default' => 10);
$modversion['config'][] = array(
- 'name' => 'submissions_configs',
- 'title' => '_MI_WFDOWNLOADS_SUBMISSIONS_CONFIGS',
- 'description' => '_MI_WFDOWNLOADS_SUBMISSIONS_CONFIGSDSC',
+ 'name' => 'admin_perpage',
+ 'title' => '_MI_WFDOWNLOADS_ADMINPAGE',
+ 'description' => '_MI_WFDOWNLOADS_ADMINPAGEDESC',
+ 'formtype' => 'select',
+ 'valuetype' => 'int',
+ 'options' => array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50),
+ 'default' => 10);
+
+$modversion['config'][] = array(
+ 'name' => 'dateformat',
+ 'title' => '_MI_WFDOWNLOADS_DATEFORMAT',
+ 'description' => '_MI_WFDOWNLOADS_DATEFORMATDSC',
+ 'formtype' => 'textbox',
+ 'valuetype' => 'text',
+ 'default' => _DATESTRING); //'D, d-M-Y');
+
+
+// Upload configs
+$modversion['config'][] = array(
+ 'name' => 'upload_configs',
+ 'title' => '_MI_WFDOWNLOADS_UPLOAD_CONFIGS',
+ 'description' => '_MI_WFDOWNLOADS_UPLOAD_CONFIGS',
'formtype' => 'line_break',
'valuetype' => 'textbox',
'default' => 'head');
@@ -454,6 +473,66 @@
'default' => '1');
$modversion['config'][] = array(
+ 'name' => 'upload_minposts',
+ 'title' => '_MI_WFDOWNLOADS_UPLOADMINPOSTS',
+ 'description' => '_MI_WFDOWNLOADS_UPLOADMINPOSTSDSC',
+ 'formtype' => 'textbox',
+ 'valuetype' => 'int',
+ 'default' => 0);
+
+$modversion['config'][] = array(
+ 'name' => 'showdisclaimer',
+ 'title' => '_MI_WFDOWNLOADS_SHOWDISCLAIMER',
+ 'description' => '_MI_WFDOWNLOADS_SHOWDISCLAIMERDSC',
+ 'formtype' => 'yesno',
+ 'valuetype' => 'int',
+ 'default' => false);
+
+$modversion['config'][] = array(
+ 'name' => 'disclaimer',
+ 'title' => '_MI_WFDOWNLOADS_DISCLAIMER',
+ 'description' => '_MI_WFDOWNLOADS_DISCLAIMERDSC',
+ 'formtype' => 'textarea',
+ 'valuetype' => 'text',
+ 'default' => 'We have the right, but not the obligation to monitor and review submissions submitted by users, in the forums. We shall not be responsible for any of the content of these messages. We further reserve the right, to delete, move or edit submissions that the we, in its exclusive discretion, deems abusive, defamatory, obscene or in violation of any Copyright or Trademark laws or otherwise objectionable.');
+
+
+// Download configs
+$modversion['config'][] = array(
+ 'name' => 'download_configs',
+ 'title' => '_MI_WFDOWNLOADS_DOWNLOAD_CONFIGS',
+ 'description' => '_MI_WFDOWNLOADS_UPLOAD_CONFIGS',
+ 'formtype' => 'line_break',
+ 'valuetype' => 'textbox',
+ 'default' => 'head');
+
+$modversion['config'][] = array(
+ 'name' => 'download_minposts',
+ 'title' => '_MI_WFDOWNLOADS_DOWNLOADMINPOSTS',
+ 'description' => '_MI_WFDOWNLOADS_DOWNLOADMINPOSTSDSC',
+ 'formtype' => 'textbox',
+ 'valuetype' => 'int',
+ 'default' => 0);
+
+$modversion['config'][] = array(
+ 'name' => 'showDowndisclaimer',
+ 'title' => '_MI_WFDOWNLOADS_SHOWDOWNDISCL',
+ 'description' => '_MI_WFDOWNLOADS_SHOWDOWNDISCLDSC',
+ 'formtype' => 'yesno',
+ 'valuetype' => 'int',
+ 'default' => false);
+
+$modversion['config'][] = array(
+ 'name' => 'downdisclaimer',
+ 'title' => '_MI_WFDOWNLOADS_DOWNDISCLAIMER',
+ 'description' => '_MI_WFDOWNLOADS_DOWNDISCLAIMERDSC',
+ 'formtype' => 'textarea',
+ 'valuetype' => 'text',
+ 'default' => 'The file downloads on this site are provided as is without warranty either expressed or implied. Downloaded files should be checked for possible virus infection using the most up-to-date detection and security packages. If you have a question concerning a particular piece of software, feel free to contact the developer. We refuse liability for any damage or loss resulting from the use or misuse of any software offered from this site for downloading. If you have any doubt at all about the safety and operation of software made available to you on this site, do not download it.<br /><br />Contact us if you have questions concerning this disclaimer.');
+
+
+// Screenshots/thumbs configs
+$modversion['config'][] = array(
'name' => 'screenshots_configs',
'title' => '_MI_WFDOWNLOADS_SCREENSHOTS_CONFIGS',
'description' => '_MI_WFDOWNLOADS_SCREENSHOTS_CONFIGSDSC',
@@ -534,6 +613,8 @@
'valuetype' => 'int',
'default' => false);
+
+// Files configs
$modversion['config'][] = array(
'name' => 'filesuploads_configs',
'title' => '_MI_WFDOWNLOADS_FILESUPLOADS_CONFIGS',
@@ -606,6 +687,8 @@
'valuetype' => 'text',
'default' => 'uploads/' . $modversion['dirname'] . '/images');
+
+// extra systems configs
$modversion['config'][] = array(
'name' => 'extrasystems_configs',
'title' => '_MI_WFDOWNLOADS_SCREENSHOTS_ESTRASYSTEMS',
@@ -679,6 +762,16 @@
'default' => true);
$modversion['config'][] = array(
+ 'name' => 'copyright',
+ 'title' => '_MI_WFDOWNLOADS_COPYRIGHT',
+ 'description' => '_MI_WFDOWNLOADS_COPYRIGHTDSC',
+ 'formtype' => 'yesno',
+ 'valuetype' => 'int',
+ 'default' => true);
+
+
+// Various configs
+$modversion['config'][] = array(
'name' => 'various_configs',
'title' => '_MI_WFDOWNLOADS_VARIOUS_CONFIGS',
'description' => '_MI_WFDOWNLOADS_VARIOUS_CONFIGSDSC',
@@ -687,22 +780,6 @@
'default' => 'head');
$modversion['config'][] = array(
- 'name' => 'download_minposts',
- 'title' => '_MI_WFDOWNLOADS_DOWNLOADMINPOSTS',
- 'description' => '_MI_WFDOWNLOADS_DOWNLOADMINPOSTSDSC',
- 'formtype' => 'textbox',
- 'valuetype' => 'int',
- 'default' => 0);
-
-$modversion['config'][] = array(
- 'name' => 'upload_minposts',
- 'title' => '_MI_WFDOWNLOADS_UPLOADMINPOSTS',
- 'description' => '_MI_WFDOWNLOADS_UPLOADMINPOSTSDSC',
- 'formtype' => 'textbox',
- 'valuetype' => 'int',
- 'default' => 0);
-
-$modversion['config'][] = array(
'name' => 'check_host',
'title' => '_MI_WFDOWNLOADS_CHECKHOST',
'description' => '_MI_WFDOWNLOADS_CHECKHOSTDSC',
@@ -737,14 +814,26 @@
'_MI_WFDOWNLOADS_SUBCATSSORTBYWEIGHT' => 'weight'),
'default' => 'weight');
+$qa = ' (A)';
+$qd = ' (D)';
$modversion['config'][] = array(
- 'name' => 'dateformat',
- 'title' => '_MI_WFDOWNLOADS_DATEFORMAT',
- 'description' => '_MI_WFDOWNLOADS_DATEFORMATDSC',
- 'formtype' => 'textbox',
+ 'name' => 'filexorder',
+ 'title' => '_MI_WFDOWNLOADS_ARTICLESSORT',
+ 'description' => '_MI_WFDOWNLOADS_ARTICLESSORTDSC',
+ 'formtype' => 'select',
'valuetype' => 'text',
- 'default' => _DATESTRING); //'D, d-M-Y');
+ 'options' => array(
+ _MI_WFDOWNLOADS_TITLE . $qa => 'title ASC',
+ _MI_WFDOWNLOADS_TITLE . $qd => 'title DESC',
+ _MI_WFDOWNLOADS_SUBMITTED2 . $qa => 'published ASC' ,
+ _MI_WFDOWNLOADS_SUBMITTED2 . $qd => 'published DESC',
+ _MI_WFDOWNLOADS_RATING . $qa => 'rating ASC',
+ _MI_WFDOWNLOADS_RATING . $qd => 'rating DESC',
+ _MI_WFDOWNLOADS_POPULARITY . $qa => 'hits ASC',
+ _MI_WFDOWNLOADS_POPULARITY . $qd => 'hits DESC'),
+ 'default' => 'title ASC');
+/*
$modversion['config'][] = array(
'name' => 'autosummary',
'title' => '_MI_WFDOWNLOADS_AUTOSUMMARY',
@@ -752,6 +841,18 @@
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => true);
+*/
+$modversion['config'][] = array(
+ 'name' => 'autosummary',
+ 'title' => '_MI_WFDOWNLOADS_AUTOSUMMARY',
+ 'description' => '_MI_WFDOWNLOADS_AUTOSUMMARYDESC',
+ 'formtype' => 'select',
+ 'valuetype' => 'int',
+ 'options' => array(
+ '_MI_WFDOWNLOADS_AUTOSUMMARY1' => _WFDOWNLOADS_AUTOSUMMARY_NO,
+ '_MI_WFDOWNLOADS_AUTOSUMMARY2' => _WFDOWNLOADS_AUTOSUMMARY_IFBLANK,
+ '_MI_WFDOWNLOADS_AUTOSUMMARY3' => _WFDOWNLOADS_AUTOSUMMARY_YES),
+ 'default' => _WFDOWNLOADS_AUTOSUMMARY_NO);
$modversion['config'][] = array(
'name' => 'autosumlength',
@@ -762,38 +863,6 @@
'default' => 200);
$modversion['config'][] = array(
- 'name' => 'showdisclaimer',
- 'title' => '_MI_WFDOWNLOADS_SHOWDISCLAIMER',
- 'description' => '_MI_WFDOWNLOADS_SHOWDISCLAIMERDSC',
- 'formtype' => 'yesno',
- 'valuetype' => 'int',
- 'default' => false);
-
-$modversion['config'][] = array(
- 'name' => 'disclaimer',
- 'title' => '_MI_WFDOWNLOADS_DISCLAIMER',
- 'description' => '_MI_WFDOWNLOADS_DISCLAIMERDSC',
- 'formtype' => 'textarea',
- 'valuetype' => 'text',
- 'default' => 'We have the right, but not the obligation to monitor and review submissions submitted by users, in the forums. We shall not be responsible for any of the content of these messages. We further reserve the right, to delete, move or edit submissions that the we, in its exclusive discretion, deems abusive, defamatory, obscene or in violation of any Copyright or Trademark laws or otherwise objectionable.');
-
-$modversion['config'][] = array(
- 'name' => 'showDowndisclaimer',
- 'title' => '_MI_WFDOWNLOADS_SHOWDOWNDISCL',
- 'description' => '_MI_WFDOWNLOADS_SHOWDOWNDISCLDSC',
- 'formtype' => 'yesno',
- 'valuetype' => 'int',
- 'default' => false);
-
-$modversion['config'][] = array(
- 'name' => 'downdisclaimer',
- 'title' => '_MI_WFDOWNLOADS_DOWNDISCLAIMER',
- 'description' => '_MI_WFDOWNLOADS_DOWNDISCLAIMERDSC',
- 'formtype' => 'textarea',
- 'valuetype' => 'text',
- 'default' => 'The file downloads on this site are provided as is without warranty either expressed or implied. Downloaded files should be checked for possible virus infection using the most up-to-date detection and security packages. If you have a question concerning a particular piece of software, feel free to contact the developer. We refuse liability for any damage or loss resulting from the use or misuse of any software offered from this site for downloading. If you have any doubt at all about the safety and operation of software made available to you on this site, do not download it.<br /><br />Contact us if you have questions concerning this disclaimer.');
-
-$modversion['config'][] = array(
'name' => 'platform',
'title' => '_MI_WFDOWNLOADS_PLATFORM',
'description' => '_MI_WFDOWNLOADS_PLATFORMDSC',
@@ -851,42 +920,6 @@
'valuetype' => 'array',
'default' => 'None|Alpha|Beta|RC|Final');
-$modversion['config'][] = array(
- 'name' => 'admin_perpage',
- 'title' => '_MI_WFDOWNLOADS_ADMINPAGE',
- 'description' => '_MI_WFDOWNLOADS_ADMINPAGEDESC',
- 'formtype' => 'select',
- 'valuetype' => 'int',
- 'options' => array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50),
- 'default' => 10);
-
-$qa = ' (A)';
-$qd = ' (D)';
-$modversion['config'][] = array(
- 'name' => 'filexorder',
- 'title' => '_MI_WFDOWNLOADS_ARTICLESSORT',
- 'description' => '_MI_WFDOWNLOADS_ARTICLESSORTDSC',
- 'formtype' => 'select',
- 'valuetype' => 'text',
- 'options' => array(
- _MI_WFDOWNLOADS_TITLE . $qa => 'title ASC',
- _MI_WFDOWNLOADS_TITLE . $qd => 'title DESC',
- _MI_WFDOWNLOADS_SUBMITTED2 . $qa => 'published ASC' ,
- _MI_WFDOWNLOADS_SUBMITTED2 . $qd => 'published DESC',
- _MI_WFDOWNLOADS_RATING . $qa => 'rating ASC',
- _MI_WFDOWNLOADS_RATING . $qd => 'rating DESC',
- _MI_WFDOWNLOADS_POPULARITY . $qa => 'hits ASC',
- _MI_WFDOWNLOADS_POPULARITY . $qd => 'hits DESC'),
- 'default' => 'title ASC');
-
-$modversion['config'][] = array(
- 'name' => 'copyright',
- 'title' => '_MI_WFDOWNLOADS_COPYRIGHT',
- 'description' => '_MI_WFDOWNLOADS_COPYRIGHTDSC',
- 'formtype' => 'yesno',
- 'valuetype' => 'int',
- 'default' => true);
-
/* // Not completed yet
$modversion['config'][] = array(
'name' => 'mirrorimage',
|