Extension:YotpoReviews

From mediawiki.org
This page is a translated version of the page Extension:YotpoReviews and the translation is 38% complete.
If you are using version 0.3 or earlier of this extensions you are advised to immediately upgrade to the recent version of this extension to mitigate a security vulnerability.
Manuel des extensions MediaWiki
YotpoReviews
État de la version : stable
Implémentation Balise
Description Adds the ‎<yotporeviews> tag that inserts the Yotpo reviews system
Auteur(s) Sophivorusdiscussion
Dernière version 0.4 (2018-09-01)
MediaWiki 1.25+
PHP 5.3+
Modifie la base
de données
Non
Licence Licence publique générale GNU v3.0 ou supérieur
Téléchargement
Exemple [1]
$wgYotpoAppKey
‎<yotporeviews>
Téléchargements trimestriels 1 (Ranked 149th)
Traduire l’extension YotpoReviews sur translatewiki.net si elle y est disponible

The YotpoReviews extension adds a ‎<yotporeviews> tag that allows to insert the Yotpo reviews system to any page.

Installation

  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé YotpoReviews dans votre dossier extensions/.
    Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YotpoReviews
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'YotpoReviews' );
    $wgYotpoAppKey = 'your-yotpo-app-key';
    
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

Utilisation

To insert a Yotpo review system into any page, simply edit the page add the following tag to the wikitext:

<yotporeviews />

You can also modify the width, height and alignment of the reviews by setting the following parameters (showed with their default values):

<yotporeviews width="100%" height="100%" align="center"></yotporeviews>