Commit d5b8627d authored by robert's avatar robert

- Removed the reviewed / unreviewed list view for extensions from the menu

	- The extension version number is not shown in the URL anymore
	- Obsolete extensions are now marked as such (again)


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/trunk@12041 735d13b6-9817-0410-8766-e36946ffe9aa
parent c76dfbdf
Version 1.0.5 16.09.2008 Robert Lemke <robert@typo3.org>
* Checked in the most recent version from typo3.org into Forge
- Removed the reviewed / unreviewed list view for extensions from the menu
- The extension version number is not shown in the URL anymore
- Obsolete extensions are now marked as such (again)
Version 1.0.4 20.03.2007 Robert Lemke <robert@typo3.org>
+ Improved the caching of extension files for the ter_fe details view: Files are now only unpacked again if the md5 sum of the T3X file (not the extensions.xml.gz) changed.
+ Changed the tx_terfe / contentcache file structure: now the files of each extension reside in their own subdirectory.
......@@ -9,7 +15,7 @@ Version 1.0.3 16.12.2006 Robert Lemke <robert@typo3.org>
Version 1.0.2 15.12.2006 Robert Lemke <robert@typo3.org>
+ Added feature "Render Problems" link which explains why documents were not rendered. (See extension ter_doc_renderproblems)
Version 1.0.1, 14.12.2006 Robert Lemke <robert@typo3.org>
# Fixed download counter display
......@@ -38,7 +44,7 @@ Version 1.0.1, 14.12.2006 Robert Lemke <robert@typo3.org>
* info and detail view merged
* stdSelection for all queries (no obsolete, testing and documentation)
* added simple upload comment changelog in single view
12.03.2006 Michael Scharkow <michael@underused.org>
* refactoring of pi1, compact lists use a common function now
* added state and last update in compact lists
......@@ -50,9 +56,9 @@ Version 1.0.1, 14.12.2006 Robert Lemke <robert@typo3.org>
+ File downloads are now passed through a function which sends correct HTTP headers and nicer file names.
17.01.2006 Robert Lemke <robert@typo3.org>
~ Changed a lot ...
~ Changed a lot ...
~ Converted locallang to XML
+ Extracted many functions from tx_terfe_pi1 and created a new common library "tx_terfe_common"
+ Extracted many functions from tx_terfe_pi1 and created a new common library "tx_terfe_common"
09.01.2006 Robert Lemke <robert@typo3.org>
~ Commit of merge between Michael's and my modifications
......@@ -60,7 +66,7 @@ Version 1.0.1, 14.12.2006 Robert Lemke <robert@typo3.org>
09.01.2006 Michael Scharkow <michael@underused.org>
* Update for pi3: Delete reviews, better list views, etc.
* TODO: E-Mail-Notification and review-editing (delete+new works!)
07.01.2006 Michael Scharkow <michael@underused.org>
* Initial upload of rating framework (in p1)
......
......@@ -255,7 +255,7 @@ class tx_terfe_pi1 extends tslib_pibase {
$res = $TYPO3_DB->exec_SELECTquery (
'DISTINCT extensionkey',
'tx_terfe_extensions',
$this->standardSelectionClause,
'',
'',
'extensiondownloadcounter DESC',
'60'
......@@ -273,7 +273,7 @@ class tx_terfe_pi1 extends tslib_pibase {
);
if (!$res2) return 'Extension '.htmlspecialchars($extensionKeyRow['extensionkey']).' not found!';
$extensionRecord = $TYPO3_DB->sql_fetch_assoc ($res2);
if ($extensionRecord['category'] != 'doc') {
if ($extensionRecord['category'] != 'doc' && $extensionRecord['state'] != 'obsolete') {
$tableRows[] = $this->renderListView_detailledExtensionRecord ($extensionRecord);
$counter ++;
}
......@@ -331,7 +331,7 @@ class tx_terfe_pi1 extends tslib_pibase {
$res = $TYPO3_DB->exec_SELECTquery (
'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,
$TYPO3_DB->searchQuery (explode (' ', $this->piVars['sword']), array('extensionkey','title','authorname','description'), 'e'),
'',
'extensiondownloadcounter DESC,lastuploaddate DESC',
''
......@@ -429,10 +429,14 @@ class tx_terfe_pi1 extends tslib_pibase {
* @param string $version: Version number of the extension or an empty string for displaying the most recent version
* @return string HTML output
*/
protected function renderSingleView_extension ($extensionKey, $version = '') {
protected function renderSingleView_extension ($extensionKey, $version = 'current') {
global $TYPO3_DB, $TSFE;
if (!strlen($version) || $version == 'current') $version = $this->commonObj->db_getLatestVersionNumberOfExtension ($extensionKey, $this->tooFewReviewsMode);
if (!strlen($version) || $version == 'current') {
$version = $this->commonObj->db_getLatestVersionNumberOfExtension ($extensionKey, $this->tooFewReviewsMode);
} else {
$this->no_cache=1;
}
// Fetch the extension record:
$res = $TYPO3_DB->exec_SELECTquery (
......@@ -443,7 +447,6 @@ 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:
......@@ -637,12 +640,13 @@ class tx_terfe_pi1 extends tslib_pibase {
if (t3lib_extMgm::isLoaded ('ter_doc')) {
$terDocAPIObj = tx_terdoc_api::getInstance();
$documentationLink = $terDocAPIObj->getDocumentationLink ($extensionRecord['extensionkey'], $extensionRecord['version']);
$documentationLink = $terDocAPIObj->getDocumentationLink ($extensionRecord['extensionkey'], 'current');
} else {
$documentationLink = $this->commonObj->getLL('general_terdocnotinstalled','',1);
}
$extensionRecord = $this->commonObj->db_prepareExtensionRecordForOutput ($extensionRecord);
$extensionRecord['reviewstate_label'] = $extensionRecord['reviewstate_raw'] ? 'reviewed' : 'unreviewed';
$tableRows = '
<li>
<dl class="ext-header">
......@@ -678,7 +682,6 @@ class tx_terfe_pi1 extends tslib_pibase {
</dl>
</li>
';
return $tableRows;
}
......
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