Roster/Medals Mod?

Mods etc.

Moderator: Integra Moderator

Roster/Medals Mod?

PostAuthor: Falconenator » Tue May 23, 2006 7:16 pm

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
Last edited by Falconenator on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Falconenator
Newbie
Newbie
 
Posts: 19
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Apr 17, 2006 9:37 am
Cash on hand: 0.00

PostAuthor: Adrian Rea » Tue May 23, 2006 9:43 pm

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
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Falconenator » Wed May 24, 2006 9:38 am

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
Last edited by Falconenator on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Falconenator
Newbie
Newbie
 
Posts: 19
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Apr 17, 2006 9:37 am
Cash on hand: 0.00

PostAuthor: grizzly_cs » Wed May 24, 2006 11:19 am

Have you asked the site owner, where the mod came from??
Last edited by grizzly_cs on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
grizzly_cs
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat May 06, 2006 11:46 pm
Cash on hand: 0.00

PostAuthor: Eon » Thu May 25, 2006 4:34 am

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.
Last edited by Eon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 28, 2006 10:15 am
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Falconenator » Sun May 28, 2006 9:45 am

i asked them but none of them would answer me anyone got any ideas
Last edited by Falconenator on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Falconenator
Newbie
Newbie
 
Posts: 19
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Apr 17, 2006 9:37 am
Cash on hand: 0.00

PostAuthor: grizzly_cs » Mon May 29, 2006 10:17 pm

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...
Last edited by grizzly_cs on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
grizzly_cs
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat May 06, 2006 11:46 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Falconenator » Tue May 30, 2006 1:09 pm

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..
Last edited by Falconenator on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Falconenator
Newbie
Newbie
 
Posts: 19
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Apr 17, 2006 9:37 am
Cash on hand: 0.00

PostAuthor: ayasha » Fri Jun 23, 2006 7:34 am

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.
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Teelk » Sat Jun 24, 2006 9:40 pm

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.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: ayasha » Sat Jun 24, 2006 9:52 pm

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.
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: ayasha » Sun Jun 25, 2006 10:06 am

if anyone is willing to help me figure this out, please pm me. i could really use some help on this <img>
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dragonsys » Tue Jun 27, 2006 6:43 am

"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?
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Tue Jun 27, 2006 7:34 am

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>
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dragonsys » Tue Jun 27, 2006 8:41 am

"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.
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Tue Jun 27, 2006 9:06 am

thank you so much Dragonsys <img> i appreciate it so much
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dragonsys » Tue Jun 27, 2006 9:30 am

[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.
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Tue Jun 27, 2006 9:35 am

great, i like that little cup, would it be much of a problem having bigger medals?
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Dragonsys » Tue Jun 27, 2006 9:50 am

you can use any medal icons you want.
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Roster/Medals Mod?

PostAuthor: Dragonsys » Tue Jun 27, 2006 1:56 pm

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
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Tue Jun 27, 2006 3:07 pm

thank you so much Dragonsys <img>
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Dragonsys » Tue Jun 27, 2006 7:47 pm

Ok, I got it all working :?:

I'll create a download for it tomorrow.
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Tue Jun 27, 2006 8:34 pm

thank you so much Dragonsys <img> will check back tomorrow
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Dragonsys » Wed Jun 28, 2006 7:19 am

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.
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Wed Jun 28, 2006 8:34 am

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?
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dragonsys » Wed Jun 28, 2006 8:48 am

"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
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: ayasha » Wed Jun 28, 2006 9:01 am

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:
Last edited by ayasha on Wed Dec 31, 1969 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

PostAuthor: Dragonsys » Wed Jun 28, 2006 9:06 am

"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:
Last edited by Dragonsys on Wed Dec 31, 1969 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Roster/Medals Mod?

PostAuthor: Dragonsys » Thu Jun 29, 2006 5:58 am

Last edited by Dragonsys on Thu Sep 28, 2006 6:09 am, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: MrDSL » Fri Jun 30, 2006 11:28 am

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?
Last edited by MrDSL on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
MrDSL
PCP Master
PCP Master
 
Posts: 41
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Thu Apr 27, 2006 5:34 am
Cash on hand: 0.00

PostAuthor: Dragonsys » Fri Jun 30, 2006 12:39 pm

"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 5: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
Images: 0
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: honie » Mon Jul 17, 2006 9: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 5:00 pm, edited 1 time in total.

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

PostAuthor: ayasha » Tue Aug 22, 2006 7: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 5: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
Images: 0
Joined: Tue Mar 28, 2006 6:10 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: dan0042 » Wed Feb 07, 2007 11: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 5:00 pm, edited 1 time in total.
:#: <img>
User avatar
dan0042
Integra Member
Integra Member
 
Posts: 170
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Fri Apr 21, 2006 4:06 pm
Cash on hand: 0.00

Re: Roster/Medals Mod?

PostAuthor: Pogue Moran » Wed Feb 14, 2007 12:42 pm

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

PostAuthor: krillmeed » Thu Feb 07, 2008 8: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 5:00 pm, edited 1 time in total.

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

PostAuthor: krillmeed » Sun Mar 16, 2008 11: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 5:00 pm, edited 1 time in total.

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

Re: Roster/Medals Mod?

PostAuthor: DjPorkchop » Sun Mar 16, 2008 2: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 DjPorkchop on Wed Dec 31, 1969 5: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
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

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

Thank you sir, really would be nice to have this Mod.
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

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

Re: Roster/Medals Mod?

PostAuthor: DjPorkchop » Mon Mar 17, 2008 1: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 DjPorkchop on Wed Dec 31, 1969 5: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
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

Re: Roster/Medals Mod?

PostAuthor: krillmeed » Mon Mar 17, 2008 1: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 5:00 pm, edited 1 time in total.

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

Re: Roster/Medals Mod?

PostAuthor: DjPorkchop » Mon Mar 17, 2008 3: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 DjPorkchop on Wed Dec 31, 1969 5: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
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

PostAuthor: krillmeed » Mon Mar 17, 2008 11: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 5:00 pm, edited 1 time in total.

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

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

Sorry to bug, but any updates or progress on this mod?
Last edited by krillmeed on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

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

Re: Roster/Medals Mod?

PostAuthor: DjPorkchop » Thu Mar 27, 2008 9: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 DjPorkchop on Wed Dec 31, 1969 5: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
DjPorkchop
Administrator
Administrator
 
Posts: 1592
Likes: 135 posts
Liked in: 26 posts
Images: 0
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 1,570.25
Location: Illinois
IntegraMOD version: phpBB2x

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

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

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

Re: Roster/Medals Mod?

PostAuthor: anth0ny » Tue Jun 17, 2008 4: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 5:00 pm, edited 1 time in total.

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

PostAuthor: krillmeed » Tue Jun 17, 2008 8: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 5:00 pm, edited 1 time in total.

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


Return to IntegraMOD Modifications

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Paulmagall