[ABD] HP/MP/EXP Level Bar MOD [0.0.1]

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Greight » Sat Aug 01, 2009 4:28 pm

maese wrote: The easier way i think that is:
First copy the colour that you want in HEX. (And, in the next step, change the ****** with the code u've just copied)
Then:

Code: Select all

----FIND----
{postrow.POSTER_LEVEL}

----BEFORE ADD----
<font color="#******">

----AFTER ADD----
</font>
:mrgreen:
Thx buddy
This worked :mrgreen: :mrgreen:

User avatar
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Greight » Sat Aug 01, 2009 6:36 pm

When I enable Ajax mode no one can post on the forum. The following message is shown :
Your message contains too few characters

What's the problem ? :(

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Sat Aug 01, 2009 8:38 pm

Greight wrote:When I enable Ajax mode no one can post on the forum. The following message is shown :
Your message contains too few characters

What's the problem ? :(
I think your problem has nothing to do with the "HP/MP/EXP Level Bar MOD"...

User avatar
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Greight » Sat Aug 01, 2009 8:52 pm

Oh I'm so sorry. I posted in the wrong topic. :oops: Thanks for ur nice mod.

Spmething I like to have for this MOD is its availability in users' profiles. Is this possible?

AMD
Registered User
Posts: 5
Joined: Fri Feb 20, 2009 9:32 am

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by AMD » Thu Aug 20, 2009 9:23 pm

Greight wrote:Spmething I like to have for this MOD is its availability in users' profiles. Is this possible?
I want this function too! This is a really cool MOD! 8-)

//AMD

peter3
Registered User
Posts: 5
Joined: Fri Sep 11, 2009 11:48 am

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by peter3 » Fri Sep 11, 2009 12:35 pm

Hey there; I hope there is still support for this mod! I have installed the mod, but I can't understand the calculation for levels.

I want to change the level after every 8th post. So:

To reach Level 2 you need xx/8 posts
To reach Level 3 you need xx/16 posts
To reach Level 4 you need xx/24 posts
To reach Level 5 you need xx/32 posts
xx = Your own posts

Well, here namely is the code, I hope someone can help me:

Code: Select all

 /* Determine Level
   *
   * A users level is determined by their total number of posts.
   * We use a nice mathmatical formula to translate a post count
   * into a level.
   * Note, a user with zero posts is level 0
   *
   */
   
   if($user_cache[$poster_id]['posts'] < 1)
   {
         $level_level = 0;
   }
   else
   {
         $level_level = floor( pow( log10( $user_cache[$poster_id]['posts'] ), 3 ) ) + 1;
   }

Code: Select all

   /* Determine EXP percentage
   *
   * Experience is determined by how far the user is away
   * from the next level. This is expressed as a percentage.
   *
   * Note, a user of level 0 has 100% experience. Making one post
   * will put them at level 1. Also, a user that is shown to have 100%
   * experience, will go up a level on their next post.
   *
   */

   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_exp = $user_cache[$poster_id]['posts'] . ' / ' . $level_posts_for_next;
      $level_exp_percent = floor( ($user_cache[$poster_id]['posts'] - $level_posts_for_this) / max(1,($level_posts_for_next - $level_posts_for_this)) * 100);   
   }

   //
   // Level Bar 0.0.1 [ www.TeskilatForum.neT ] - End
   //

Trokal
Registered User
Posts: 399
Joined: Fri Oct 23, 2009 5:13 pm

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by Trokal » Tue Dec 22, 2009 10:27 am

is it stable to use? :)

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Tue Dec 22, 2009 3:55 pm

not 100% stable, is also still "beta" but the time has come to update this mod :D

currently I have no time :roll:

User avatar
karot
Registered User
Posts: 61
Joined: Fri Apr 17, 2009 2:55 pm
Location: http://sedxbor.com
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by karot » Thu Dec 24, 2009 5:54 am

do u have other download link please ?

everytime when i click on download link showed on the first post

show a error message.

if can u put the file in other site or send other link?

thank u so much
sedxbor.com

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Thu Dec 24, 2009 6:12 pm

karot wrote:do u have other download link please ?

everytime when i click on download link showed on the first post

show a error message.

if can u put the file in other site or send other link?

thank u so much
see first post, i have added new link :)

User avatar
karot
Registered User
Posts: 61
Joined: Fri Apr 17, 2009 2:55 pm
Location: http://sedxbor.com
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by karot » Fri Dec 25, 2009 4:00 pm

thx ^^
sedxbor.com

User avatar
karot
Registered User
Posts: 61
Joined: Fri Apr 17, 2009 2:55 pm
Location: http://sedxbor.com
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by karot » Fri Dec 25, 2009 4:19 pm

[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1676: Undefined variable: posts_per_day
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1676: Undefined variable: posts_per_day
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1676: Undefined variable: posts_per_day
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this


some can help me
sedxbor.com

User avatar
EsmerÖzcan
Registered User
Posts: 83
Joined: Sat Jun 21, 2008 1:46 pm
Location: Germany/Nürnberg
Name: Özcan Akbulut
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by EsmerÖzcan » Fri Dec 25, 2009 4:44 pm

karot wrote:[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1676: Undefined variable: posts_per_day
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1676: Undefined variable: posts_per_day
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1676: Undefined variable: posts_per_day
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1780: Undefined variable: level_posts_for_this


some can help me
have you debug on?

User avatar
karot
Registered User
Posts: 61
Joined: Fri Apr 17, 2009 2:55 pm
Location: http://sedxbor.com
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by karot » Fri Dec 25, 2009 7:56 pm

yes...

when i put debug on show it
how can i solve this ?

do u have any ideas ? pliz ^^
sedxbor.com

User avatar
karot
Registered User
Posts: 61
Joined: Fri Apr 17, 2009 2:55 pm
Location: http://sedxbor.com
Contact:

Re: [Beta] HP/MP/EXP Level Bar MOD [0.0.1]

Post by karot » Sat Dec 26, 2009 12:56 pm

i fixed

Open:

Code: Select all

viewtopic.php
Find and delete:

Code: Select all

         if($posts_per_day >= $level_avg_ppd)
Find and delete:

Code: Select all

         else
         {
               $level_hp_percent = floor( $level_user_ppd / ($level_avg_ppd / 50) );
         }
Find and delete:

Code: Select all

 - $level_posts_for_this
Find and delete:

Code: Select all

 - $level_posts_for_this
if u wanna see if works looks in my forum sedxbor.com
sedxbor.com

Locked

Return to “[3.0.x] Abandoned MODs”