Language fixes for Reputation List AddOn by Zanoroy

List faction reputation for members

Moderator: ds

Language fixes for Reputation List AddOn by Zanoroy

Postby daddelkopp » Tue Apr 24, 2007 9:35 pm

Hi, I don't know if this is the right place :mrgreen:

I replace in MembersRep.php from Line 81-121 to make this addon work with all roster languages:

Code: Select all
      if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['exalted'])
      {
        $colorstyle = 'style=\'color : #007662;\'';
                  $imgbar = 'addons/reputation/img/barbit_b.gif';   
      }
      else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['revered'])
      {
                    $colorstyle = 'style=\'color : #227501;\'';
                    $imgbar = 'addons/reputation/img/barbit_g.gif';
      }
                else if($row['standing'] == $wordings[$roster_conf['roster_lang']]['honored'])
                {
                    $colorstyle = 'style=\'color : #547301;\'';
                    $imgbar = 'addons/reputation/img/barbit_h.gif';
                }
      else if($row['standing'] == $wordings[$roster_conf['roster_lang']]['friendly'])
      {
          $colorstyle = 'style=\'color : #787701;\'';
          $imgbar = 'addons/reputation/img/barbit_f.gif';
      }
                else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['neutral'])
                {
                    $colorstyle = 'style=\'color : #A48618;\'';
                            $imgbar = 'addons/reputation/img/barbit_y.gif';
                }
                else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['unfriendly'])
                {
                    $colorstyle = 'style=\'color : orange;\'';
                            $imgbar = 'addons/reputation/img/barbit_o.gif';
                }
                else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['hostile'])
                {
                    $colorstyle = 'style=\'color : #974414;\'';
                            $img = 'addons/reputation/img/barbit_host.gif';
                }
                else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['hated'])
                {
                    $colorstyle = 'style=\'color : #FF3333;\'';
                    $img = 'addons/reputation/img/barbit_r.gif';
                }


The gifs used by this code missed in the zipfile
Download Page

Link to my roster: Link

greetings
daddelkopp
Last edited by daddelkopp on Tue Apr 24, 2007 9:36 pm, edited 1 time in total.
User avatar
daddelkopp
WR.net Journeyman
WR.net Journeyman
 
Posts: 99
Joined: Wed Jan 03, 2007 10:22 am

Language fixes for Reputation List AddOn by Zanoroy

Postby aniodon » Tue Apr 24, 2007 10:56 pm

Where are the .gif files please ? the link goes to the .zip without any .gif ;p =)

Thanks=)
aniodon
WR.net Journeyman
WR.net Journeyman
 
Posts: 108
Joined: Mon Dec 18, 2006 8:09 pm

Language fixes for Reputation List AddOn by Zanoroy

Postby daddelkopp » Wed Apr 25, 2007 10:42 pm

I hope the author fix his zipfile :)

As long I use a gif (Blue) from Roster for all bars:

Code: Select all
$img = 'img/barbit.gif';
User avatar
daddelkopp
WR.net Journeyman
WR.net Journeyman
 
Posts: 99
Joined: Wed Jan 03, 2007 10:22 am

Re: Language fixes for Reputation List AddOn by Zanoroy

Postby Subxero » Thu Apr 26, 2007 3:10 am

daddelkopp

better use these code

Code: Select all
      if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['exalted'])
      {
        $colorstyle = 'style=\'color : #007662;\'';
      $imgbar = 'addons/reputation/img/barbit_b.gif';   
      }
      else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['revered'])
      {
      $colorstyle = 'style=\'color : #227501;\'';
      $imgbar = 'addons/reputation/img/barbit_g.gif';
      }
    else if($row['standing'] == $wordings[$roster_conf['roster_lang']]['honored'])
    {
      $colorstyle = 'style=\'color : #547301;\'';
      $imgbar = 'addons/reputation/img/barbit_h.gif';
    }
      else if($row['standing'] == $wordings[$roster_conf['roster_lang']]['friendly'])
      {
        $colorstyle = 'style=\'color : #787701;\'';
        $imgbar = 'addons/reputation/img/barbit_f.gif';
      }
    else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['neutral'])
    {
      $colorstyle = 'style=\'color : #A48618;\'';
        $imgbar = 'addons/reputation/img/barbit_y.gif';
    }
    else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['unfriendly'])
    {
       $colorstyle = 'style=\'color : orange;\'';
         $imgbar = 'addons/reputation/img/barbit_o.gif';
    }
    else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['hostile'])
    {
       $colorstyle = 'style=\'color : #974414;\'';
         $imgbar = 'addons/reputation/img/barbit_host.gif';
    }
    else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['hated'])
    {
       $colorstyle = 'style=\'color : #FF3333;\'';
       $imgbar = 'addons/reputation/img/barbit_r.gif';
    }


take a look on last hostile and hated image bars from your code is not "$img" its "$imgbar"
Attachments
reputation_img.zip
Descompress on reputation addon folder.
(1.7 KiB) Downloaded 403 times
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

Language fixes for Reputation List AddOn by Zanoroy

Postby Zanoroy » Thu Apr 26, 2007 10:43 am

I have added all the above and the Images to the ZIP file now. so hopefully everything works fine.

Thanks for the debugging/work:
daddelkopp
Subxero
User avatar
Zanoroy
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Sun Dec 17, 2006 5:09 pm
Location: Victoria, Australia

Language fixes for Reputation List AddOn by Zanoroy

Postby _GzD » Mon Jun 11, 2007 9:30 pm

The display doesn't work where the faction name is containing a quote (').
Last edited by _GzD on Mon Jun 11, 2007 9:50 pm, edited 1 time in total.
Website of the guild "Les collecteurs" on Sinstralis (EU) : http://lescollecteurs.keo.in
User avatar
_GzD
WR.net Apprentice
WR.net Apprentice
 
Posts: 1
Joined: Mon Jun 11, 2007 8:57 pm


Return to Reputation

Who is online

Users browsing this forum: No registered users and 0 guests

cron