Commit 0116c8ce authored by disappearer's avatar disappearer

Merging the changes from the beta test. Almost ready now!


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/trunk@2467 735d13b6-9817-0410-8766-e36946ffe9aa
parent 3eacf344
15.05.2006 Michael Scharkow <michael@underused.org>
* Finished ratings, with changes from public beta
* ATTN: Please remove reference to my server in common class icon
function (although it should never occur on typo3.org
* Fixed a lot of small bugs
22.03.2006 Michael Scharkow <michael@underused.org>
* Fixed small issues (locallang, docstrings, variable names)
* Added stylesheet file and icons in res/ (copy to fileadmin, please!)
......
......@@ -2,21 +2,22 @@
########################################################################
# Extension Manager/Repository config file for ext: "ter_fe"
#
# Auto generated 06-05-2006 19:17
#
#
# Auto generated 17-05-2006 11:44
#
# Manual updates:
# Only the data in the array - anything else is removed by next write
# Only the data in the array - anything else is removed by next write.
# "version" and "dependencies" must not be touched!
########################################################################
$EM_CONF[$_EXTKEY] = Array (
$EM_CONF[$_EXTKEY] = array(
'title' => 'TER Frontend',
'description' => 'Frontend for the TYPO3 Extension Repository',
'category' => 'fe',
'author' => 'Robert Lemke',
'author_email' => 'robert@typo3.org',
'shy' => '',
'dependencies' => 'cms,lang,captcha',
'dependencies' => '',
'conflicts' => '',
'priority' => '',
'module' => '',
......@@ -28,9 +29,11 @@ $EM_CONF[$_EXTKEY] = Array (
'clearCacheOnLoad' => 0,
'lockType' => '',
'author_company' => 'The TYPO3 Association',
'version' => '0.0.0', // Don't modify this! Managed automatically during upload to repository.
'_md5_values_when_last_written' => 'a:93:{s:31:".#class.tx_terfe_common.php.1.2";s:4:"0014";s:25:".locallang_common.xml.swp";s:4:"00cd";s:8:".project";s:4:"e45a";s:9:"ChangeLog";s:4:"3a0d";s:25:"class.tx_terfe_common.php";s:4:"a458";s:21:"ext_conf_template.txt";s:4:"0902";s:12:"ext_icon.gif";s:4:"1cd6";s:17:"ext_localconf.php";s:4:"1725";s:14:"ext_tables.php";s:4:"4414";s:14:"ext_tables.sql";s:4:"53c8";s:24:"ext_typoscript_setup.txt";s:4:"35fc";s:30:"flexform_ds_pluginmode_pi1.xml";s:4:"ec1e";s:30:"flexform_ds_pluginmode_pi2.xml";s:4:"79a4";s:13:"locallang.xml";s:4:"01d3";s:20:"locallang_common.xml";s:4:"06dc";s:16:"locallang_db.xml";s:4:"1438";s:11:"CVS/Entries";s:4:"496a";s:14:"CVS/Repository";s:4:"02e7";s:8:"CVS/Root";s:4:"78ff";s:33:"pi1/.#class.tx_terfe_pi1.php.1.16";s:4:"afc5";s:32:"pi1/.#class.tx_terfe_pi1.php.1.7";s:4:"d9f6";s:23:"pi1/.#locallang.xml.1.4";s:4:"e2e3";s:14:"pi1/ce_wiz.gif";s:4:"02b6";s:26:"pi1/class.tx_terfe_pi1.php";s:4:"072a";s:30:"pi1/class.tx_terfe_pi1.php.bak";s:4:"d9f6";s:30:"pi1/class.tx_terfe_pi1.php.old";s:4:"fc72";s:34:"pi1/class.tx_terfe_pi1_wizicon.php";s:4:"458c";s:30:"pi1/class.tx_terfe_ratings.php";s:4:"75be";s:25:"pi1/clean_with_index.diff";s:4:"247a";s:13:"pi1/clear.gif";s:4:"cc11";s:17:"pi1/locallang.xml";s:4:"a8d7";s:25:"pi1/pi1_cleanup_only.diff";s:4:"f7e8";s:15:"pi1/CVS/Entries";s:4:"df0e";s:18:"pi1/CVS/Repository";s:4:"2ab0";s:12:"pi1/CVS/Root";s:4:"78ff";s:14:"pi2/ce_wiz.gif";s:4:"02b6";s:26:"pi2/class.tx_terfe_pi2.php";s:4:"359c";s:34:"pi2/class.tx_terfe_pi2_wizicon.php";s:4:"b97e";s:13:"pi2/clear.gif";s:4:"cc11";s:17:"pi2/locallang.xml";s:4:"1f65";s:15:"pi2/CVS/Entries";s:4:"e6f1";s:18:"pi2/CVS/Repository";s:4:"f18b";s:12:"pi2/CVS/Root";s:4:"78ff";s:19:"res/.ter_fe.css.swp";s:4:"4baf";s:22:"res/changepassword.gif";s:4:"8be0";s:20:"res/comparefiles.gif";s:4:"4e40";s:14:"res/delete.gif";s:4:"46fc";s:13:"res/error.gif";s:4:"2611";s:16:"res/greenled.gif";s:4:"48a7";s:15:"res/greyled.gif";s:4:"3bd8";s:12:"res/info.gif";s:4:"d67e";s:14:"res/redled.gif";s:4:"c9cc";s:19:"res/state_alpha.gif";s:4:"f971";s:18:"res/state_beta.gif";s:4:"81f5";s:26:"res/state_experimental.gif";s:4:"1698";s:16:"res/state_na.gif";s:4:"fb15";s:22:"res/state_obsolete.gif";s:4:"6cd7";s:20:"res/state_stable.gif";s:4:"59f7";s:18:"res/state_test.gif";s:4:"f92e";s:14:"res/ter_fe.css";s:4:"c972";s:19:"res/transferkey.gif";s:4:"ba35";s:15:"res/warning.gif";s:4:"3330";s:17:"res/yellowled.gif";s:4:"d927";s:15:"res/CVS/Entries";s:4:"555a";s:18:"res/CVS/Repository";s:4:"8e57";s:12:"res/CVS/Root";s:4:"78ff";s:25:"res/icons/state_alpha.gif";s:4:"f971";s:24:"res/icons/state_beta.gif";s:4:"81f5";s:33:"res/icons/state_beta_reviewed.gif";s:4:"1ead";s:32:"res/icons/state_experimental.gif";s:4:"1698";s:26:"res/icons/state_stable.gif";s:4:"59f7";s:35:"res/icons/state_stable_reviewed.gif";s:4:"8fea";s:21:"res/icons/CVS/Entries";s:4:"2975";s:24:"res/icons/CVS/Repository";s:4:"c367";s:18:"res/icons/CVS/Root";s:4:"78ff";s:25:"res/icons/CVS/CVS/Entries";s:4:"57b8";s:28:"res/icons/CVS/CVS/Repository";s:4:"6f8e";s:22:"res/icons/CVS/CVS/Root";s:4:"78ff";s:14:"doc/manual.sxw";s:4:"fe2d";s:15:"doc/CVS/Entries";s:4:"57b8";s:18:"doc/CVS/Repository";s:4:"ebcc";s:12:"doc/CVS/Root";s:4:"78ff";s:14:"pi3/ce_wiz.gif";s:4:"02b6";s:26:"pi3/class.tx_terfe_pi3.php";s:4:"acc3";s:34:"pi3/class.tx_terfe_pi3_wizicon.php";s:4:"bf4f";s:13:"pi3/clear.gif";s:4:"cc11";s:17:"pi3/locallang.xml";s:4:"9a33";s:15:"pi3/CVS/Entries";s:4:"c056";s:18:"pi3/CVS/Repository";s:4:"81c9";s:12:"pi3/CVS/Root";s:4:"78ff";s:19:"pi3/CVS/CVS/Entries";s:4:"57b8";s:22:"pi3/CVS/CVS/Repository";s:4:"4c80";s:16:"pi3/CVS/CVS/Root";s:4:"78ff";}',
'version' => '0.0.0',
'_md5_values_when_last_written' => 'a:79:{s:8:".project";s:4:"e45a";s:9:"ChangeLog";s:4:"3a0d";s:25:"class.tx_terfe_common.php";s:4:"6bc5";s:21:"ext_conf_template.txt";s:4:"0902";s:12:"ext_icon.gif";s:4:"1cd6";s:17:"ext_localconf.php";s:4:"1725";s:14:"ext_tables.php";s:4:"4414";s:14:"ext_tables.sql";s:4:"7a35";s:24:"ext_typoscript_setup.txt";s:4:"35fc";s:30:"flexform_ds_pluginmode_pi1.xml";s:4:"ec1e";s:30:"flexform_ds_pluginmode_pi2.xml";s:4:"79a4";s:13:"locallang.xml";s:4:"01d3";s:20:"locallang_common.xml";s:4:"e7e8";s:16:"locallang_db.xml";s:4:"1438";s:11:"CVS/Entries";s:4:"c5d0";s:15:"CVS/Entries.Log";s:4:"f7d3";s:14:"CVS/Repository";s:4:"02e7";s:8:"CVS/Root";s:4:"f73b";s:14:"doc/manual.sxw";s:4:"fe2d";s:15:"doc/CVS/Entries";s:4:"cc9e";s:18:"doc/CVS/Repository";s:4:"ebcc";s:12:"doc/CVS/Root";s:4:"f73b";s:14:"pi1/ce_wiz.gif";s:4:"02b6";s:26:"pi1/class.tx_terfe_pi1.php";s:4:"7570";s:34:"pi1/class.tx_terfe_pi1_wizicon.php";s:4:"458c";s:30:"pi1/class.tx_terfe_ratings.php";s:4:"d86f";s:13:"pi1/clear.gif";s:4:"cc11";s:17:"pi1/locallang.xml";s:4:"4062";s:15:"pi1/CVS/Entries";s:4:"3b95";s:18:"pi1/CVS/Repository";s:4:"2ab0";s:12:"pi1/CVS/Root";s:4:"f73b";s:14:"pi2/ce_wiz.gif";s:4:"02b6";s:26:"pi2/class.tx_terfe_pi2.php";s:4:"359c";s:34:"pi2/class.tx_terfe_pi2_wizicon.php";s:4:"b97e";s:13:"pi2/clear.gif";s:4:"cc11";s:17:"pi2/locallang.xml";s:4:"1f65";s:15:"pi2/CVS/Entries";s:4:"5ff9";s:18:"pi2/CVS/Repository";s:4:"f18b";s:12:"pi2/CVS/Root";s:4:"f73b";s:14:"pi3/ce_wiz.gif";s:4:"02b6";s:26:"pi3/class.tx_terfe_pi3.php";s:4:"acc3";s:34:"pi3/class.tx_terfe_pi3_wizicon.php";s:4:"bf4f";s:13:"pi3/clear.gif";s:4:"cc11";s:17:"pi3/locallang.xml";s:4:"9a33";s:15:"pi3/CVS/Entries";s:4:"4e28";s:18:"pi3/CVS/Repository";s:4:"81c9";s:12:"pi3/CVS/Root";s:4:"f73b";s:22:"res/changepassword.gif";s:4:"8be0";s:20:"res/comparefiles.gif";s:4:"4e40";s:14:"res/delete.gif";s:4:"46fc";s:13:"res/error.gif";s:4:"2611";s:16:"res/greenled.gif";s:4:"48a7";s:15:"res/greyled.gif";s:4:"3bd8";s:12:"res/info.gif";s:4:"d67e";s:14:"res/redled.gif";s:4:"c9cc";s:19:"res/state_alpha.gif";s:4:"f971";s:18:"res/state_beta.gif";s:4:"81f5";s:26:"res/state_experimental.gif";s:4:"1698";s:16:"res/state_na.gif";s:4:"fb15";s:22:"res/state_obsolete.gif";s:4:"6cd7";s:20:"res/state_stable.gif";s:4:"59f7";s:18:"res/state_test.gif";s:4:"f92e";s:14:"res/ter_fe.css";s:4:"c972";s:19:"res/transferkey.gif";s:4:"ba35";s:15:"res/warning.gif";s:4:"3330";s:17:"res/yellowled.gif";s:4:"d927";s:15:"res/CVS/Entries";s:4:"383f";s:19:"res/CVS/Entries.Log";s:4:"130b";s:18:"res/CVS/Repository";s:4:"8e57";s:12:"res/CVS/Root";s:4:"f73b";s:25:"res/icons/state_alpha.gif";s:4:"f971";s:24:"res/icons/state_beta.gif";s:4:"81f5";s:33:"res/icons/state_beta_reviewed.gif";s:4:"1ead";s:32:"res/icons/state_experimental.gif";s:4:"1698";s:26:"res/icons/state_stable.gif";s:4:"59f7";s:35:"res/icons/state_stable_reviewed.gif";s:4:"8fea";s:21:"res/icons/CVS/Entries";s:4:"e662";s:24:"res/icons/CVS/Repository";s:4:"c367";s:18:"res/icons/CVS/Root";s:4:"f73b";}',
'constraints' => 'Array',
'suggests' => array(
),
);
?>
\ No newline at end of file
......@@ -113,9 +113,8 @@ CREATE TABLE tx_terfe_reviewemails (
PRIMARY KEY (uid)
);
#
# Table structure for ratings
#
CREATE TABLE tx_terfe_ratings (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
tstamp int(11) NOT NULL default '0',
......@@ -126,16 +125,13 @@ CREATE TABLE tx_terfe_ratings (
docrating int(1) NOT NULL default '0',
coderating int(1) NOT NULL default '0',
overall float NOT NULL default '0',
notes text NOT NULL,
notes text NOT NULL,
PRIMARY KEY (uid)
);
#
# Table structure for cached ratings
#
CREATE TABLE tx_terfe_ratingscache (
extensionkey varchar(255) NOT NULL default '',
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
extensionkey varchar(255) NOT NULL default '',
version varchar(255) NOT NULL default '',
rating float NOT NULL default '0',
votes int(11) NOT NULL default '0',
......
......@@ -64,7 +64,7 @@
</meta>
<data type="array">
<languageKey index="default" type="array">
<label index="general_dateandtimeformat">%d.%m.%Y - %H:%M</label>
<label index="general_dateandtimeformat">%d.%m.%Y</label>
<label index="general_back">Back</label>
<label index="general_view">View</label>
<label index="general_terdocnotinstalled">Documentation extension not installed</label>
......
......@@ -332,12 +332,12 @@ class tx_terfe_pi1 extends tslib_pibase {
$tableRows = array ();
$res = $TYPO3_DB->exec_SELECTquery (
'*',
'tx_terfe_extensions',
$TYPO3_DB->searchQuery (explode (' ', $this->piVars['sword']), array('extensionkey','title','description'), 'tx_terfe_extensions').' AND '.$this->standardSelectionClause.($this->tooFewReviewsMode ? 'AND reviewstate >= 0' : 'AND reviewstate > 0'),
'e.*,rating,votes',
'tx_terfe_extensions as e LEFT JOIN tx_terfe_ratingscache USING(extensionkey,version)',
$TYPO3_DB->searchQuery (explode (' ', $this->piVars['sword']), array('extensionkey','title','authorname','description'), 'e').' AND '.$this->standardSelectionClause.($this->tooFewReviewsMode ? 'AND reviewstate >= 0' : 'AND reviewstate > 0'),
'',
'extensiondownloadcounter DESC,lastuploaddate DESC',
'0,30'
''
);
if ($res) {
$alreadyRenderedExtensionKeys = array();
......@@ -460,6 +460,7 @@ class tx_terfe_pi1 extends tslib_pibase {
);
if (!$res) return 'DB error while looking up extension '.htmlspecialchars($extensionKey).'!';
$extensionRecord = $TYPO3_DB->sql_fetch_assoc ($res);
if (!$extensionRecord || $extensionRecord['reviewstate']== -1) return 'Extension '.htmlspecialchars($extensionKey).' not found!';
// Set the magic "reg1" so we can clear the cache for this manual if a new one is uploaded:
......@@ -490,6 +491,8 @@ class tx_terfe_pi1 extends tslib_pibase {
case 'rating':
$rating = new tx_terfe_ratings($extensionRecord,&$this);
$rating->process_rating();
$subContent = '<ul class="extensions">'.$this->renderListView_detailledExtensionRecord ($extensionRecord);
$subContent .= $rating->renderSingleView_rating();
break;
......@@ -497,7 +500,7 @@ class tx_terfe_pi1 extends tslib_pibase {
default:
$subContent .= $this->renderSingleView_extensionDetails ($extensionRecord);
}
$subConten .= '</ul>';
$subContent .= '</ul>';
......@@ -684,7 +687,7 @@ class tx_terfe_pi1 extends tslib_pibase {
</dd>
<dd class="right">
<dl><dt>'.$this->commonObj->getLL('extension_lastuploaddate','',1).'</dt><dd class="updated">'.$extensionRecord['lastuploaddate'].'</dd></dl>
<dl class="changelog"><dt>'.$this->commonObj->getLL('extension_uploadcomment','',1).'</dt><dd class="changelog">'.$extensionRecord['uploadcomment'].'</dd></dl>
<dl class="changelog"><dt>'.$this->commonObj->getLL('extension_uploadcomment','',1).'</dt><dd class="changelog">'.$extensionRecord['uploadcomment'].'<br/><br/><br/></dd></dl>
</dd>
<dd class="bottom">
<dl class="description"><dt>'.$this->commonObj->getLL('extension_description','',1).'</dt><dd>'.$extensionRecord['description'].'</dd></dl>
......
This diff is collapsed.
......@@ -55,7 +55,7 @@
<label index="views_reviewed">Reviewed</label>
<label index="views_unreviewed">Unreviewed</label>
<label index="listview_new_introduction">These extensions have been added or updated during the last %s days:</label>
<label index="listview_popular_introduction">This list shows the %s most popular extensions measured by all time download numbers.</label>
<label index="listview_popular_introduction">This list shows the 10 most popular extensions measured by all time download numbers.</label>
<label index="listview_fulllist_introduction">This is a list of all available extensions:</label>
<label index="listview_unsupported_introduction">The following list contains all extensions which have been uploaded recently and have not been reviewed yet or will never be imported into the official repository.</label>
<label index="listview_unsupported_introduction_warning">WARNING! These extensions have not been checked for security issues. It is not recommended using any of them in a production enviroment!</label>
......@@ -94,8 +94,11 @@
<label index="extensioninfo_ratings_docrating">Documentation</label>
<label index="extensioninfo_ratings_coderating">Code/Compatibility</label>
<label index="extensioninfo_ratings_overallrating">Overall</label>
<label index="extensioninfo_ratings_func_short">Func</label>
<label index="extensioninfo_ratings_doc_short">Docs</label>
<label index="extensioninfo_ratings_code_short">Code</label>
<label index="extensioninfo_ratings_notes">Notes</label>
<label index="extensioninfo_ratings_addnotes">Add notes for your rating</label>
<label index="extensioninfo_ratings_addnotes">Add notes for your rating (max. 240 chars)</label>
<label index="extensioninfo_ratings_ratethis">Rate this extension</label>
<label index="extensioninfo_ratings_errornotsaved">Could not save rating!</label>
</languageKey>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment