Removing component type identifier from modules and reviews

From JReviews Documentation
Jump to: navigation, search

To help differentiate between different types of reviews in sites that use the Everywhere-addon for multiple extensions JReviews automatically appends a component type identifier at the end of review titles in modules and reviews. For social extensions like JomSocial and Community Builder it uses "member", for real estate extensions "property", etc.

If you wish to omit the identifier or change it first you need to find the everywhere integration file for the extension in /jreviews/models/everywhere. Then find the equivalent of the line below:

$this->tag = __t("JOMSOCIAL_TAG",true);  // Used in MyReviews page to differentiate from other component reviews

If you want to omit the identifier comment the line by adding a double slash "//" in front of it. If you want to change it to something else edit it like this:

$this->tag = __t("My Own Identifier",true);  // Used in MyReviews page to differentiate from other component reviews

A different approach is to find the extension tag, JOMSOCIAL_TAG in this example, in the language file and change the msgstr to blank like this:


#: com_jreviews\jreviews\models/everywhere/everywhere_com_community_access.php:143 
msgid "JOMSOCIAL_TAG" 
msgstr ""


Or change it to something else:


#: com_jreviews\jreviews\models/everywhere/everywhere_com_community_access.php:143 
msgid "JOMSOCIAL_TAG" 
msgstr "My Own Identifier"