[BETA] Medal System MOD [ Latest: 0.4.6 ]

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Stragen
Registered User
Posts: 15
Joined: Wed Jan 12, 2005 12:49 pm

Post by Stragen »

This is a bit odd, really. I did what you suggested (making blank categories and waiting for the other categories to appear), and now one has but the other hasn't. So when you look there, you can now see two sets of medals, where there should also be a third visible. Is this normal?
- Signature, eh?
Ice Dead
Registered User
Posts: 5
Joined: Sun Jan 16, 2005 10:48 am

Post by Ice Dead »

Hi

Sorry for my Bad English :oops:

I'm having these problem

on Profile with my Users The list of the Medals are in Line, i have a User hi has 45 Specials see at http://www.icedead.iphpbb.de/profile.ph ... ofile&u=25

this is the Orginal: problem with sroll
Image

I would like this: 25 pictures in 2 Lines
Image

wat can I do?

profile_view_body.tpl

Code: Select all

<br />
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
  <tr> 
	<td class="cat" align="center" height="28" colspan="2"><b><span class="gen">{L_MEDAL_INFORMATION}</span></b></td>
  </tr>
  <tr>
	<td class="row1"  align="center" valign="middle" width="10%"><span class="gen">{L_USER_MEDAL}:&nbsp;<b>{USER_MEDAL_COUNT}</b></span>
<!-- BEGIN medal -->
<br /><br />{medal.MEDAL_BUTTON}
<!-- END medal -->
	</td>
	<td class="row1" valign="middle" align="left" nowrap="nowrap" width="100%">
<!-- BEGIN details -->
&nbsp;{details.MEDAL_IMAGE_SMALL}&nbsp;
<!-- END details -->
	</td>
  </tr>
</table>

<br />
<div style="width: 100%; overflow: hidden; display: none;" id="toggle_medal">
<a name="medal">

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
  <tr> 
	<th class="thCornerL" align="center" nowrap="nowrap">&nbsp;{L_MEDAL_NAME}&nbsp;</th>
	<th class="thCornerR" align="center" nowrap="nowrap">&nbsp;{L_MEDAL_DETAIL}&nbsp;</th>
  </tr>
<!-- BEGIN details -->
  <tr>
	<td class="row2" nowrap="nowrap">
		<table width="100%" cellspacing="1" cellpadding="3" border="0">
		<tr><td align="center"><span class="genmed">{details.MEDAL_CAT}</span></td></tr>
		<tr><td align="center"><span class="genmed">{details.MEDAL_NAME}</span></td></tr>
		<tr><td align="center">{details.MEDAL_IMAGE}</td></tr>
		<tr><td align="center"><span class="genmed">{details.MEDAL_COUNT}</span></td></tr></table></td>
	<td class="row2" valign="top">
		<table width="100%" cellspacing="1" cellpadding="3" border="0">
		<tr><td><span class="gen">{details.L_MEDAL_DESCRIPTION}: <b>{details.MEDAL_DESCRIPTION}</b></span></td></tr>
		<tr><td class="quote">
			<table width="100%" cellspacing="1" cellpadding="3" border="0">
			<tr><td><span class="genmed">{details.MEDAL_ISSUE}</span></td></tr>
			</table>
		</td></tr>
	</table></td>
  </tr>
<!-- END details -->
I hope you understand my Problem.

thx Ice
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

I just installed version 2.2.2 and saw the same problem as others. I don't know if anyone has fixed it or not. But, I know how.

The problem: A blank category is displayed.

Fix:
open medals.php
find

Code: Select all

        //
        // Okay, let's build the index
        //
After Add

Code: Select all

        $total_categories-- ;
Looks like this now

Code: Select all

        //
        // Okay, let's build the index
        //
        $total_categories-- ;
        for($i = 0; $i < $total_categories; $i++)
        {
Reason: The number of rows returned is 2 and then $total_categories is set equal to that. Then when the tables are put together, we start counting with 0. 0...1...2... That is three passes, not just two.
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

Here is something I did with version 2.0.1 and have gotten this to work with 2.1.0 as well. This is a very simple change to get medals sorted by an order of your choice and not by the medals name. I did not make it easy to change the ordering however. If someone would like to do that, please feel free. I only ask that you share.

I have one more change that I have not written down yet. I will do that soon. This other change allows for a different images for multiple awardings of a medal.

Code: Select all

## EasyMod 0.0.11a compliant
#################################################################
## Title: Medal Order Add On
## Version: 1.0.0
## Author: DragonFire <dragonfire @ dfsquad.net> - http://www.dfsquad.net
## Description: Makes it so you can sort medals as you want, not by name.
##
## Installation Level:  Easy
## Installation Time:   5 Minutes
##
## Files To Edit: 
##
#################################################################
##
## Author Note:
##
##      Copyright DragonFire, 2004
##
##      For any concerns please contact me at http://www.dfsquad.net
##
#################################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
##
## Revision History:
##
## v1.0.0
##      - Initial Release
##
#################################################################

#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_medal ADD medal_precedence TINYINT(4) NULL ;

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Medal_name'] = 'Medal Name';

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Medal_precedence'] = 'Sort Order';

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
$lang['medal_name'] = 'Medal name';

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['medal_precedence'] = 'Sort Order';

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
                ORDER BY m.medal_name";

#
#-----[ REPLACE ]------------------------------------------
#
                ORDER BY m.medal_precedence";

#
#-----[ FIND ]------------------------------------------
#
                $order = ( $board_config['medal_display_order'] ) ? "RAND()" : "m.medal_name";

#
#-----[ REPLACE ]------------------------------------------
#
                $order = ( $board_config['medal_display_order'] ) ? "RAND()" : "m.medal_precedence";

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

#
#-----[ FIND ]------------------------------------------
#
        ORDER BY m.medal_name";

#
#-----[ REPLACE ]------------------------------------------
#
        ORDER BY m.medal_precedence";

#
#-----[ FIND ]------------------------------------------
#
                ORDER BY c.cat_order, m.medal_name, mu.issue_time";

#
#-----[ REPLACE ]------------------------------------------
#
                ORDER BY c.cat_order, m.medal_precedence, mu.issue_time";

#
#-----[ OPEN ]------------------------------------------
#
medals.php

#
#-----[ FIND ]------------------------------------------
#
                ORDER BY medal_name";

#
#-----[ REPLACE ]------------------------------------------
#
                ORDER BY medal_precedence";

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_medal.php

#
#-----[ FIND ]------------------------------------------
#
                ORDER BY cat_id, medal_name";

#
#-----[ REPLACE ]------------------------------------------
#
                ORDER BY cat_id, medal_precedence";

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Last edited by Gremlinn on Tue Jan 25, 2005 12:43 pm, edited 1 time in total.
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

Ok, as I promised. Here is what I just got working. It will display a different image for each awarding of the same medal.

Code: Select all

## EasyMod 0.0.11a compliant
#################################################################
## Title: Multiple Medal Images Add On
## Version: 1.0.0
## Author: DragonFire <dragonfire @ dfsquad.net> - http://www.dfsquad.net
## Description: Displays a different image depending on the number of medals
##              awarded.  Image names must be for example:
##                 image.gif
##                 image-2.gif
##                 image-3.gif
##
## Installation Level:  Easy
## Installation Time:   5 Minutes
##
## Files To Edit: 2
##      viewtopic.php
##      includes/usercp_viewprofile.php
##
#################################################################
##
## Author Note:
##
##      Copyright DragonFire, 2004
##
##      For any concerns please contact me at http://www.dfsquad.net
##
#################################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
##
## Revision History:
##
## v1.0.0
##      - Initial Release
##
#################################################################

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
                                        if (!$col)
                                        {
                                                $template->assign_block_vars('postrow.medal.medal_row', array());
                                        }


#
#-----[ AFTER, ADD ]------------------------------------------
#
                                        if ($medal['medal_count'] != 1) {
                                                $cluster = '-' . $medal['medal_count'] ;
                                                $medal_image = substr_replace($medal_image,$cluster, -4) . substr($medal_image, -4) ;
                                                $award_lang = 'awards' ;
                                        }

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

#
#-----[ FIND ]------------------------------------------
#
                //
                // 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) )
                        {

#
#-----[ AFTER, ADD ]------------------------------------------
#
                                if ($data['medal_count'] != 1) {
                                   $cluster = '-' . $data['medal_count'] ;
                                   $data['medal_image'] = substr_replace($data['medal_image'],$cluster, -4) . substr($data['medal_image'], -4) ;
                                }
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Stragen
Registered User
Posts: 15
Joined: Wed Jan 12, 2005 12:49 pm

Post by Stragen »

May I ask, is there a limit to the number of medals one can have (that anyone knows of)? You see, I've got two categories now, only of 15 and the other of nine, but the second (which displayed before), doesn't display any more. I'm at a loss to figure out why. You can see what I mean here
- Signature, eh?
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

There is no limit on the number of medals. I have about 60+ at the moment and am going to make more. Did you add a mod or change any code? If so, there may be a compatability issue or a typo.
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

:arrow: Ice Dead:

Here is what I did to make the medals wrap and to separate them when they are in different categories.

Change the line after // Should we display this ....
to look like this:

Code: Select all

                // Should we display this category/medal set?
                //
                $display_medal = 0;
                $numberofmedals = 0 ;
                while (list($medal_name, $data) = @each($rowset))
                {
                        if ( $cat_id == $data['cat_id'] ) { $display_medal = 1; }

                        if ( $numberofmedals == 5 ) {
                                $break = '<br \>&nbsp;' ;
                                $numberofmedals = 0 ;
                        } else {
                                $break = '' ;
                        }
                        if ( !empty($newcat) ) {
                                $break = '<hr \>&nbsp;' ;
                                $numberofmedals = 0 ;
                        }

                        $numberofmedals++ ;
                        if ( !empty($display_medal) )
                        {
                                if ($data['medal_count'] != 1) {
                                   $cluster = '-' . $data['medal_count'] ;
                                   $data['medal_image'] = substr_replace($data['medal_image'],$cluster, -4) . substr($data['medal_image'], -4) ;
                                }
                                $template->assign_block_vars('details', array(
                                        'MEDAL_CAT' => $data['cat_title'],
                                        'MEDAL_NAME' => $medal_name,
                                        'MEDAL_DESCRIPTION' => $data['medal_description'],
                                        'MEDAL_IMAGE' => '<img src="'. $phpbb_root_path . $data['medal_image'] . '" border="0" alt="' . $medal_name . '" />',
                                        'MEDAL_IMAGE_SMALL' => $break . '<img src="'. $phpbb_root_path . $data['medal_image'] . '" border="0" alt="' . $medal_name . '"' . $medal_width . $medal_height . ' />',
                                        'MEDAL_ISSUE' => $data['medal_issue'],
                                        'MEDAL_COUNT' => $lang['Medal_amount'] . $data['medal_count'],

                                        'L_MEDAL_DESCRIPTION' => $lang['Medal_description'])
                                );
                                $display_medal = 0;
                                $newcat = 0 ;
                        } else {
                                // New category lets put an hr between
                                $newcat = 1 ;
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

I think I figured out how to get all the categories to display in medals.php

EDIT: Code removed: See following posts.

Disclaimer: I have not yet checked if a category is empty will it display. I will do that now.
Last edited by Gremlinn on Tue Jan 25, 2005 4:24 pm, edited 1 time in total.
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

Just tried. An empty category is displayed. I will look at that now. :?

The moral of the story so far... Don't have any empty categories... at least until I can figure out how to get the commented section to work right.
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

Ok, the correct code for displaying all the categories with medals.php and for not displaying empty categories.

around line 155 find a section like below and change the $total_categories to $total_medals as shown.

Code: Select all

                //
                // Should we display this category/medal set?
                //
                $display_medal = 0;
                for($k = 0; $k < $total_medals; $k++)
                {
                        if ( $medal_data[$k]['cat_id'] == $cat_id )
                        {
                                $display_medal = 1;
                        }
                }
Scali
Registered User
Posts: 51
Joined: Wed Dec 01, 2004 8:54 pm
Location: http://www.monloup.net
Contact:

Post by Scali »

Hi,

I have a problem with this mod when i want to see an users profile for watch his medals:

Image

This is my profile_view_body.tpl:

Code: Select all

<script src="templates/toggle.js"></script>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
	<td class="maintitle">{L_VIEWING_PROFILE}</td>
</tr>
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » {L_VIEWING_PROFILE}</td>
</tr>
</table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th colspan="2">{L_VIEWING_PROFILE}</th>
</tr>
<tr>
<td class="cat" width="40%" align="center">{L_AVATAR}</td>
<td class="cat" width="60%" align="center">{L_ABOUT_USER}</td>
</tr>
<tr>
<br /><a href="{RABBITOSHI_LINK}" >{L_RABBITOSHI_POSTS}</a><br />
<td class="row1" align="center">{AVATAR_IMG}<br />
<span class="postdetails">{POSTER_RANK}<br /><a href="{RPGSTATSLINK}">{L_RPGSTATS}</a></span></td>
<td class="row1" rowspan="3" valign="top">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_JOINED}:</td>
<td width="100%">{JOINED}</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap" class="explaintitle">{L_TOTAL_POSTS}:</td>
<td valign="top">{POSTS}<br />
<span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]<br />
<a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></span></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_WEBSITE}:</td>
<td>{WWW}</td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_LOCATION}:</td>
<td>{LOCATION}</td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_COUNTRY}:&nbsp;</span></td>
<td><b><span class="gen">{COUNTRY}</span></b></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_OCCUPATION}:</td>
<td>{OCCUPATION}</td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap" class="explaintitle">{L_INTERESTS}:</td>
<td>{INTERESTS}</td>
</tr>
<tr> 
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_ARCADE}:</span></td> 
        <td><span class="gen">{URL_STATS}</span></b></td> 
      </tr> 
<!-- Start add - Birthday MOD -->
		<tr>
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}:</span></td>
		  <td><b><span class="gen">{BIRTHDAY}</span></b></td>
		</tr>
<!-- End add - Birthday MOD -->
<!-- Start add - Gender MOD --> 
<tr> 
	<td align="right" nowrap="nowrap" class="explaintitle">{L_GENDER}:</td>
	<td> <b>{GENDER}</b></td>
</tr>
<!-- End add - Gender MOD -->
{CASH}
</table>
</td>
</tr>
<tr>
<td class="cat" align="center">{L_CONTACT} {USERNAME}</td>
</tr>
<tr>
<td class="row1" valign="top">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_EMAIL_ADDRESS}:</td>
<td width="100%">{EMAIL_IMG}</td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">&nbsp;{L_PM}:</td>
<td>{PM_IMG}</td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN}</td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_YAHOO}:</td>
<td>{YIM_IMG}</td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_AIM}:</td>
<td>{AIM_IMG}</td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_ICQ_NUMBER}:</td>
<td>{ICQ_IMG}</td>
</tr>
<!-- BEGIN partner -->
    <tr> 
<td align="right" nowrap="nowrap" class="explaintitle">{partner.L_PARTNER}:</td> 
<td>{partner.PARTNER}</td> 
    </tr> 
<!-- END partner -->
<!-- BEGIN children -->
    <tr> 
<td align="right" nowrap="nowrap" class="explaintitle">{children.L_CHILDREN}:</td> 
<td>{children.CHILDREN}</td> 
    </tr> 
<!-- END children -->
<!-- BEGIN child -->
    <tr> 
     <td align="right" nowrap="nowrap" class="explaintitle">{child.L_CHILD}:</td> 
     <td>{child.CHILD}</td> 
    </tr> 
<!-- END child -->
<!-- BEGIN sex -->
    <tr> 
<td align="right" nowrap="nowrap" class="explaintitle">{sex.L_SEX}:</td> 
     <td>{sex.SEX}</td> 
    </tr> 
<!-- END sex -->
<!-- BEGIN divorce -->
    <tr> 
<td align="right" nowrap="nowrap" class="explaintitle">{divorce.L_DIVORCE}</td> 
     <td><a href="{divorce.U_DIVORCE}">{divorce.D_DIVORCE}</a></td> 
    </tr> 
<!-- END divorce -->
</table>
</td>
</tr>
<tr>
<td class="cat" colspan="2">&nbsp;</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
	<tr>
		<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » {L_VIEWING_PROFILE}</td>
	</tr>
</table>
<!-- BEGIN adr_profile_none -->
<br class="gensmall" />
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
  <tr> 
	<th class="thHead" colspan="2" height="15" nowrap="nowrap">{L_NO_CHARACTER}</th>
  </tr>
</table>
<!-- END adr_profile_none -->
<!-- BEGIN adr_profile -->
<br class="gensmall" />
<table cellspacing="0" cellpadding="0" border="1" align="center" width="100%" height="100%">
	<tr>
		<th align="center" colspan="3">{L_CHARACTER_OF}</th>
	</tr>
	<tr>
		<td align="center">

			<table cellspacing="2" cellpadding="1" border="1" align="center" width="100%" height="100%">
				<tr>
					<td class="row1" align="center" width="60%" colspan="2"><b><span class="gen"><a href="{U_NAME}">{NAME}</a></span></b>
					<br /><span class="gen"><b>{L_LEVEL} : {LEVEL}</b></span></td>
				</tr>
				<tr>
					<td class="row1" align="center"><span class="gen">{L_CLASS}</td>
					<td class="row2" align="center"><span class="gensmall"><img src="adr/images/classes/{CLASS_IMG}" alt="{CLASS}"><br />{CLASS}</span></td>
				</tr>
				<tr>
					<td class="row1" align="center"><span class="gen">{L_RACE}</td>
					<td class="row2" align="center"><span class="gensmall"><img src="adr/images/races/{RACE_IMG}" alt="{RACE}"><br />{RACE}</span></td>
				</tr>
				<tr>
					<td class="row1" align="center"><span class="gen">{L_ELEMENT}</td>
					<td class="row2" align="center"><span class="gensmall"><img src="adr/images/elements/{ELEMENT_IMG}" alt="{ELEMENT}"><br />{ELEMENT}</span></td>
				</tr>
				<tr>
					<td class="row1" align="center"><span class="gen">{L_ALIGNMENT}</td>
					<td class="row2" align="center"><span class="gensmall"><img src="adr/images/alignments/{ALIGNMENT_IMG}" alt="{ALIGNMENT}"><br />{ALIGNMENT}</span></td>
				</tr>
			</table>

		</span></td>

		<td class="row1" align="center">
			<table cellspacing="2" cellpadding="1" border="1" align="center" width="100%" height="100%">
				<tr>
					<td align="center" colspan="3" class="row2">
						<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
						<tr>
							<td align="center"><span class="gensmall">{L_HEALTH} {HP} / {HP_MAX}</td>
						</tr>
						<tr>
							<td align="center"><img src="adr/images/misc/bar_red_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_red_middle.gif" width="{HP_PERCENT_WIDTH}" height="13" /><img src="adr/images/misc/bar_red_end.gif" width="6" height="13" /></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="3" class="row2">
						<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
						<tr>
							<td align="center"><span class="gensmall">{L_MAGIC} {MP} / {MP_MAX}</td>
						</tr>
						<tr>
							<td align="center"><img src="adr/images/misc/bar_blue_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_blue_middle.gif" width="{MP_PERCENT_WIDTH}" height="13" /><img src="adr/images/misc/bar_blue_end.gif" width="6" height="13" /></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="6" class="row2">
						<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
						<tr>
							<td align="center"><span class="gensmall">{L_WEIGHT} {WEIGHT} / {WEIGHT_MAX}</td>
						</tr>
						<tr>
							<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{WEIGHT_PERCENT_WIDTH}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="3" class="row2">
						<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
						<tr>
							<td align="center"><span class="gensmall">{L_EXPERIENCE} {EXP} / {EXP_MAX}</td>
						</tr>
						<tr>
							<td align="center"><img src="adr/images/misc/bar_green_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_green_middle.gif" width="{EXP_PERCENT_WIDTH}" height="13" /><img src="adr/images/misc/bar_green_end.gif" width="6" height="13" /></td>
						</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="left" colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/au.gif" alt="{L_POINTS}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_POINTS}</span></td>
					<td align="center" class="row2"><span class="gen">{POINTS}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/ac.gif" alt="{L_AC}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_AC}</span></td>
					<td align="center" class="row2"><span class="gen">{AC}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/str.gif" alt="{L_POWER}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_POWER}</span></td>
					<td align="center" class="row2"><span class="gen">{POWER}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/dex.gif" alt="{L_AGILITY}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_AGILITY}</span></td>
					<td align="center" class="row2"><span class="gen">{AGILITY}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/const.gif" alt="{L_CONSTIT}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_CONSTIT}</span></td>
					<td align="center" class="row2"><span class="gen">{CONSTIT}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/int.gif" alt="{L_INT}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_INT}</span></td>
					<td align="center" class="row2"><span class="gen">{INT}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/wis.gif" alt="{L_WIS}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_WIS}</span></td>
					<td align="center" class="row2"><span class="gen">{WIS}</span></td>
				</tr>
				<tr>
					<td align="center" class="row2"><img src="adr/images/misc/cha.gif" alt="{L_CHA}"></td>
					<td align="center" class="row2"><span class="gensmall">{L_CHA}</span></td>
					<td align="center" class="row2"><span class="gen">{CHA}</span></td>
				</tr>
			</table>
		</span></td>
		<td class="row1" align="center">
			<table cellspacing="2" cellpadding="1" border="1" align="center" width="100%" height="100%">
				<tr>
					<th align="center" colspan="2">{L_BATTLE_STATISTICS}</th>
				</tr>
				<tr>
					<td align="center" class="row1" width="60%"><span class="gen">{L_BATTLE_VICTORIES}</span></td>
					<td align="center" class="row2"><span class="gen">{BATTLE_VICTORIES}</span></td>
				</tr>
				<tr>
					<td align="center" class="row1" width="60%"><span class="gen">{L_BATTLE_DEFEATS}</span></td>
					<td align="center" class="row2"><span class="gen">{BATTLE_DEFEATS}</span></td>
				</tr>
				<tr>
					<td align="center" class="row1" width="60%"><span class="gen">{L_BATTLE_FLEES}</span></td>
					<td align="center" class="row2"><span class="gen">{BATTLE_FLEES}</span></td>
				</tr>
				<tr>
               <td align="center" class="row1" width="60%"><span class="gen">{L_BATTLE_DOUBLE_KO}</span></td>
               <td align="center" class="row2"><span class="gen">{BATTLE_DOUBLE_KO}</span></td>
            </tr>
	<tr> 
      <td align="center" class="row1" width="60%"><span class="gen">{L_BATTLE_DEFIG}</span></td> 
      <td align="center" class="row2"><span class="gen">{BATTLE_DEFIG}</span></td> 
   </tr> 
   <tr> 
      <td align="center" class="row1" width="60%"><span class="gen">{L_BATTLE_DEFIP}</span></td> 
      <td align="center" class="row2"><span class="gen">{BATTLE_DEFIP}</span></td> 
   </tr>
			</table>
		</span></td>
	</tr>
	<tr>
		<td class="row1" align="center" colspan="3">
			<table cellspacing="1" cellpadding="1" border="1" align="center" width="100%" >
				<tr>
					<th align="center" colspan="6">{L_SKILLS}</th>
				</tr>
				<tr height="20">
					<td class="row2" align="center"><span class="gen"><b>{L_IMG}</b></span></td>
					<td class="row2" align="center"><span class="gen"><b>{L_LEVEL}</b></span></td>
					<td class="row2" align="center"><span class="gen"><b>{L_DESC}</b></span></td>
					<td class="row2" align="center"><span class="gen"><b>{L_PROGRESS}</b></span></td>
				</tr>
				<tr>
					<td class="row1" align="center"><img src="adr/images/skills/{MINING_IMG}" alt="{L_MINING}"></td>
					<td class="row1" align="center"><span class="gen">{MINING}</span></td>
					<td class="row1" align="center"><span class="gensmall">{L_MINING_DESC}</span></td>
					<td class="row1" align="center">
						<table align="center" width="100%" height="100%">
							<tr>
								<td align="center"><span class="gensmall">{L_MINING} : {MINING_MIN} / {MINING_MAX}</td>
							</tr>
							<tr>
								<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{MINING_BAR}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="row2" align="center"><img src="adr/images/skills/{STONE_IMG}" alt="{L_STONE}"></td>
					<td class="row2" align="center"><span class="gen">{STONE}</span></td>
					<td class="row2" align="center"><span class="gensmall">{L_STONE_DESC}</span></td>
					<td class="row2" align="center">
						<table align="center" width="100%" height="100%">
							<tr>
								<td align="center"><span class="gensmall">{L_STONE} : {STONE_MIN} / {STONE_MAX}</td>
							</tr>
							<tr>
								<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{STONE_BAR}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="row1" align="center"><img src="adr/images/skills/{FORGE_IMG}" alt="{L_FORGE}"></td>
					<td class="row1" align="center"><span class="gen">{FORGE}</span></td>
					<td class="row1" align="center"><span class="gensmall">{L_FORGE_DESC}</span></td>
					<td class="row1" align="center">
						<table align="center" width="100%" height="100%">
							<tr>
								<td align="center"><span class="gensmall">{L_FORGE} : {FORGE_MIN} / {FORGE_MAX}</td>
							</tr>
							<tr>
								<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{FORGE_BAR}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="row2" align="center"><img src="adr/images/skills/{ENCHANTMENT_IMG}" alt="{L_ENCHANTMENT}"></td>
					<td class="row2" align="center"><span class="gen">{ENCHANTMENT}</span></td>
					<td class="row2" align="center"><span class="gensmall">{L_ENCHANTMENT_DESC}</span></td>
					<td class="row2" align="center">
						<table align="center" width="100%" height="100%">
							<tr>
								<td align="center"><span class="gensmall">{L_ENCHANTMENT} : {ENCHANTMENT_MIN} / {ENCHANTMENT_MAX}</td>
							</tr>
							<tr>
								<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{ENCHANTMENT_BAR}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="row1" align="center"><img src="adr/images/skills/{TRADING_IMG}" alt="{L_TRADING}"></td>
					<td class="row1" align="center"><span class="gen">{TRADING}</span></td>
					<td class="row1" align="center"><span class="gensmall">{L_TRADING_DESC}</span></td>
					<td class="row1" align="center">
						<table align="center" width="100%" height="100%">
							<tr>
								<td align="center"><span class="gensmall">{L_TRADING} : {TRADING_MIN} / {TRADING_MAX}</td>
							</tr>
							<tr>
								<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{TRADING_BAR}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="row2" align="center"><img src="adr/images/skills/{THIEF_IMG}" alt="{L_THIEF}"></td>
					<td class="row2" align="center"><span class="gen">{THIEF}</span></td>
					<td class="row2" align="center"><span class="gensmall">{L_THIEF_DESC}</span></td>
					<td class="row2" align="center">
						<table align="center" width="100%" height="100%">
							<tr>
								<td align="center"><span class="gensmall">{L_THIEF} : {THIEF_MIN} / {THIEF_MAX}</td>
							</tr>
							<tr>
								<td align="center"><img src="adr/images/misc/bar_orange_begin.gif" width="6" height="13" /><img src="adr/images/misc/bar_orange_middle.gif" width="{THIEF_BAR}" height="13" /><img src="adr/images/misc/bar_orange_end.gif" width="6" height="13" /></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="row1" align="center" colspan="3">
			<table cellspacing="1" cellpadding="1" border="1" align="center" width="100%" >
				<tr>
					<th align="center" colspan="3">{L_ITEMS}</th>
				</tr>
				<tr>
					<td class="row2" align="center" colspan="2"><span class="gen">{L_COUNT_ITEMS} : {ITEMS_OWNED}</span></td>
				</tr>
				<tr>
					<td class="row1" align="center" ><span class="gen">{L_COUNT_ITEMS_INVENTORY} : {ITEMS_INVENTORY}</span></td>
					<td class="row1" align="center" ><span class="gen"><a href="{INVENTORY_LINK}">{L_SEE_INVENTORY}</a></span></td>
				</tr>
				<tr>
					<td class="row1" align="center" ><span class="gen">{L_COUNT_ITEMS_SHOPS} : {ITEMS_SHOP}</span></td>
					<td class="row1" align="center" ><span class="gen">
						<!-- BEGIN shop -->
						<a href="{SHOP_LINK}">{L_SEE_SHOP}</a>
						<!-- END shop -->
						<!-- BEGIN no_shop -->
						{L_NO_SHOP}
						<!-- END no_shop -->
					</span></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<br />
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
  <tr> 
	<td class="catLeft" align="center" height="28" colspan="2"><b><span class="gen">{L_MEDAL_INFORMATION}</span></b></td>
  </tr>
  <tr>
	<td class="row1"  align="center" valign="middle" width="10%"><span class="gen">{L_USER_MEDAL}:&nbsp;<b>{USER_MEDAL_COUNT}</b></span>
<!-- BEGIN medal -->
<br /><br />{medal.MEDAL_BUTTON}
<!-- END medal -->
	</td>
	<td class="row1" valign="middle" align="left" nowrap="nowrap" width="100%">
<!-- BEGIN details -->
&nbsp;{details.MEDAL_IMAGE_SMALL}&nbsp;
<!-- END details -->
	</td>
  </tr>
</table>

<br />
<div style="width: 100%; overflow: hidden; display: none;" id="toggle_medal">
<a name="medal">

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
  <tr> 
	<th class="thCornerL" align="center" nowrap="nowrap">&nbsp;{L_MEDAL_NAME}&nbsp;</th>
	<th class="thCornerR" align="center" nowrap="nowrap">&nbsp;{L_MEDAL_DETAIL}&nbsp;</th>
  </tr>
<!-- BEGIN details -->
  <tr>
	<td class="row2" nowrap="nowrap">
		<table width="100%" cellspacing="1" cellpadding="3" border="0">
		<tr><td align="center"><span class="genmed">{details.MEDAL_CAT}</span></td></tr>
		<tr><td align="center"><span class="genmed">{details.MEDAL_NAME}</span></td></tr>
		<tr><td align="center">{details.MEDAL_IMAGE}</td></tr>
		<tr><td align="center"><span class="genmed">{details.MEDAL_COUNT}</span></td></tr></table></td>
	<td class="row2" valign="top">
		<table width="100%" cellspacing="1" cellpadding="3" border="0">
		<tr><td><span class="gen">{details.L_MEDAL_DESCRIPTION}: <b>{details.MEDAL_DESCRIPTION}</b></span></td></tr>
		<tr><td class="quote">
			<table width="100%" cellspacing="1" cellpadding="3" border="0">
			<tr><td><span class="genmed">{details.MEDAL_ISSUE}</span></td></tr>
			</table>
		</td></tr>
	</table></td>
  </tr>
<!-- END details -->
</table>
</a>
</div>
<!-- END adr_profile -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
	<td><br />{JUMPBOX}</td>
	</tr>
</table>
busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

I've just installed the mod. I've done the beginning fix, and have done all of the SQLs. I've installed all of the file and edited all of the topics[ prbly with a mistake tho >.>]

But, when I go to the admin cp, i get this in the left panel:

Code: Select all

Fatal error: Cannot redeclare get_info() in /home/virtual/site67/fst/var/www/html/fever/admin/admin_medal.php on line 68[/quote]

someone plz help
Setty
Scali
Registered User
Posts: 51
Joined: Wed Dec 01, 2004 8:54 pm
Location: http://www.monloup.net
Contact:

Post by Scali »

Sorry, but i can't help you, i have a problem me to.

Well, if someone can help me .....
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

:arrow: busterblader103: I would suggest removing the admin_medal.php file and see if the admin panel works again. Then, copy the file in again from the source. Just to make sure the copy got across without picking up an error. Then, check again. You should not have to modify the file at all. Also, just to ask, did you do the DB update before going to the admin panel?

:arrow: Scali: What are you trying to do in the profile? Have a medal count in there?
Post Reply

Return to “[2.0.x] MODs in Development”