Sub Menu
Links Menu
Online Users

In total there are 309 users online :: 1 registered, 0 hidden and 308 guests

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

Registered users: Google [Bot] based on users active over the past 60 minutes

Roster/Medals Mod?

Mods etc.

Moderator: Integra Moderator

PostAuthor: Dragonsys » Fri Jun 30, 2006 11:39 am

"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.
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: honie » Mon Jul 17, 2006 8:53 am

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

honie
Newbie
Newbie
 
Posts: 20
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 2:08 pm
Cash on hand: 0.00

PostAuthor: ayasha » Tue Aug 22, 2006 6:15 am

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.
Last edited by ayasha on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 5:10 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: dan0042 » Wed Feb 07, 2007 10:13 am

medal system is workin perfectly fine but "left frame out size Author box

http://img387.imageshack.us/img387/6246 ... kkhro0.jpg
Last edited by dan0042 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 21, 2006 3:06 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Pogue Moran » Wed Feb 14, 2007 11:42 am

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
Last edited by Pogue Moran on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Pogue Moran
Members
Members
 
Posts: 74
Likes: 0 post
Liked in: 0 post
Joined: Sat Jun 24, 2006 4:48 pm
Cash on hand: 0.00

PostAuthor: krillmeed » Thu Feb 07, 2008 7:37 am

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>
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

PostAuthor: krillmeed » Sun Mar 16, 2008 10:14 am

Seems its been a while for an answer for this. Does this mean that this mod is no longer available?
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: MWE_001 » Sun Mar 16, 2008 1:49 pm

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>
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: krillmeed » Sun Mar 16, 2008 10:07 pm

Thank you sir, really would be nice to have this Mod.
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: MWE_001 » Mon Mar 17, 2008 12:16 pm

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.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Roster/Medals Mod?

PostAuthor: krillmeed » Mon Mar 17, 2008 12:48 pm

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>
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: MWE_001 » Mon Mar 17, 2008 2:38 pm

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>
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: krillmeed » Mon Mar 17, 2008 10:22 pm

Makes sense MWE; Saves loading time i would think, less strain on the database:
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

PostAuthor: krillmeed » Mon Mar 24, 2008 9:48 am

Sorry to bug, but any updates or progress on this mod?
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: MWE_001 » Thu Mar 27, 2008 8:53 am

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.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PreviousNext

Return to IntegraMOD Modifications

Who is online

Registered users: Google [Bot]

cron