Download the PHP package thelia/comment-module without Composer

On this page you can find all versions of the php package thelia/comment-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package comment-module

Module Comment

The module Comment allows customer to add comments on different elements of the website : product, content, ...

A comment is composed of a :

The message can be moderated by a administrator before being displayed on the website (recommended).

Only registered and logged in customer can post comment on the website. You can also only authorized customers to post comment on products that they have bought. Customers will receive an email after 15 days (by default) to encourage them to post comment.

If the comment has been accepted the customer can edit or delete it.

This module is compatible with Thelia version 2.1 or greater.

Installation

Manually

Composer

Add it in your main thelia composer.json file

Usage

In back-office, the configuration page allows you to configure the module.

In the tools menu, a new page displays comments and let you manage them.

In the front office, an integration is provided for the default template. It uses hooks, so it's activated by default.

You can override these smarty templates in the current template. You have to put your templates files in this directory (with default template) : template/frontOffice/default/modules/Comment/

Loop

The module provides a new loop : comment

Input arguments

Argument Description
id the comment id
customer the customer id
ref the reference key. eg : product
ref_id the reference id. (the product id)
status the status of the comment : 0 = pending, 1 = accepted
verified the customer has bought the product
locale the locale of the comment : fr_FR
load_ref load or not the reference object. default = 0
ref_locale locale of the reference object fields. default: the request locale

Output arguments

Variable Description
$ID the comment id
$USERNAME the username
$EMAIL the email
$CUSTOMER_ID the customer id
$REF the reference key
$REF_ID the reference id
$TITLE the title
$CONTENT the content
$RATING the rating
$STATUS the status : : 0 = pending, 1 = accepted
$VERIFIED 0 : not verified / not applicable, 1 = the customer has bought the product
$ABUSE an abuse counter.

how to get the rating of a product

Ratings are stored in the meta_data table. to retrieve the rating, you can use the smarty function meta like this :


All versions of comment-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thelia/comment-module contains the following files

Loading the files please wait ....