GemsDisplay [2.0.0] - patch for smaller display

Display what gems jewelcrafters can make

Moderator: titan99

GemsDisplay [2.0.0] - patch for smaller display

Postby tuigii » Fri Sep 26, 2008 8:49 pm

After a couple of months, and many crafters - the list gets very wide.

I saw that the MadeBy addon uses a function to make the list smaller, and longer.

Open GemsDisplay/guild/index.php
Find :
Code: Select all
    $craftSeperator false;
    while(
$row $roster->db->fetch($result))
    {
        if (
$craftSeperator == true)
        
$craftName.= ", ";
        
$craftName.=$row['name'];
        
$craftSeperator true;
    } 

replace it with :
Code: Select all
   $break_counter = 0;
   $craftSeperator = false;
   while($row = $roster->db->fetch($result))
   {
      if ($break_counter == 3)
      {
         $craftName .= '<br />';
         $break_counter = 0;
         $craftSeperator = false;
      }
      $break_counter++;
      if ($craftSeperator == true)
         $craftName.= ", ";
      $craftName.=$row['name'];
      $craftSeperator = true;
   
   }


Result : http://www.papy-team.fr/roster/index.ph ... play&a=g:1
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Return to Gems Display

Who is online

Users browsing this forum: No registered users and 1 guest

cron