Attached Files |
reviewhelpful_core.patch [^] (6,182 bytes) 2011-09-27 06:53
[Show Content]
Index: install/install_schema.sql
===================================================================
--- install/install_schema.sql (revision 14476)
+++ install/install_schema.sql (working copy)
@@ -782,6 +782,8 @@
`Status` tinyint(4) NOT NULL DEFAULT '2',
TextFormat int(11) NOT NULL DEFAULT '0',
Module varchar(255) NOT NULL DEFAULT '',
+ HelpfulCount int(11) NOT NULL,
+ NotHelpfulCount int(11) NOT NULL,
PRIMARY KEY (ReviewId),
KEY CreatedOn (CreatedOn),
KEY ItemId (ItemId),
Index: install/upgrades.sql
===================================================================
--- install/upgrades.sql (revision 14487)
+++ install/upgrades.sql (working copy)
@@ -2039,4 +2039,9 @@
UPDATE Phrase
SET l<%PRIMARY_LANGUAGE%>_Translation = 'User name length (min - max)'
-WHERE PhraseKey = 'LA_TEXT_MIN_USERNAME' AND l<%PRIMARY_LANGUAGE%>_Translation = 'Minimum user name length';
\ No newline at end of file
+WHERE PhraseKey = 'LA_TEXT_MIN_USERNAME' AND l<%PRIMARY_LANGUAGE%>_Translation = 'Minimum user name length';
+
+# ===== v 5.1.3 =====
+ALTER TABLE ItemReview
+ ADD HelpfulCount INT NOT NULL ,
+ ADD NotHelpfulCount INT NOT NULL;
\ No newline at end of file
Index: kernel/db/cat_event_handler.php
===================================================================
--- kernel/db/cat_event_handler.php (revision 14476)
+++ kernel/db/cat_event_handler.php (working copy)
@@ -33,6 +33,7 @@
'OnCancelAction' => Array ('self' => true),
'OnItemBuild' => Array ('self' => true),
'OnMakeVote' => Array ('self' => true),
+ 'OnReviewHelpful' => Array ('self' => true),
);
$this->permMapping = array_merge($this->permMapping, $permissions);
@@ -947,13 +948,13 @@
// linking existing images for item with virtual fields
$image_helper =& $this->Application->recallObject('ImageHelper');
/* @var $image_helper ImageHelper */
-
+
$image_helper->LoadItemImages($object);
-
+
// linking existing files for item with virtual fields
$file_helper =& $this->Application->recallObject('FileHelper');
/* @var $file_helper FileHelper */
-
+
$file_helper->LoadItemFiles($object);
}
@@ -2609,7 +2610,7 @@
if ( !$this->Application->isAdmin ) {
$file_helper =& $this->Application->recallObject('FileHelper');
/* @var $file_helper FileHelper */
-
+
$file_helper->createItemFiles($event->Prefix, true); // create image fields
$file_helper->createItemFiles($event->Prefix, false); // create file fields
}
@@ -2738,4 +2739,39 @@
$this->Application->setUnitOption($event->MasterEvent->Prefix, 'Clones', $clones);
}
}
+
+ /**
+ * Marks review as useful
+ *
+ * @param kEvent $event
+ */
+ function OnReviewHelpful(&$event)
+ {
+ $review_id = (int)$this->Application->GetVar('review_id');
+
+ if ( !$review_id ) {
+ return ;
+ }
+
+ $spam_helper =& $this->Application->recallObject('SpamHelper');
+ /* @var $spam_helper SpamHelper */
+
+ $spam_helper->InitHelper($review_id, 'ReviewHelpful', strtotime('+ 1 month') - strtotime());
+
+ if ( $spam_helper->InSpamControl() ) {
+ return ;
+ }
+
+ $field = (int)$this->Application->GetVar('helpful') ? 'HelpfulCount' : 'NotHelpfulCount';
+
+ $sql = 'UPDATE ' . $this->Application->getUnitOption('rev', 'TableName') . '
+ SET ' . $field . ' = ' . $field . ' + 1
+ WHERE ' . $this->Application->getUnitOption('rev', 'IDField') . ' = ' . $review_id;
+ $this->Conn->Query($sql);
+
+ if ( $this->Conn->getAffectedRows() ) {
+ // db was changed -> review with such ID exists
+ $spam_helper->AddToSpamControl();
+ }
+ }
}
\ No newline at end of file
Index: units/reviews/reviews_config.php
===================================================================
--- units/reviews/reviews_config.php (revision 14476)
+++ units/reviews/reviews_config.php (working copy)
@@ -162,6 +162,8 @@
'not_null' => 1, 'default' => 0,
),
'Module' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''),
+ 'HelpfulCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
+ 'NotHelpfulCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0)
),
'VirtualFields' => Array (
@@ -189,6 +191,8 @@
'CreatedOn' => Array ( 'title' => 'la_col_CreatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ),
'Status' => Array ( 'title' => 'la_col_Status', 'filter_block' => 'grid_options_filter', 'width' => 80, ),
'Rating' => Array ( 'title' => 'la_col_Rating', 'filter_block' => 'grid_options_filter', 'width' => 80, ),
+ 'HelpfulCount' => Array ('title' => 'la_col_HelpfulCount', 'filter_block' => 'grid_range_filter'),
+ 'NotHelpfulCount' => Array ('title' => 'la_col_NotHelpfulCount', 'filter_block' => 'grid_range_filter'),
),
),
@@ -206,6 +210,8 @@
'CreatedOn' => Array ( 'title' => 'la_col_CreatedOn', 'filter_block' => 'grid_date_range_filter', 'width' => 145, ),
'Status' => Array ( 'title' => 'la_col_Status', 'filter_block' => 'grid_options_filter', 'width' => 80, ),
'Rating' => Array ( 'title' => 'la_col_Rating', 'filter_block' => 'grid_options_filter', 'width' => 80, ),
+ 'HelpfulCount' => Array ('title' => 'la_col_HelpfulCount', 'filter_block' => 'grid_range_filter'),
+ 'NotHelpfulCount' => Array ('title' => 'la_col_NotHelpfulCount', 'filter_block' => 'grid_range_filter'),
),
),
),
Index: units/reviews/reviews_tag_processor.php
===================================================================
--- units/reviews/reviews_tag_processor.php (revision 14476)
+++ units/reviews/reviews_tag_processor.php (working copy)
@@ -43,6 +43,18 @@
return $this->Application->HREF($edit_template,'', $url_params);
}
+ function HelpfulLink($params)
+ {
+ $object =& $this->getObject($params);
+ /* @var $object kDBItem */
+
+ $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix');
+ $params['events[' . $parent_prefix . ']'] = 'OnReviewHelpful';
+ $params['review_id'] = $object->GetID();
+
+ return $this->Application->ProcessParsedTag($parent_prefix, 'ItemLink', $params);
+ }
+
/**
* Get's reuested field value
*
reviewhelpful_modules.patch [^] (5,265 bytes) 2011-09-27 06:53
[Show Content]
Index: in-bulletin/admin_templates/topics/review_edit.tpl
===================================================================
--- in-bulletin/admin_templates/topics/review_edit.tpl (revision 14476)
+++ in-bulletin/admin_templates/topics/review_edit.tpl (working copy)
@@ -60,6 +60,8 @@
<inp2:m_RenderElement name="inp_label" prefix="bb-rev" field="ReviewId" title="la_fld_Id"/>
<inp2:m_RenderElement name="inp_edit_user" prefix="bb-rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="bb-rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="bb-rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="bb-rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
<inp2:m_RenderElement name="subsection" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="bb-rev" field="Status" title="la_fld_Status"/>
Index: in-commerce/admin_templates/products/review_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/review_edit.tpl (revision 14476)
+++ in-commerce/admin_templates/products/review_edit.tpl (working copy)
@@ -60,6 +60,9 @@
<inp2:m_RenderElement name="inp_label" prefix="rev" field="ReviewId" title="la_fld_Id"/>
<inp2:m_RenderElement name="inp_edit_user" prefix="rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
+
<inp2:m_RenderElement name="subsection" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="rev" field="Status" title="la_fld_Status"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="rev" field="Priority" title="la_fld_Priority" size="3" class="text"/>
Index: in-link/admin_templates/links/review_edit.tpl
===================================================================
--- in-link/admin_templates/links/review_edit.tpl (revision 14476)
+++ in-link/admin_templates/links/review_edit.tpl (working copy)
@@ -23,12 +23,12 @@
go_to_id('l-rev', '<inp2:l-rev_PrevId/>');
}
));
-
+
a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
go_to_id('l-rev', '<inp2:l-rev_NextId/>');
}
));
-
+
a_toolbar.Render();
<inp2:m_if check="l-rev_IsSingle" >
@@ -61,6 +61,9 @@
<inp2:m_RenderElement name="inp_edit_user" prefix="l-rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="l-rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
<inp2:m_RenderElement name="inp_edit_options" prefix="l-rev" field="Rating" title="la_fld_Rating" class="text"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="l-rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="l-rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
+
<inp2:m_RenderElement name="subsection" prefix="l-rev" fields="Status,Priority,CreatedOn" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="l-rev" field="Status" title="la_fld_Status"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="l-rev" field="Priority" title="la_fld_Priority" size="3" class="text"/>
Index: in-news/admin_templates/articles/review_edit.tpl
===================================================================
--- in-news/admin_templates/articles/review_edit.tpl (revision 14476)
+++ in-news/admin_templates/articles/review_edit.tpl (working copy)
@@ -60,6 +60,10 @@
<inp2:m_RenderElement name="inp_label" prefix="n-rev" field="ReviewId" title="la_fld_Id"/>
<inp2:m_RenderElement name="inp_edit_user" prefix="n-rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="n-rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="UsabilityLevel" title="la_fld_UsabilityLevel" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
+
<inp2:m_RenderElement name="subsection" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="n-rev" field="Status" title="la_fld_Status"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="Priority" title="la_fld_Priority" size="3" class="text"/>
reviewhelpful_themes.patch [^] (933 bytes) 2011-09-27 06:53
[Show Content]
Index: platform/elements/content_boxes.elm.tpl
===================================================================
--- platform/elements/content_boxes.elm.tpl (revision 14476)
+++ platform/elements/content_boxes.elm.tpl (working copy)
@@ -135,6 +135,10 @@
<strong><inp2:m_Phrase name="lu_fld_ReviewBy"/>:</strong> <inp2:Field name="ReviewedBy"/> [<inp2:Field name="CreatedOn" format="_regional_DateFormat"/>]<br />
<strong><inp2:m_Phrase name="lu_fld_ReviewText"/>:</strong> <inp2:Field name="ReviewText"/>
<br /><br />
+
+ Was this review helpful to you?
+ <a href="<inp2:HelpfulLink helpful='1'/>" style="color: green; font-weight: bold;"><inp2:m_Phrase name='lu_Yes'/></a> (<inp2:Field name="HelpfulCount"/>)
+ <a href="<inp2:HelpfulLink helpful='0'/>" style="color: red; font-weight: bold;"><inp2:m_Phrase name='lu_No'/></a> (<inp2:Field name="NotHelpfulCount"/>)
</td>
</tr>
</inp2:m_DefineElement>
reviewhelpful_core_520.patch [^] (5,018 bytes) 2011-10-06 10:54
[Show Content]
Index: install/install_schema.sql
===================================================================
--- install/install_schema.sql (revision 14635)
+++ install/install_schema.sql (working copy)
@@ -800,6 +800,8 @@
`Status` tinyint(4) NOT NULL DEFAULT '2',
TextFormat int(11) NOT NULL DEFAULT '0',
Module varchar(255) NOT NULL DEFAULT '',
+ HelpfulCount int(11) NOT NULL,
+ NotHelpfulCount int(11) NOT NULL,
PRIMARY KEY (ReviewId),
KEY CreatedOn (CreatedOn),
KEY ItemId (ItemId),
Index: install/upgrades.sql
===================================================================
--- install/upgrades.sql (revision 14636)
+++ install/upgrades.sql (working copy)
@@ -2142,3 +2142,7 @@
ALTER TABLE Skins ADD DisplaySiteNameInHeader TINYINT(1) NOT NULL DEFAULT '1';
DELETE FROM PersistantSessionData WHERE VariableName LIKE 'formsubs_Sort%' AND VariableValue = 'FormFieldId';
+
+ALTER TABLE ItemReview
+ ADD HelpfulCount INT NOT NULL ,
+ ADD NotHelpfulCount INT NOT NULL;
Index: kernel/db/cat_event_handler.php
===================================================================
--- kernel/db/cat_event_handler.php (revision 14644)
+++ kernel/db/cat_event_handler.php (working copy)
@@ -33,6 +33,7 @@
'OnCancelAction' => Array ('self' => true),
'OnItemBuild' => Array ('self' => true),
'OnMakeVote' => Array ('self' => true),
+ 'OnReviewHelpful' => Array ('self' => true),
);
$this->permMapping = array_merge($this->permMapping, $permissions);
@@ -2793,6 +2794,43 @@
}
/**
+ * Marks review as useful
+ *
+ * @param kEvent $event
+ * @return void
+ * @access protected
+ */
+ protected function OnReviewHelpful(&$event)
+ {
+ $review_id = (int)$this->Application->GetVar('review_id');
+
+ if ( !$review_id ) {
+ return;
+ }
+
+ $spam_helper =& $this->Application->recallObject('SpamHelper');
+ /* @var $spam_helper SpamHelper */
+
+ $spam_helper->InitHelper($review_id, 'ReviewHelpful', strtotime('+1 month') - strtotime('now'));
+
+ if ( $spam_helper->InSpamControl() ) {
+ return;
+ }
+
+ $field = (int)$this->Application->GetVar('helpful') ? 'HelpfulCount' : 'NotHelpfulCount';
+
+ $sql = 'UPDATE ' . $this->Application->getUnitOption('rev', 'TableName') . '
+ SET ' . $field . ' = ' . $field . ' + 1
+ WHERE ' . $this->Application->getUnitOption('rev', 'IDField') . ' = ' . $review_id;
+ $this->Conn->Query($sql);
+
+ if ( $this->Conn->getAffectedRows() ) {
+ // db was changed -> review with such ID exists
+ $spam_helper->AddToSpamControl();
+ }
+ }
+
+ /**
* [HOOK] Allows to add cloned subitem to given prefix
*
* @param kEvent $event
Index: units/reviews/reviews_config.php
===================================================================
--- units/reviews/reviews_config.php (revision 14590)
+++ units/reviews/reviews_config.php (working copy)
@@ -162,6 +162,8 @@
'not_null' => 1, 'default' => 0,
),
'Module' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''),
+ 'HelpfulCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0),
+ 'NotHelpfulCount' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0)
),
'VirtualFields' => Array (
@@ -189,6 +191,8 @@
'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ),
'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ),
'Rating' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ),
+ 'HelpfulCount' => Array ('title' => 'la_col_HelpfulCount', 'filter_block' => 'grid_range_filter'),
+ 'NotHelpfulCount' => Array ('title' => 'la_col_NotHelpfulCount', 'filter_block' => 'grid_range_filter'),
),
),
@@ -206,6 +210,8 @@
'CreatedOn' => Array ('filter_block' => 'grid_date_range_filter', 'width' => 145, ),
'Status' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ),
'Rating' => Array ('filter_block' => 'grid_options_filter', 'width' => 80, ),
+ 'HelpfulCount' => Array ('title' => 'la_col_HelpfulCount', 'filter_block' => 'grid_range_filter'),
+ 'NotHelpfulCount' => Array ('title' => 'la_col_NotHelpfulCount', 'filter_block' => 'grid_range_filter'),
),
),
),
Index: units/reviews/reviews_tag_processor.php
===================================================================
--- units/reviews/reviews_tag_processor.php (revision 14628)
+++ units/reviews/reviews_tag_processor.php (working copy)
@@ -43,6 +43,18 @@
return $this->Application->HREF($edit_template,'', $url_params);
}
+ function HelpfulLink($params)
+ {
+ $object =& $this->getObject($params);
+ /* @var $object kDBItem */
+
+ $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix');
+ $params['events[' . $parent_prefix . ']'] = 'OnReviewHelpful';
+ $params['review_id'] = $object->GetID();
+
+ return $this->Application->ProcessParsedTag($parent_prefix, 'ItemLink', $params);
+ }
+
/**
* Get's reuested field value
*
reviewhelpful_modules_520.patch [^] (5,127 bytes) 2011-10-06 10:54
[Show Content]
Index: in-bulletin/admin_templates/topics/review_edit.tpl
===================================================================
--- in-bulletin/admin_templates/topics/review_edit.tpl (revision 14590)
+++ in-bulletin/admin_templates/topics/review_edit.tpl (working copy)
@@ -60,6 +60,8 @@
<inp2:m_RenderElement name="inp_label" prefix="bb-rev" field="ReviewId" title="la_fld_Id"/>
<inp2:m_RenderElement name="inp_edit_user" prefix="bb-rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="bb-rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="bb-rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="bb-rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
<inp2:m_RenderElement name="subsection" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="bb-rev" field="Status" title="la_fld_Status"/>
Index: in-commerce/admin_templates/products/review_edit.tpl
===================================================================
--- in-commerce/admin_templates/products/review_edit.tpl (revision 14640)
+++ in-commerce/admin_templates/products/review_edit.tpl (working copy)
@@ -60,6 +60,9 @@
<inp2:m_RenderElement name="inp_label" prefix="rev" field="ReviewId" title="la_fld_Id"/>
<inp2:m_RenderElement name="inp_edit_user" prefix="rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
+
<inp2:m_RenderElement name="subsection" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="rev" field="Status" title="la_fld_Status"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="rev" field="Priority" title="la_fld_Priority" size="3" class="text"/>
Index: in-link/admin_templates/links/review_edit.tpl
===================================================================
--- in-link/admin_templates/links/review_edit.tpl (revision 14590)
+++ in-link/admin_templates/links/review_edit.tpl (working copy)
@@ -23,12 +23,12 @@
go_to_id('l-rev', '<inp2:l-rev_PrevId/>');
}
));
-
+
a_toolbar.AddButton( new ToolBarButton('next', '<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>', function() {
go_to_id('l-rev', '<inp2:l-rev_NextId/>');
}
));
-
+
a_toolbar.Render();
<inp2:m_if check="l-rev_IsSingle" >
@@ -61,6 +61,9 @@
<inp2:m_RenderElement name="inp_edit_user" prefix="l-rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="l-rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
<inp2:m_RenderElement name="inp_edit_options" prefix="l-rev" field="Rating" title="la_fld_Rating" class="text"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="l-rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="l-rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
+
<inp2:m_RenderElement name="subsection" prefix="l-rev" fields="Status,Priority,CreatedOn" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="l-rev" field="Status" title="la_fld_Status"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="l-rev" field="Priority" title="la_fld_Priority" size="3" class="text"/>
Index: in-news/admin_templates/articles/review_edit.tpl
===================================================================
--- in-news/admin_templates/articles/review_edit.tpl (revision 14590)
+++ in-news/admin_templates/articles/review_edit.tpl (working copy)
@@ -60,6 +60,9 @@
<inp2:m_RenderElement name="inp_label" prefix="n-rev" field="ReviewId" title="la_fld_Id"/>
<inp2:m_RenderElement name="inp_edit_user" prefix="n-rev" field="CreatedById" title="la_fld_CreatedById" class="text"/>
<inp2:m_RenderElement name="inp_edit_textarea" prefix="n-rev" field="ReviewText" title="la_fld_ReviewText" cols="70" rows="8"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="HelpfulCount" title="la_fld_HelpfulCount" style="width: 50px;"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="NotHelpfulCount" title="la_fld_NotHelpfulCount" style="width: 50px;"/>
+
<inp2:m_RenderElement name="subsection" title="la_Text_General"/>
<inp2:m_RenderElement name="inp_edit_radio" prefix="n-rev" field="Status" title="la_fld_Status"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="n-rev" field="Priority" title="la_fld_Priority" size="3" class="text"/>
missing_admin_phrases_fix.patch [^] (1,501 bytes) 2011-11-23 08:31
[Show Content]
Index: english.lang
===================================================================
--- english.lang (revision 14789)
+++ english.lang (working copy)
@@ -414,6 +414,7 @@
<PHRASE Label="la_fld_GroupId" Module="Core" Type="1">SUQ=</PHRASE>
<PHRASE Label="la_fld_GroupName" Module="Core" Type="1" Column="R3JvdXAgTmFtZQ==">R3JvdXAgTmFtZQ==</PHRASE>
<PHRASE Label="la_fld_Height" Module="Core" Type="1">SGVpZ2h0</PHRASE>
+ <PHRASE Label="la_fld_HelpfulCount" Module="Core" Type="1">UmV2aWV3IFdhcyBIZWxwZnVs</PHRASE>
<PHRASE Label="la_fld_HintTranslation" Module="Core" Type="1" Hint="QXNzb2NpYXRlZCBmaWVsZCB1c2FnZSB0cmFuc2xhdGlvbg==">SGludCBQaHJhc2U=</PHRASE>
<PHRASE Label="la_fld_Hits" Module="Core" Type="1" Column="SGl0cw==">SGl0cw==</PHRASE>
<PHRASE Label="la_fld_Hot" Module="Core" Type="1">SG90</PHRASE>
@@ -491,6 +492,7 @@
<PHRASE Label="la_fld_New" Module="Core" Type="1">TmV3</PHRASE>
<PHRASE Label="la_fld_NextRunOn" Module="Core" Type="1" Column="TmV4dCBSdW4gT24=">TmV4dCBSdW4gT24=</PHRASE>
<PHRASE Label="la_fld_Notes" Module="Core" Type="1">Tm90ZXM=</PHRASE>
+ <PHRASE Label="la_fld_NotHelpfulCount" Module="Core" Type="1">UmV2aWV3IFdhc24ndCBIZWxwZnVs</PHRASE>
<PHRASE Label="la_fld_OccuredOn" Module="Core" Type="1" Column="T2NjdXJlZCBPbg==">T2NjdXJlZCBPbg==</PHRASE>
<PHRASE Label="la_fld_Options" Module="Core" Type="1">T3B0aW9ucw==</PHRASE>
<PHRASE Label="la_fld_OptionTitle" Module="Core" Type="1">T3B0aW9uIFRpdGxl</PHRASE>
|