[BETA] HP/MP/EXP Mod

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.
PuterBD
Registered User
Posts: 4
Joined: Sun May 12, 2002 9:46 pm

Problem...

Post by PuterBD »

Okay, I just installed this mod on my forums. But the problem is, the MP image will only show up in users profiles and the HP/EXP will only show up in the actual post. There are no more "YOUR_TEMPLATE_NAME"s to be filled in so I don't know what to do.
PuterBD
Registered User
Posts: 4
Joined: Sun May 12, 2002 9:46 pm

Found it

Post by PuterBD »

I found the culprit sorry >_<
User avatar
auron8785
Registered User
Posts: 243
Joined: Wed Mar 06, 2002 1:28 am
Contact:

Post by auron8785 »

okay. When i post or any other mod or admin post there is not a error. But when a regular member post i get a error at the top saying this

Warning: Trying to raise a nonpositive value to a broken power in viewtopic.php on line 1391


Does anyone know why.
Live life to the fullest...
Dont forget who you are...
You'll never know until you walk in their shoes...
User avatar
YellowGirls
Registered User
Posts: 168
Joined: Mon Apr 15, 2002 10:08 am

Post by YellowGirls »

I have installed this Mod but there is a very bad looking problem in userprofile´s!One of the tables displayed wrong!Only when a user choose an Avatar the table displayed correct! Here two pics that you easier can understand what i mean!

Pic 1: User that choose an Avatar

Pic 2: User that choose not an Avatar

I think the error must in profile_view_body but i can´t find it :(

Here my profile_view_body.tpl Code:
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
</tr>
</table>

<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<th class="thHead" colspan="2" height="25" nowrap="nowrap">{L_VIEWING_PROFILE}</th>
</tr>
<tr>
<td class="catLeft" width="40%" height="28" align="center"><b><span class="gen">{L_AVATAR}</span></b></td>
<td class="catRight" width="60%"><b><span class="gen">{L_ABOUT_USER}</span></b></td>
</tr>
<tr>
<td class="row1" height="6" valign="top" align="center">{AVATAR_IMG}<br /><span class="postdetails">{POSTER_RANK}</span></td>
<td class="row1" rowspan="3" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
<td width="100%"><b><span class="gen">{JOINED}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_TOTAL_POSTS}:&nbsp;</span></td>
<td valign="top"><b><span class="gen">{POSTS}</span></b><br /><span class="genmed">[{POST_PERCENT_STATS} / {POST_DAY_STATS}]</span> <br /><span class="genmed"><a href="{U_SEARCH_USER}" class="genmed">{L_SEARCH_USER_POSTS}</a></span></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LOCATION}:&nbsp;</span></td>
<td><b><span class="gen">{LOCATION}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_WEBSITE}:&nbsp;</span></td>
<td><span class="gen"><b>{WWW}</b></span></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_OCCUPATION}:&nbsp;</span></td>
<td><b><span class="gen">{OCCUPATION}</span></b></td>
</tr>
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
<!-- [BEGIN LEVEL MOD] -->
<tr>
<td valign="top" align="right"><span class="gen">Level:</span></td>
<td><b><span class="gen">{LEVEL}&nbsp;</span></b></td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">Aktivität:</span>
<span class="postdetails"><b>{HP}</b></span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod/hp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/hp_bar_fil.gif" width="{HP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/hp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/level_bar_emp.gif" width="{HP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td>&nbsp;</td>
<td align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">Popularität:</span>
<span class="postdetails"><b>{MP}</b></span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod/mp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/mp_bar_fil.gif" width="{MP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/mp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/level_bar_emp.gif" width="{MP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td>&nbsp;</td>
<td align="left">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left"><span class="postdetails">Erfahrung:</span>
<span class="postdetails"><b>{EXP_WIDTH}%</b></span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="templates/subSilver/images/level_mod/exp_bar_left.gif" width="2" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/exp_bar_fil.gif" width="{EXP_WIDTH}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/exp_bar_fil_end.gif" width="1" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/level_bar_emp.gif" width="{EXP_EMPTY}" height="12" /></td>
<td><img src="templates/subSilver/images/level_mod/level_bar_right.gif" width="1" height="12" /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- [END LEVEL MOD] -->
</table>
</td>
</tr>
<tr>
<td class="catLeft" align="center" height="28"><span class="gen"><b>{L_CONTACT} {USERNAME}</b> </span></td>
</tr>
<tr>
<td class="row1" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_EMAIL_ADDRESS}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{EMAIL_IMG}</span></b></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_PM}:</span></td>
<td class="row1" valign="middle"><b><span class="gen">{PM_IMG}</span></b></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>
<td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_YAHOO}:</span></td>
<td class="row1" valign="middle"><span class="gen">{YIM_IMG}</span></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_AIM}:</span></td>
<td class="row1" valign="middle"><span class="gen">{AIM_IMG}</span></td>
</tr>
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_ICQ_NUMBER}:</span></td>
<td class="row1"><script language="JavaScript" type="text/javascript"><!--

if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 )
document.write(' {ICQ_IMG}');
else
document.write('<table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">{ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{ICQ_STATUS_IMG}</div></div></td></tr></table>');

//--></script><noscript>{ICQ_IMG}</noscript></td>
</tr>
</table>
</td>
</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="right"><span class="nav"><br />{JUMPBOX}</span></td>
</tr>
</table>


I hope anyone have understand what i mean and can help me because it looks very bad so :(

Greets YellowGirls

BTW: Sorry for my Bad English but im From Germany :oops:
User avatar
YellowGirls
Registered User
Posts: 168
Joined: Mon Apr 15, 2002 10:08 am

Post by YellowGirls »

Can nobody help me? :( :(

YellowGirls
fogwraith
Registered User
Posts: 7
Joined: Thu May 09, 2002 2:31 pm
Location: Paris
Contact:

Post by fogwraith »

Here's a *BUMP* for the "No Mana Regeneration" problem.

No one knows a solution to this? It would be very nice if someone could take a look at it, since it seems to affect more than one person from what I gathered in this thread.

Anyone?
fog:W:raith
Eiri Masami
Registered User
Posts: 3
Joined: Thu May 16, 2002 9:20 pm
Contact:

Very nice

Post by Eiri Masami »

:) very nice mod NightHawk!

I was just searching a open HP/MP/EXP Mod.
I was dreaming about it, many vBulletin coders done this 'hack'...

How about now we develop a Battle Mode (realtime game)?
:: Deus Ex Machina ::
Orion Tatsihama
Registered User
Posts: 5
Joined: Wed May 08, 2002 1:49 am
Location: Maryland, USA
Contact:

Post by Orion Tatsihama »

I am the only one suffering from the no MP regen problem on my board, but I think I'm the only one in the GMT-5 timezone (eastern). :?
Solution?
sj26
Registered User
Posts: 447
Joined: Fri Dec 14, 2001 4:06 pm
Location: /dev/cpu/[0-9]+ :D
Contact:

Post by sj26 »

Orion Tatsihama wrote: This is really nice. I was gonna make a mod that did this but you beat me to the punch :)

I wonder how hard it would be to add an inventory to phpBB. It would be for Roleplay purposes and I could use it to reward members and stuff. The hard part would be: the images and the database code...


I am currently doing this is phpBB2-RPG. It will have battles, items, TRUE HP/MP/EXP... etc....
[ Working on: It's a secret! ]
[ Links: My Mods | My Site | PALGN ]
Deques
Registered User
Posts: 22
Joined: Fri Apr 05, 2002 12:51 pm
Contact:

Post by Deques »

this mod is not working well. some members dont have any mp and the exp is too low for next level. I am in level 22 and need 59 exp for next level. in a real RPG it would be much higer exp requeiremt (<--- damn forgot how spell it) for next level

I guess I'll wait for sj26's RPG Mod
I am gonna hunt you while you are eating your cheese
gothenks
Registered User
Posts: 52
Joined: Fri Apr 12, 2002 7:19 am

Post by gothenks »

Hello have some problem with the mod
this the error
Warning: Trying to raise a nonpositive value to a broken power in viewtopic.php on line 1426


thi the line...
$level_posts_for_this = max(1, floor( pow( 10, pow( ($level_level - 1), (1/3) ) ) ) );


What's mean..??? the bar are all ok but I have some errors on botto of logo of forum.... any help me..?
Tks

PS

Teh comlite code are this
if($level_level == 0)
{
$level_exp = "0 / 0";
$level_exp_percent = 100;
}
else
{
$level_posts_for_next = floor( pow( 10, pow( $level_level, (1/3) ) ) );


$level_posts_for_this = max(1, floor( pow( 10, pow( ($level_level -1), (1/3) ) ) ) );

$level_exp = ($postrow[$i]['user_posts'] - $level_posts_for_this) . " / " . ($level_posts_for_next - $level_posts_for_this);

$level_exp_percent = floor( ( ($postrow[$i]['user_posts'] - $level_posts_for_this) / max( 1, ($level_posts_for_next - $level_posts_for_this ) ) ) * 100);
}
gothenks
Registered User
Posts: 52
Joined: Fri Apr 12, 2002 7:19 am

more info for error

Post by gothenks »

Hi I just see that the error are for only post of the topic.. if are only onw posto all are ok if the post in the topic are 2 the error is 1 if post are 3 the error are 2......
Why..???
:(:(
Shawn1036902
Registered User
Posts: 54
Joined: Fri May 17, 2002 9:24 pm

Post by Shawn1036902 »

I have a problem. I installed it on my subSilver template and the name and info's on the left and the post is on the right! Don't believe me?

Go register at it, change it to subSilver, and look at a topic.
http://members.lycos.co.uk/shawn1036902 ... /index.php
davidh44
Registered User
Posts: 386
Joined: Sat Mar 09, 2002 5:56 am

Post by davidh44 »

Cool mod!

One suggestion...in the mod install text file, I found 35 instances of either:
YOUR_TEMPLATE_NAME
YOUR_TEMPLATE
subSilYOUR_TEMPLATEver

Might I suggest just changing all of this to subSilver as this is the most common (and default) style, and letting people know at the top to do a "find and replace" for subSilver if they want to use this mod with another style.
Fyron
Registered User
Posts: 12
Joined: Wed May 08, 2002 4:48 am

Post by Fyron »

Hi! I installed the mod. It works properly when you view a member's profile, but not when you view posts. It doesn't display the bars or the numbers associated with each value. My forum is located at http://galileo.spaceports.com/~kazharii ... irect.html.
Locked

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