Support Center

Knowledgebase
View categorized listing of all common frequently asked questions.
Video Tutorials
Create a Movie & TV Show review website.
Customize the jReviews themes.
Review user profiles with the Everywhere addon.
Forum
Community forum
Submit a Ticket
Use your client area email to access the ticket system.
Downloads
Guides, modules and more...
 
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 07, 2009, 06:17:30 PM
22793 Posts in 5220 Topics by 2975 Members
Latest Member: tonio
News: Use your client area email when you sign up to the forum so we can identify you as a trial or licensed user. Otherwise we may not answer your questions.
 
jReviews Support Forum  |  jReviews 1.x  |  Tips & tricks  |  Display different images for different languages « previous next »
Pages: [1]
Author Topic: Display different images for different languages  (Read 1613 times)
Lionel
Newbie
*
Offline Offline

Posts: 18


« on: July 17, 2006, 08:55:48 PM »

First you need to define the alt tags in languages.php.
At the end of english.php add

Quote
/* 1.0 */   define("_JR_NEW",            "New");
/* 1.0 */   define("_JR_HOT",            "Hot");
/* 1.0 */   define("_JR_FEATURED",            "Featured");

in jreviews.functions.php

find
Quote
   function getStandardButtons($row, $settings) {
   // New

below it add

   global $mosConfig_lang;


then 13-14 lines below, replace with

Quote
if ($new || $hot || $featured) {
         $this->code = ($new ? '<img alt="'._JR_NEW.'" border="" src="'.JTMPL_JREVIEWS.'/images/'.$mosConfig_lang.'_new.gif"> ' : '');
         $this->code .= ($hot ? '<img alt="'._JR_HOT.'" border="0" src="'.JTMPL_JREVIEWS.'/images/'.$mosConfig_lang.'_hot.gif">' : '');
         $this->code .= ($featured ? '<img alt="'._JR_FEATURED.'" border="0" src="'.JTMPL_JREVIEWS.'/images/'.$mosConfig_lang.'_featured.gif">' : '');

I changed my extensions to transparent gif because of IE problem with png not being transparent

Rename the 3 images hot.png new.png and featured.png by adding the prefix in front of them, e.g. english_hot.png

do the same for every language.

Now, you can display proper image depending of your language.
Logged
Faeton
Newbie
*
Offline Offline

Posts: 19


« Reply #1 on: July 19, 2006, 02:51:55 AM »

Great! Nice trick  Wink
Logged
Pages: [1]
« previous next »
    Jump to: