Extension:YotpoReviews

From MediaWiki.org
Jump to navigation Jump to search
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.
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
YotpoReviews

Release status:Extension status stable

YotpoReviews.png
ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Adds the <yotporeviews> tag that inserts the Yotpo reviews system
Author(s)Template:Extension#username Felipe Schenone (Sophivorustalk)
Latest versionTemplate:Extension#version 0.4 (2018-09-01)
MediaWikiTemplate:Extension#mediawiki 1.25+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 3.0 or later
Download
ExampleTemplate:Extension#example [1]
ParametersTemplate:Extension#parameters
$wgYotpoAppKey
TagsTemplate:Extension#tags
<yotporeviews>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit
SkinAfterContentManual:Hooks/SkinAfterContent

Translate the YotpoReviews extension if it is available at translatewiki.net

Check usage and version matrix.

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

Installation[edit]

  • Download and place the file(s) in a directory called YotpoReviews in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'YotpoReviews' );
    $wgYotpoAppKey = 'your-yotpo-app-key';
    
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

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>