Extension:YotpoReviews

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
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 Schenonetalk
Latest versionTemplate:Extension#version 0.3 (2015-03-25)
MediaWikiTemplate:Extension#mediawiki 1.21+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GPL
Download
ExampleTemplate:Extension#example http://www.study-in-bali.com/Gili_Island_and_Lombok_Speedboat_Tickets
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:
    require_once "$IP/extensions/YotpoReviews/YotpoReviews.php";
    $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>