@Anaxent Couple of questions

Dragonfly integration forum

@Anaxent Couple of questions

Postby IslandStyle » Fri Apr 27, 2007 10:25 pm

Hey Anaxent,
I was wondering if you could upload your copies of your guild stats addon, writ calc addon and as i have been trying to get copies to work with WoWRosterDF, but am having issues with little things showing up incorrectly or not working.

For example on guild stats - i'm missing the class graphics and the progress bar. With the writ calc i just cant get the thing to work properly.

I'm also having the same problem with getting the new reputation addon to show me the progress bars like in the standalone version.

Thanks in advance Anaxent.
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

@Anaxent Couple of questions

Postby Razac » Sat Apr 28, 2007 1:32 am

Heya,

having probs with the color bars??

Try this... The issue is the path to the images. What I did was add the $roster_conf['roster_dir'] in front of the image path. now it all werks

Hope this helps

open membersRep.php Should be Line 81 to 120

Change

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';
     }


to

Code: Select all
if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['exalted'])
      {
        $colorstyle = 'style=\'color : #007662;\'';
      $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_b.gif';   
      }
      else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['revered'])
      {
      $colorstyle = 'style=\'color : #227501;\'';
      $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_g.gif';
      }
    else if($row['standing'] == $wordings[$roster_conf['roster_lang']]['honored'])
    {
        $colorstyle = 'style=\'color : #547301;\'';
        $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_h.gif';
    }
      else if($row['standing'] == $wordings[$roster_conf['roster_lang']]['friendly'])
      {
          $colorstyle = 'style=\'color : #787701;\'';
          $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_f.gif';
      }
     else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['neutral'])
     {
         $colorstyle = 'style=\'color : #A48618;\'';
            $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_y.gif';
     }
     else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['unfriendly'])
     {
         $colorstyle = 'style=\'color : orange;\'';
            $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_o.gif';
     }
     else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['hostile'])
     {
         $colorstyle = 'style=\'color : #974414;\'';
           $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_host.gif';
     }
     else if ($row['standing'] == $wordings[$roster_conf['roster_lang']]['hated'])
     {
         $colorstyle = 'style=\'color : #FF3333;\'';
         $imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_r.gif';
     }
Razac
WR.net Journeyman
WR.net Journeyman
 
Posts: 145
Joined: Thu Jul 27, 2006 6:00 pm

Re: @Anaxent Couple of questions

Postby IslandStyle » Sat Apr 28, 2007 7:25 pm

Thanks Razac, I changed the code and it works in IE, but does not work in firefox for me, not quite sure what is causing that difference.


Edit.. resolved issue of bar not showing in firefox - had to had a height option in to a later line - as its a known issue with firefox.
Last edited by IslandStyle on Sat Apr 28, 2007 8:13 pm, edited 1 time in total.
Image
Image
User avatar
IslandStyle
WR.net Apprentice
WR.net Apprentice
 
Posts: 41
Joined: Tue Jul 11, 2006 8:57 am

@Anaxent Couple of questions

Postby Razac » Sun Apr 29, 2007 5:16 am

you mean the line

$imgbar = $roster_conf['roster_dir'] . '/addons/reputation/img/barbit_r.gif';

has to have the height added to it?
Razac
WR.net Journeyman
WR.net Journeyman
 
Posts: 145
Joined: Thu Jul 27, 2006 6:00 pm

@Anaxent Couple of questions

Postby Razac » Sun Apr 29, 2007 8:35 am

ok found it..

In case anyone else needs this fix for Firefox.

Find
Code: Select all
$rep[$row['standing']] .=('<td class="membersRowRight'. (($striping_counter % 2) +1) .'"' . ' ' . $colorstyle . '>'.'<div style="cursor:default;">'.'<div class="levelbarParent" style="width:100px;">'.'<div class="levelbarChild">' . $row['curr_rep'].' / '.$row['max_rep'].'</div>' .  '</div>' . '<table class="expOutline" border="0" cellpadding="0" cellspacing="0" width="100">' . '<tr>' . '<td style="background-image: url(\'' . $imgbar .'\');" width="'. $percent_exp .'%"><img src="img/pixel.gif" height="14" width="1" alt=""></td>' . '<td width="'.(100 - $percent_exp).'%"></td>' . '</tr>' . '</table>' . '</div></td>');


Replace with

Code: Select all
$rep[$row['standing']] .=('<td class="membersRowRight'. (($striping_counter % 2) +1) .'"' . ' ' . $colorstyle . '>'.'<div style="cursor:default;">'.'<div class="levelbarParent" style="width:100px;">'.'<div class="levelbarChild">' . $row['curr_rep'].' / '.$row['max_rep'].'</div>' .  '</div>' . '<table class="expOutline" border="0" cellpadding="0" cellspacing="0" width="100">' . '<tr>' . '<td style="background-image: url(\'' . $imgbar .'\');" height="14" width="'. $percent_exp .'%"><img src="img/pixel.gif" height="14" width="1" alt=""></td>' . '<td width="'.(100 - $percent_exp).'%"></td>' . '</tr>' . '</table>' . '</div></td>');
Last edited by Razac on Sun Apr 29, 2007 8:36 am, edited 1 time in total.
Razac
WR.net Journeyman
WR.net Journeyman
 
Posts: 145
Joined: Thu Jul 27, 2006 6:00 pm


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 0 guests

cron