Sub Menu
Links Menu
Online Users

In total there are 353 users online :: 3 registered, 0 hidden and 350 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

Roster/Medals Mod?

Mods etc.

Moderator: Integra Moderator

PostAuthor: krillmeed » Thu Mar 27, 2008 9:09 am

no problem, you are obviously a very busy person <img>
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: anth0ny » Tue Jun 17, 2008 3:32 am

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'];}
Last edited by anth0ny on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

anth0ny
Newbie
Newbie
 
Posts: 14
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 30, 2008 2:27 am
Cash on hand: 0.00

PostAuthor: krillmeed » Tue Jun 17, 2008 7:52 am

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>
Last edited by krillmeed on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Previous

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron