[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2008-06-17T08:52:45-07:00 http://integramod.com/forum/feed.php?f=23&t=887 2008-06-17T08:52:45-07:00 2008-06-17T08:52:45-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=33413#p33413 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Tue Jun 17, 2008 8:52 am


]]>
2008-06-17T04:32:52-07:00 2008-06-17T04:32:52-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=33411#p33411 <![CDATA[Re: Roster/Medals Mod?]]> just in case anyone has the same problem:

# #-----[ OPEN ]------------------------------------------ # viewtopic.php  # #-----[ FIND ]------------------------------------------ #    //    // Again this will be handled by the templating    // code at some point    //  # #-----[ BEFORE, ADD ]------------------------------------------ #    // Medal MOD    $medal ='';    $sql = "SELECT m.medal_id, m.medal_name       FROM " . MEDAL_TABLE . " m, " . MEDAL_USER_TABLE . " mu       WHERE mu.user_id = '" . $postrow[$i]['user_id'] . "'       AND m.medal_id = mu.medal_id       ORDER BY m.medal_name";        if(!$result = $db->sql_query($sql))    {       message_die(GENERAL_ERROR, "Error getting medal information", "", __LINE__, __FILE__, $sql);    }      $medal_list = $db->sql_fetchrowset($result);    $medal_count = count($medal_list);      if ( $postrow[$i]['user_id'] == ANONYMOUS )    {       $medal_count = '';    }    else    {       $medal_count = ($medal_count) ? $lang['Medals'] . '] . '</a>)' : $lang['Medals'] . ': ' . $lang['None'];    }


to this From mr DSL's instructions but i modified the link as his was pointing to the base info tab where they originally are
# #-----[ OPEN ]------------------------------------------ # viewtopic.php  # #-----[ FIND ]------------------------------------------ #    //    // Again this will be handled by the templating    // code at some point    //  # #-----[ BEFORE, ADD ]------------------------------------------ #  // Medal MOD$medal ='';$sql = "SELECT m.medal_id, m.medal_nameFROM " . MEDAL_TABLE . " m, " . MEDAL_USER_TABLE . " muWHERE mu.user_id = '" . $postrow[$i]['user_id'] . "'AND m.medal_id = mu.medal_idORDER BY m.medal_name";  if(!$result = $db->sql_query($sql))message_die(GENERAL_ERROR, "Error getting medal information", "", __LINE__, __FILE__, $sql);  $medal_list = $db->sql_fetchrowset($result);$medal_count = count($medal_list);  if ( $postrow[$i]['user_id'] == ANONYMOUS ){$medal_count = '';} else{$medal_count = ($medal_count) ? $lang['Medals'] . ']['user_id'] . "profilcp_medals_shortcut") . '" class="gensmall">' . $medal_count . '</a>' . ' (<a>' . $lang['View_More'] . '</a>)' : $lang['Medals'] . ': ' . $lang['None'];}

Statistics: Posted Author: anth0ny — Tue Jun 17, 2008 4:32 am


]]>
2008-03-27T10:09:15-07:00 2008-03-27T10:09:15-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32398#p32398 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Thu Mar 27, 2008 10:09 am


]]>
2008-03-27T09:53:14-07:00 2008-03-27T09:53:14-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32396#p32396 <![CDATA[Re: Roster/Medals Mod?]]>
Hopefully if I cant get to it one will for sure.

Statistics: Posted Author: DjPorkchop — Thu Mar 27, 2008 9:53 am


]]>
2008-03-24T10:48:27-07:00 2008-03-24T10:48:27-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32348#p32348 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Mon Mar 24, 2008 10:48 am


]]>
2008-03-17T23:22:40-07:00 2008-03-17T23:22:40-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32238#p32238 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Mon Mar 17, 2008 11:22 pm


]]>
2008-03-17T15:38:46-07:00 2008-03-17T15:38:46-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32235#p32235 <![CDATA[Re: Roster/Medals Mod?]]>
And thatnks for the link. Im gonna go and grab the file and check it out. <img>

Statistics: Posted Author: DjPorkchop — Mon Mar 17, 2008 3:38 pm


]]>
2008-03-17T13:48:10-07:00 2008-03-17T13:48:10-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32233#p32233 <![CDATA[Re: Roster/Medals Mod?]]>
http://www.phpbb.com/community/viewtopic.php?t=148362

i noticed the edits you have to make are still in this topic <img>

Statistics: Posted Author: krillmeed — Mon Mar 17, 2008 1:48 pm


]]>
2008-03-17T13:16:32-07:00 2008-03-17T13:16:32-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32232#p32232 <![CDATA[Re: Roster/Medals Mod?]]>
Ill have to see if I can get a copy of the medals mod and see how close it is to awards icons mod.

Statistics: Posted Author: DjPorkchop — Mon Mar 17, 2008 1:16 pm


]]>
2008-03-16T23:07:50-07:00 2008-03-16T23:07:50-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32229#p32229 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Sun Mar 16, 2008 11:07 pm


]]>
2008-03-16T14:49:59-07:00 2008-03-16T14:49:59-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32227#p32227 <![CDATA[Re: Roster/Medals Mod?]]>
If I can get a copy of the one MR DSL did for PCP im sure I could get it to work. May take a bit, but Im sure I can pull it off. If I do, I will post it in the PCP forum.

Unless someone has allready done it and will share <img>

Statistics: Posted Author: DjPorkchop — Sun Mar 16, 2008 2:49 pm


]]>
2008-03-16T11:14:47-07:00 2008-03-16T11:14:47-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=32225#p32225 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Sun Mar 16, 2008 11:14 am


]]>
2008-02-07T08:37:37-07:00 2008-02-07T08:37:37-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=31198#p31198 <![CDATA[Roster/Medals Mod?]]> Statistics: Posted Author: krillmeed — Thu Feb 07, 2008 8:37 am


]]>
2007-02-14T12:42:00-07:00 2007-02-14T12:42:00-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=21945#p21945 <![CDATA[Re: Roster/Medals Mod?]]>
function pcp_output_medal_count_viewtopic($field_name, $view_userdata, $map_name='') {    global $db, $lang, $phpEx;      $res = $img = $txt = '';      // Medal MOD    $medal ='';    $sql = "SELECT m.medal_id, m.medal_name      FROM " . MEDAL_TABLE . " m, " . MEDAL_USER_TABLE . " mu      WHERE mu.user_id = '" . $view_userdata['user_id'] . "'      AND m.medal_id = mu.medal_id      ORDER BY m.medal_name";      if(!$result = $db->sql_query($sql))    {      message_die(GENERAL_ERROR, "Error getting medal information", "", __LINE__, __FILE__, $sql);    }      $medal_list = $db->sql_fetchrowset($result);    $medal_count = count($medal_list);      if ( $view_userdata['user_id'] == ANONYMOUS )    {      $medal_count = '';    }    else    {        $medal_count = ($medal_count) ? $lang['Medals'] . ': <a>' . $medal_count . '</a>' . ' (<a>' . $lang['View_More'] . '</a>)' : $lang['Medals'] . ': ' . $lang['None'];    }    $txt = $medal_count;    $res = pcp_output_format($field_name, $txt, $img, $map_name);    return $res; }  function pcp_output_medal_list_viewtopic($field_name, $view_userdata, $map_name='') {    global $db, $lang, $phpEx, $board_config, $template;      $res = $img = $txt = '';      //Medal MOD    if ( $board_config['allow_medal_display'] )    {       $order = ( $board_config['medal_display_order'] ) ? "RAND()" : "m.medal_name";             $sql = "SELECT m.medal_id, m.medal_name, m.medal_image          FROM " . MEDAL_TABLE . " m, " . MEDAL_USER_TABLE . " mu          WHERE mu.user_id = '" . $view_userdata['user_id'] . "'          AND m.medal_id = mu.medal_id          ORDER BY " . $order;           if ($result = $db->sql_query($sql))       {          $rowset = array();          while ($row = $db->sql_fetchrow($result))          {             $rowset[$row['medal_image']]['medal_name'] = $row['medal_name'];             if ($rowset[$row['medal_image']]['medal_name'] == $row['medal_name'])             $rowset[$row['medal_image']]['medal_count'] += 1;          }            // Check Medal config in ACP          $medal_rows = $board_config['medal_display_row'];          $medal_cols = $board_config['medal_display_col'];          $medal_width = ( $board_config['medal_display_width'] ) ? 'width="'.$board_config['medal_display_width'].'"' : '';          $medal_height = ( $board_config['medal_display_height'] ) ? 'height="'.$board_config['medal_display_height'].'"' : '';              if (!empty($rowset))          {             $split_row = $medal_cols - 1;               $s_colspan = 0;             $row = 0;             $col = 0;          $template->set_filenames(array('medal_topic' => 'medal_topic_body.tpl')); $template->assign_block_vars('medal', array());             while (list($medal_image, $medal) = @each($rowset))             {                if (!$col)                {                   $template->assign_block_vars('medal.medal_row', array());                }                  $template->assign_block_vars('medal.medal_row.medal_col', array(                   'MEDAL_IMAGE' => $phpbb_root_path . $medal_image,                   'MEDAL_WIDTH' => $medal_width,                   'MEDAL_HEIGHT' => $medal_height,                   'MEDAL_NAME' => $medal['medal_name'],                   'MEDAL_COUNT' => '('. $lang['Medal_amount'] . $medal['medal_count']. ')')                );                  $s_colspan = max($s_colspan, $col + 1);                  if ($col == $split_row)                {                   if ($row == $medal_rows - 1)                   {                      break;                   }                   $col = 0;                   $row++;                }                else                {                   $col++;                }             }          $db->sql_freeresult($result);          ob_start();          $template->pparse('medal_topic');          $txt = ob_get_contents();          ob_end_clean();            $template->_tpldata['medal.'] = '';          $template->_tpldata['medal.medal_row.'] = '';          $template->_tpldata['medal.medal_row.medal_col.'] = '';          }         }    }        $res = pcp_output_format($field_name, $txt, $img, $map_name);    return $res; }  


In def_usermaps.php:
Find viewtopic.leftwherever you want to put the medals and the count put  'medal_count' => array(             'txt'          => true,             'style'        => '%s',             'dsp_func'     => 'pcp_medal_count_viewtopic',          ),          'medal_list' => array(             'txt'          => true,             'style'        => '%s',             'dsp_func'     => 'pcp_medal_list_viewtopic',          ),  


Attached are the files as well for making its own tab for medal display on the public part of the profile. I found it gets too cluttered if you put the medals on the main page. I have members with 8-10 medals a piece so listing them on the main profile would get cluttered.

[url=http]Medals Files[/url]

Also in language/lang_english/lang_extend_pcp_addons.php add the following two entries
$lang['profilcp_medals_shortcut'] = 'Medal Case'; $lang['profilcp_medals_pagetitle'] = 'Medals';


I think those are the edits I have
Edited Feb 26th at 11:19 AM EST

Statistics: Posted Author: Pogue Moran — Wed Feb 14, 2007 12:42 pm


]]>
2007-02-07T11:13:36-07:00 2007-02-07T11:13:36-07:00 http://integramod.com/forum/viewtopic.php?t=887&p=21583#p21583 <![CDATA[Re: Roster/Medals Mod?]]>
http://img387.imageshack.us/img387/6246 ... kkhro0.jpg

Statistics: Posted Author: dan0042 — Wed Feb 07, 2007 11:13 am


]]>