Community Add-Ons
Review Approval System
for osCommerce Online Merchant v2.2
This is a system to have an admin approve reviews before they are displayed publically. It includes necessary hacks in catalog section and additiona functionality to admin/catalog/review section. For more information, read the readme.txt file.
slight error in stu's new instructions, missed out:
define('FILENAME_PRODUCT_REVIEW_EMAIL', 'admin/reviews.php');
in filenames.php
this is a small change to the readme.txt if you are installing onto an already modified shop
This is the full package, all effort and coding goes to the original owner, I have just changed a few things and fixed a few errors.
Version 1.3 includes Steels new installation instructions and all original files.
Changes from 1.2
(1) Added the admin email notification and improved coding, basically the admin will receive an email with a link to approve or reject the review.
(2) In original instructions there was an instruction missing that caused the customer not to know if they have submitted the review or not. Basically changed one line, now when the customer submits a review, they are taken to a page to say thank you, your review has been sent for approval. This was the contrib owners originally idea, but a code change was missing and no redirect occurred.
All sorted, fully tested and working.
This is the full package, all effort and coding goes to the original owner, I have just changed a few things and fixed a few errors.
Version 1.3 includes Steels new installation instructions and all original files.
Changes from 1.2
(1) Added the admin email notification and improved coding, basically the admin will receive an email with a link to approve or reject the review.
(2) In original instructions there was an instruction missing that caused the customer not to know if they have submitted the review or not. Basically changed one line, now when the customer submits a review, they are taken to a page to say thank you, your review has been sent for approval. This was the contrib owners originally idea, but a code change was missing and no redirect occurred.
All sorted, fully tested and working.
Just a quick code change.
In your admin panel, just like categories/products, where you have the green and red active lights side by side and are clickable, this change includes this.
Please install the mod first before applying this change:
[CODE]
Find in Admin/Reviews Line 236 (Approx)
<td class="dataTableContent" align="center"><?php echo $reviews['approved']==1?tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10):tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); ?></td>
CHANGE TO:
<td class="dataTableContent" align="center"><?php echo $reviews['approved']==1? '<a href="' . tep_href_link(FILENAME_REVIEWS, tep_get_all_get_params(array('action', 'info')) . 'action=disapprove_review&rID=' . $reviews['reviews_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . '</a> <a href="' . tep_href_link(FILENAME_REVIEWS, tep_get_all_get_params(array('action', 'info')) . 'action=disapprove_review&rID=' . $reviews['reviews_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED, 10, 10) . '</a>':'<a href="' . tep_href_link(FILENAME_REVIEWS, tep_get_all_get_params(array('action', 'info')) . 'action=approve_review&rID=' . $reviews['reviews_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . '</a> <a href="' . tep_href_link(FILENAME_REVIEWS, tep_get_all_get_params(array('action', 'info')) . 'action=approve_review&rID=' . $reviews['reviews_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10) . '</a>' ?></td>
No files included in download.
Support Forum can be found here..
http://forums.oscommerce.com/index.php?showtopic=217885
**NOTHING INSIDE.**
The store owner will receive an email when a new review is awaiting approval. Just need to add some simple code in one file.
This is an enhacement to Review Approval System v1.2b.
SteelShadow
steelshadow@geocities.com
Version 1.2b
I have not made any changes from V1.2 other then the installation instructions.
I have completely rewritten the install directions, to include instructions
for installation of an already modified store. Now I know that there was an update
to this file by Karl Schmidt that stated "I created diff instructions so you can
add to already modified shopping carts." but I could not understand any of his directions.
They just didn't make much sense to me. It's possible that English is not his first
language. Either way, although I do thank him for the effort, I have completely re-written
the instructions from scratch. All credit goes to the original author and those others
that have also helped out with this contribution.
I created diff instructions so you can add to already modified shopping carts.
This file contains all of the updates below in one package.
There is a bug that will count approved and unapproved reviews when displaying the number of reviews for a given product on the product_info.php page.
Currently if there is one unapproved review the product_info page will show there is one, but when you click the reviews button, it says there are no reviews (because it is unapproved).
The bug fix will take care of that, only counting the approved reviews so the number it shows matches the number viewable.
This mod applies to Review Approval System 1.2 (MS2).
You should first download the 1 NOV 2003 version 1.2 update by Lonnie Coffman, then get the 8 MAY 2004 update by 420. Once those are installed, follow these instructions.
"Review Submitted Redirect" for Review Approval System v1.2
Author: 420
With this small mod, your users will be redirected to a page that tells them that they're review has been submitted for approval. With the original mod, they simply got a blank page.
This is an update to the Review Approval System to make it compatible with MS2.
This mod to the Review Approval System contribution will fix the problem with the background color being shown incorrectly when no review is present for a given product.
In the previous version, the background color for non-reviewed items was shown as the color reported as "infoBox" in the CSS. The fix just changes the "infoBox" to "infoBoxContents" in line 44 of catalog/includes/boxes/reviews.php.
I think that the standard green and red buttons will be smarter than the text YES or NO. I used the default ones that is used in /admin/categories.php
This is an update to Tuncay Goncuoglu's code. Removed the "and c.status = '1'" from the queries.
---
This is a system to have an admin approve reviews before they are displayed publically. It includes necessary hacks in catalog section and additiona functionality to admin/catalog/review section. For more information, read the readme.txt file.
This is a system to have an admin approve reviews before they are displayed publically. It includes necessary hacks in catalog section and additiona functionality to admin/catalog/review section. For more information, read the readme.txt file.
