Page 1 of 1

Roster/Medals Mod?

PostPosted: Tue May 23, 2006 7:16 pm
Author: Falconenator
I saw this mod awhile back and i liked it
its made for integramod just dont know what its called
[url=http]Site Here[/url]

does anyone know where to find that mod that would thats exactly that
cause i really like that idea and would love it for my site

PostPosted: Tue May 23, 2006 9:43 pm
Author: Adrian Rea
MrDSL made the mod for 132.x http://integrmod.com/home/viewtopic.php?t=1746 but I am not sure if it was updated for 140.

A

Re: Roster/Medals Mod?

PostPosted: Wed May 24, 2006 9:38 am
Author: Falconenator
i got the medal mod to install but it looks nothing like the one i showed
some of the code i couldnt input because its a different type of code
here what i get

http://www.alteranancients.com/medals.php

it also seems to draw the info on which group they go into by there forum rank

PostPosted: Wed May 24, 2006 11:19 am
Author: grizzly_cs
Have you asked the site owner, where the mod came from??

PostPosted: Thu May 25, 2006 4:34 am
Author: Eon
Yeah that mod looks sweet, and it is defintely heavily modified from original form.

I would like to see that server stats plugin if it works for other server types.

Re: Roster/Medals Mod?

PostPosted: Sun May 28, 2006 9:45 am
Author: Falconenator
i asked them but none of them would answer me anyone got any ideas

PostPosted: Mon May 29, 2006 10:17 pm
Author: grizzly_cs
Well then its probably something he modded himself to be unique to their site... It almost impossible to tell what he used.. There are multiple medal mods out there...

Re: Roster/Medals Mod?

PostPosted: Tue May 30, 2006 1:09 pm
Author: Falconenator
finally got a reply dunno if anyone can do it

What I can do is give you a basic idea of what I did...

I made a medals table that held the image path, medal title, description... Then I made another table that held the relation between the people and their medal.. basically the user_id, medal_id, event date and event description...

The list of people pulled is based on who is part of the Black Hats usergroup and uses the rank they have assigned in the phpbb tables... The way it's sectioned out by rank, I did with a GROUP BY in the select statement that pulls the members... The php has code in it, that when it gets to a new section, ie commissioned officers to non-commisioned officers, it makes another rank heading.

I'm a bit of a hack when it comes to php.. I just take another page similar to what I want and make the changes from there.. If this other mod is close to what you need, I'd install it and make tweaks from there..

PostPosted: Fri Jun 23, 2006 7:34 am
Author: ayasha
i am back with more questions, is there install instructions for the medal mod for IM 140?

this is some modding instructions for viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
'POSTER_AVATAR' => $poster_avatar,

#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_MEDAL_COUNT' => $medal_count, // Medal MOD


i do not know how to do this because i cannot find 'POSTER_AVATAR' => $poster_avatar,

also, i cannot find what this edit wants done

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
#
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]);

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Medal MOD

//
// Category
//

$sql = "SELECT cat_id, cat_title
FROM " . MEDAL_CAT_TABLE . "
ORDER BY cat_order";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query medal categories list', '', __LINE__, __FILE__, $sql);
}

$category_rows = array();
while ( $row = $db->sql_fetchrow($result) )
{
$category_rows[] = $row;
}
$db->sql_freeresult($result);

$sql = "SELECT m.medal_id, mu.user_id
FROM " . MEDAL_TABLE . " m, " . MEDAL_USER_TABLE . " mu
WHERE mu.user_id = '" . $profiledata['user_id'] . "'
AND m.medal_id = mu.medal_id
ORDER BY m.medal_name";

if($result = $db->sql_query($sql))
{
$medal_list = $db->sql_fetchrowset($result);
$medal_count = count($medal_list);

if ( $medal_count )
{
$medal_count = '<a>' . $medal_count . '</a>';

$template->assign_block_vars('switch_display_medal', array());

$template->assign_block_vars('switch_display_medal.medal', array(
'MEDAL_BUTTON' => '<button>'.$lang['Medal_details'].'</button>')
);
}
}

for ($i = 0; $i <count>sql_query($sql))
{
$row = array();
$rowset = array();
$medal_time = $lang['Medal_time'] . ': ';
$medal_reason = $lang['Medal_reason'] . ': ';
while ($row = $db->sql_fetchrow($result))
{
if (empty($rowset[$row['medal_name']]))
{
$rowset[$row['medal_name']]['cat_id'] = $row['cat_id'];
$rowset[$row['medal_name']]['cat_title'] = $row['cat_title'];
$rowset[$row['medal_name']]['medal_description'] .= $row['medal_description'];
$rowset[$row['medal_name']]['medal_image'] = $row['medal_image'];
$row['issue_reason'] = ( $row['issue_reason'] ) ? $row['issue_reason'] : $lang['Medal_no_reason'];
$rowset[$row['medal_name']]['medal_issue'] = '<tr><td><span>' . $medal_time . create_date($board_config['default_dateformat'], $row['issue_time'], $board_config['board_timezone']) . '</span></td></tr><tr><td><span>' . $medal_reason . $row['issue_reason'] . '</span><hr></td></tr>';
$rowset[$row['medal_name']]['medal_count'] = '1';
}
else
{
$row['issue_reason'] = ( $row['issue_reason'] ) ? $row['issue_reason'] : $lang['Medal_no_reason'];
$rowset[$row['medal_name']]['medal_issue'] .= '<tr><td><span>' . $medal_time . create_date($board_config['default_dateformat'], $row['issue_time'], $board_config['board_timezone']) . '</span></td></tr><tr><td><span>' . $medal_reason . $row['issue_reason'] . '</span><hr></td></tr>';
$rowset[$row['medal_name']]['medal_count'] += '1';
}
}

$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'].'"' : '';

$medal_name = array();
$data = array();

//
// Should we display this category/medal set?
//
$display_medal = 0;

while (list($medal_name, $data) = @each($rowset))
{
if ( $cat_id == $data['cat_id'] ) { $display_medal = 1; }

if ( !empty($display_medal) )
{
$template->assign_block_vars('switch_display_medal.details', array(
'MEDAL_CAT' => $data['cat_title'],
'MEDAL_NAME' => $medal_name,
'MEDAL_DESCRIPTION' => $data['medal_description'],
'MEDAL_IMAGE' => '<img>',
'MEDAL_IMAGE_SMALL' => '<img>',
'MEDAL_ISSUE' => $data['medal_issue'],
'MEDAL_COUNT' => $lang['Medal_amount'] . $data['medal_count'],

'L_MEDAL_DESCRIPTION' => $lang['Medal_description'])
);
$display_medal = 0;
}
}
}
}

#
#-----[ FIND ]------------------------------------------
#
'USERNAME' => $profiledata['username'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_USER_MEDAL' =>$lang['Medals'], // Medal MOD
'USER_MEDAL_COUNT' => $medal_count, // Medal MOD
'L_MEDAL_INFORMATION' => $lang['Medal_Information'], // Medal MOD
'L_MEDAL_NAME' => $lang['Medal_name'], // Medal MOD
'L_MEDAL_DETAIL' => $lang['Medal_details'], // Medal MOD


and this edit
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php

#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;

#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_MEDALS: // Medal MOD
$location = $lang['Medals'];
$location_url = "medals.$phpEx";
break;


and this edit
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<td><span>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_FROM}</span><br></td>

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
{postrow.POSTER_FROM}<br>{postrow.POSTER_MEDAL_COUNT}<br>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<BEGIN>
<table>
<BEGIN>
<tr>
<BEGIN>
<td><img></td>
<END>
</tr>
<END>
</table>
<END>
</span><br></td>


there are so many edits i cannot find, i am wondering if i am using the correct install file. going through the rest, it does not look like the template files have any of the "FIND"s that i need to find.

Re: Roster/Medals Mod?

PostPosted: Sat Jun 24, 2006 9:40 pm
Author: Teelk
There's also the [url=http]Award Icons MOD[/url] that has MrDSL's PCP instructions included with it. The PCP stuff might not be identical, but it shouldn't be too difficult to figure out... usually just spacing issues with the FIND code. And, remember to add all the files from the admin directory to the admin/modules directory as well.

PostPosted: Sat Jun 24, 2006 9:52 pm
Author: ayasha
i have installed the awards icon mod, and now i need to get the medals mod installed. i am just not good with trying to figure out where the code is suppose to go if the "FIND" is not there, wish i was better.

PostPosted: Sun Jun 25, 2006 10:06 am
Author: ayasha
if anyone is willing to help me figure this out, please pm me. i could really use some help on this <img>

PostPosted: Tue Jun 27, 2006 6:43 am
Author: Dragonsys
"cleo";p="10203" wrote:if anyone is willing to help me figure this out, please pm me. i could really use some help on this <img>


Where did you find the instructions for IM 1.4.0? Do you have a link to the MOD?

PostPosted: Tue Jun 27, 2006 7:34 am
Author: ayasha
i got the mod from here

http://www.phpbb.com/phpBB/viewtopic.php?t=148362

and as far as i know, there are no IM 1.4.0 instructions, that is what i have been asking for help with <img>

PostPosted: Tue Jun 27, 2006 8:41 am
Author: Dragonsys
"cleo";p="10337" wrote:i got the mod from here

http://www.phpbb.com/phpBB/viewtopic.php?t=148362

and as far as i know, there are no IM 1.4.0 instructions, that is what i have been asking for help with <img>


I have downloaded the MOD and I'm looking at MrDSL's PCp instructions. I'll see what I can do.

PostPosted: Tue Jun 27, 2006 9:06 am
Author: ayasha
thank you so much Dragonsys <img> i appreciate it so much

PostPosted: Tue Jun 27, 2006 9:30 am
Author: Dragonsys
[quote=""cleo";p="10349""]thank you so much Dragonsys :)
I have it installed and working on my site ( http://www.dragonsys.org/portal/medals.php ) but there are a few things i still need to work out. Like the profile and topic views.

PostPosted: Tue Jun 27, 2006 9:35 am
Author: ayasha
great, i like that little cup, would it be much of a problem having bigger medals?

Re: Roster/Medals Mod?

PostPosted: Tue Jun 27, 2006 9:50 am
Author: Dragonsys
you can use any medal icons you want.

Re: Roster/Medals Mod?

PostPosted: Tue Jun 27, 2006 1:56 pm
Author: Dragonsys
Ok, I have it working perfectly everywhere, except in viewprofile. The page displays, but it does not show the medals the user has been awarded...

After I get this one part working I will post the Install Info and such

PostPosted: Tue Jun 27, 2006 3:07 pm
Author: ayasha
thank you so much Dragonsys <img>

Re: Roster/Medals Mod?

PostPosted: Tue Jun 27, 2006 7:47 pm
Author: Dragonsys
Ok, I got it all working :?:

I'll create a download for it tomorrow.

PostPosted: Tue Jun 27, 2006 8:34 pm
Author: ayasha
thank you so much Dragonsys <img> will check back tomorrow

Re: Roster/Medals Mod?

PostPosted: Wed Jun 28, 2006 7:19 am
Author: Dragonsys
The Medal MOD - ported to IM 1.4.0
<img> http://www.dragonsys.org/portal/dload.p ... &file_id=7

Everything works, except for the ACP Option to turn On/Off the Display in Viewtopic and the Random Icon. This is due to PCP. I will play with this a little more, if anyone really cares about that option.

PostPosted: Wed Jun 28, 2006 8:34 am
Author: ayasha
thanks Dragonsys, i appreciate this alot <img>

i know the display in the viewtopic shows the medals in a members post, but what is the randon icon thing for?

PostPosted: Wed Jun 28, 2006 8:48 am
Author: Dragonsys
"cleo";p="10410" wrote:thanks Dragonsys, i appreciate this alot <img>

i know the display in the viewtopic shows the medals in a members post, but what is the randon icon thing for?


The random pic is what shows the icons. The port above, only shows the number of medals, not any icons, in viewtopic.

You can see it here:
In Viewtopic - http://www.dragonsys.org/portal/viewtopic.php?p=136#136
In Profile - http://www.dragonsys.org/portal/profile ... ortcut&u=2

User/Pass - testuser/ce61949a

PostPosted: Wed Jun 28, 2006 9:01 am
Author: ayasha
ok, i understand now, and even though it might would be nice to have them showing in viewtopic, it could get a little "busy" looking with that being the place the award icons show also.

just let me know if you ever do get it to showing them there, and i will take a look then.

you have been such a great help Dragonsys, i will be modding this tonight i hope, but right now i have teenagers home from school telling me it is their time on the computer :lol:

PostPosted: Wed Jun 28, 2006 9:06 am
Author: Dragonsys
"cleo";p="10412" wrote:ok, i understand now, and even though it might would be nice to have them showing in viewtopic, it could get a little "busy" looking with that being the place the award icons show also.

just let me know if you ever do get it to showing them there, and i will take a look then.

you have been such a great help Dragonsys, i will be modding this tonight i hope, but right now i have teenagers home from school telling me it is their time on the computer :lol:


those darn teenagers :wink:

Re: Roster/Medals Mod?

PostPosted: Thu Jun 29, 2006 5:58 am
Author: Dragonsys

PostPosted: Fri Jun 30, 2006 11:28 am
Author: MrDSL
Quick question.


I can't open your download cause its .rar but whats the purpose of the medalspr function since you are using a profilcp_medal.php file to display in the viewprofile section?

PostPosted: Fri Jun 30, 2006 12:39 pm
Author: Dragonsys
"MrDSL";p="10599" wrote:Quick question.


I can't open your download cause its .rar but whats the purpose of the medalspr function since you are using a profilcp_medal.php file to display in the viewprofile section?


hmmmm good question. I just adapted what you had created a while back. Since the Medals aren't being displayed on the main profile page (I simply removed the code which display it, but it could be added back in), the functon probably isn't needed.

PostPosted: Mon Jul 17, 2006 9:53 am
Author: honie
I would love to install this one, but anytime I try to install a mod that requires changes to the profilcp/def files my site goes white. Does anyone else have this problem?

PostPosted: Tue Aug 22, 2006 7:15 am
Author: ayasha
well, i finally got this mod installed and working, but i cannot get the medal to show in the left panel on view topic.

even after going back and applying the new edits that Dragonsys posted.

can anyone help?

i have it set in the acp to show 1 medal, but all it does is put a link to view more.

Re: Roster/Medals Mod?

PostPosted: Wed Feb 07, 2007 11:13 am
Author: dan0042
medal system is workin perfectly fine but "left frame out size Author box

http://img387.imageshack.us/img387/6246 ... kkhro0.jpg

Re: Roster/Medals Mod?

PostPosted: Wed Feb 14, 2007 12:42 pm
Author: Pogue Moran
Here's what I have I don't know how it works with IM 141s version of PCP but this is what worked with the version I have. In your def_userfuncs_custom.php add:

Code: Select all
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:
Code: Select all
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
Code: Select all
$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

PostPosted: Thu Feb 07, 2008 8:37 am
Author: krillmeed
My members are interested in having this mod added to our 1.41 version forum. Has anyone tried to install it on one? If not, were can i download the 1.40 version and test it if it is possible <img>

PostPosted: Sun Mar 16, 2008 11:14 am
Author: krillmeed
Seems its been a while for an answer for this. Does this mean that this mod is no longer available?

Re: Roster/Medals Mod?

PostPosted: Sun Mar 16, 2008 2:49 pm
Author: DjPorkchop
Dragonsys isnt around anymore. His site is gone as well except for his main site. I dont think he does phpBB anymore. I got ahold of him a while back but it was by chance is all.

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>

PostPosted: Sun Mar 16, 2008 11:07 pm
Author: krillmeed
Thank you sir, really would be nice to have this Mod.

Re: Roster/Medals Mod?

PostPosted: Mon Mar 17, 2008 1:16 pm
Author: DjPorkchop
well, with some minor tweaking, I got award Icons mod working. Not sure if its the same or not. I have never used either of these 2 mods in question.

Ill have to see if I can get a copy of the medals mod and see how close it is to awards icons mod.

Re: Roster/Medals Mod?

PostPosted: Mon Mar 17, 2008 1:48 pm
Author: krillmeed
Here is were they downloaded the original phpbb2 one:

http://www.phpbb.com/community/viewtopic.php?t=148362

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

Re: Roster/Medals Mod?

PostPosted: Mon Mar 17, 2008 3:38 pm
Author: DjPorkchop
Yeah I was going tot ry and adapt those edits to award icons as well in its won way to ad a tab for wards in profile instad of on the main profile page. As well, I think for awards icons a text link would be better in view topic left as well instead of each icon.

And thatnks for the link. Im gonna go and grab the file and check it out. <img>

PostPosted: Mon Mar 17, 2008 11:22 pm
Author: krillmeed
Makes sense MWE; Saves loading time i would think, less strain on the database:

PostPosted: Mon Mar 24, 2008 10:48 am
Author: krillmeed
Sorry to bug, but any updates or progress on this mod?

Re: Roster/Medals Mod?

PostPosted: Thu Mar 27, 2008 9:53 am
Author: DjPorkchop
I havent had any time to look any further into it. I started on building another website and it has consumed me entirely. I will be getting back to my test site real soon like as I have a few more mods I need to check out and test.

Hopefully if I cant get to it one will for sure.

PostPosted: Thu Mar 27, 2008 10:09 am
Author: krillmeed
no problem, you are obviously a very busy person <img>

Re: Roster/Medals Mod?

PostPosted: Tue Jun 17, 2008 4:32 am
Author: anth0ny
Installed with the extra tab in profile and the link was dead so i changed the following
just in case anyone has the same problem:

Code: Select all
# #-----[ 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
Code: Select all
# #-----[ 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'];}

PostPosted: Tue Jun 17, 2008 8:52 am
Author: krillmeed
This mod has now been working on my forum for a while with no problems, except i have still yet to figure out how to change the background and font colors in the medal de.scription in the user profiles, our background is black and the font is white, at the moment it has the background white and the font is white, hence the de.scriptions have to be marked before anyone can read them. Still all in all well worth installing <img>