View Full Version : RPG Stats, yet again!
Zachery
08-02-2005, 10:00 PM
This hack is for RPG Based Stats for your users. Mostly just somthing nice to lookat.
If you are wondering how stats are calcuated: https://vborg.vbsupport.ru/showpost.php?p=769270&postcount=37
v1.2 fixed mp
To upgrade, delete the old RPG STats plugin, and add the new one provided in the zip.
All Hail Knoman the original (as far as I can see) creator of this hack which is now spaning vB2.0-3.5
Bro_Joey_Gowdy
08-03-2005, 09:59 PM
1st !!
Thanks for porting this Zach, I greatly appreciate it.
*Rowdy click install, then downloads and installs*
I'll post a picture asap.
Link14716
08-04-2005, 01:03 AM
One zip file please, Zachery. :p *cough*
Zachery
08-04-2005, 01:16 AM
I detest zip files :p
Jenta
08-04-2005, 03:27 AM
thems the rules, all hacks must be released in one zip file :p
btw, whats is RPG stats?
RPG means role playing game I presume...
vBintense
08-04-2005, 03:30 AM
I hit install, although I altered it to work more like the old vb2 activity hack (rpg does not fit the board) but the code was useful in making part of an activity hack.
Bro_Joey_Gowdy
08-04-2005, 11:51 AM
btw, whats is RPG stats?
RPG means role playing game I presume...
Its the Hp/Mp/Exp/Level Hack I requested here :
https://vborg.vbsupport.ru/showthread.php?t=93153
The vb3.0.x version can be found here:
https://vborg.vbsupport.ru/showthread.php?t=59750
:nervous:
TheComputerGuy
08-04-2005, 12:16 PM
as requested.
I thought personally it was the image stats...but this is cool too :)
Barakat
08-04-2005, 01:06 PM
i want it to be like this ..... but thanks installed
Zachery
08-04-2005, 01:22 PM
i want it to be like this ..... but thanks installed
I was being lazy and getting it out :p
I will update the installer with graphical stats soon :)
reteep
08-04-2005, 04:12 PM
What's the source for the calculation? How is it being calculated?
Zachery
08-04-2005, 05:43 PM
What's the source for the calculation? How is it being calculated?
Math!
dastar
08-05-2005, 07:12 PM
The vb3.0.x version can be found here:
https://vborg.vbsupport.ru/showthread.php?t=59750
:nervous:
That's really cool. Make this one the same and i'll be plenty happy. :)
Kaelon
08-06-2005, 01:53 AM
Math!
Can you be a bit more specific? How is HP, MP, and Exp being derived? How is it calculating Level?
dastar
08-10-2005, 11:49 AM
Any chance we'll see image stats soon? :)
haiboss
08-10-2005, 01:03 PM
You can use the image version for this modication
This is my way :
Upload the provided XML file
Open template posbit or postbit_legacy
where you see fit.
Level: $showlevel<br />
HP: $hp / $maxhp
<table width="100%" >
<tr style="background-image:url(level/red_faded.gif)">
<td nowrap="nowrap" ><img src="level/red_left.gif" height="8"><img src="level/red.gif" width="$hpf% " height="8" /><img src="level/red_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
<span>MP: $mp / $maxmp</span>
<table width="100%" >
<tr style="background-image:url(level/green_faded.gif)">
<td nowrap="nowrap" ><img src="level/green_left.gif" height="8"><img src="level/green.gif" width="$mp / $maxmp" height="8" /><img src="level/green_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
<span>EXP: $ep% </span>
<table width="100%" >
<tr style="background-image:url(level/grey_faded.gif)">
<td nowrap="nowrap"><img src="level/grey_left.gif" height="8"><img src="level/grey.gif" width="$ep%" height="8" /><img src="level/grey_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
Upload level directory to your forum root
All Done !
haiboss
08-11-2005, 05:50 PM
Any one can fix the MP ?
Zachery
08-11-2005, 06:11 PM
Any one can fix the MP ?
Whats "wrong" with the mp?
Wait I see whats wrong, I didn't update a varible for 3.5, will fix shortly,
Will add your instructions for pretty stats too as long as you don't mind :)
haiboss
08-11-2005, 06:39 PM
The MP is not work , it show 0 / 0
dastar
08-29-2005, 04:54 PM
What happened to the download link for this mod?
SnitchSeeker
09-01-2005, 08:32 AM
haiboss, I love your graphical version! Very nice job!
Still, I wonder the same as Kaelon. How are the stats derived (other than math)? What figures does it use to come up with these variables. Or are they all random and completely pointless (other than for fun)?
dastar
09-01-2005, 01:50 PM
I'd still like to know what happened to the download link for this mod. :(
Zachery
09-01-2005, 02:12 PM
odd... I never remvoed this.
Zachery
09-02-2005, 11:54 AM
MP is fixed now.
dastar
09-02-2005, 02:27 PM
MP is fixed now.
Thanks!
Bojangles
09-03-2005, 02:57 AM
I was able to install this and get it up and running on a temp Style just fine (before I put it in the main style that everyone else uses). However, it looks like the greater someone's level is, the more their left column sticks out into the post. It looks like anyone who is over level 20 causes problems.
I copied code that haiboss provided in the install.txt file.
Attached is a screenshot of how it looks. Let me know if you guys need anymore info from me regarding this.. would love to get this awesome hack up and running for everyone :)
rjerina
09-03-2005, 05:52 AM
that a problem with the graphical part of the mod. maybe haiboss can fix it?
eNforce
09-03-2005, 03:11 PM
Any reason why this users' stats stretch?
Edit: Sorry, didn't see Bojangles post on the same issue.
LockeAG
09-03-2005, 05:32 PM
Any reason why this users' stats stretch?
Edit: Sorry, didn't see Bojangles post on the same issue.
I think u are using the code of haiboss isn't it? if not.. well hope this help you
only change the width , with this values $hpf%, $mpf% and $ep%.
change in the code of haiboss :
Find
width="$mp / $maxmp"
change to
width="$mpf%"
and also you can reduce the table width:
changing this vlaues:
Find (they are 3 of them)
<table width="100%" >
change
<table width="the porcent you want" >
Hope this help.
eNforce
09-03-2005, 05:59 PM
Thank you, that worked wonderfully :)
Bojangles
09-03-2005, 08:34 PM
That did work great.. thanks! :)
Toky0
09-06-2005, 05:57 PM
Love this hack, great work Zachery! :cool:
bi11i
09-06-2005, 09:49 PM
I like this mod, I can see that it provides some interesting figures, but for those of us that know nothing of RPG, what ARE these stats exactly? HP, MP, EXP? I can imagine that EXP might stand for experience, how is experience calculated?haiboss, I love your graphical version! Very nice job!
Still, I wonder the same as Kaelon. How are the stats derived (other than math)? What figures does it use to come up with these variables. Or are they all random and completely pointless (other than for fun)?
LockeAG
09-07-2005, 04:37 AM
I like this mod, I can see that it provides some interesting figures, but for those of us that know nothing of RPG, what ARE these stats exactly? HP, MP, EXP? I can imagine that EXP might stand for experience, how is experience calculated?
Mh.. well...
HP : HIT POINTS
MP: MAGIC POINTS
EXP: EXPERIENCE
and I think teh experience its calculated based on the Join Time and the number of post.
I would like to know if its possible to calculate the MP based on the Reputation if it is in use .
bi11i
09-07-2005, 01:58 PM
Mh.. well...
HP : HIT POINTS
MP: MAGIC POINTS
EXP: EXPERIENCE
and I think teh experience its calculated based on the Join Time and the number of post.
I would like to know if its possible to calculate the MP based on the Reputation if it is in use .
well that makes a little more sense, but yes - how are the MP's and HP's calculated?
Zachery
09-07-2005, 02:51 PM
well that makes a little more sense, but yes - how are the MP's and HP's calculated?
Again its all math :p
Let me go find Komans post.. whereever it may be hidden deep in the recesses of the vBulletin 2 hacks.
Zachery
09-07-2005, 02:55 PM
Quote:Knoman
HP drops and rises according to the members activeness.
MP determins how long a user has been with the forums, and how active they are.
EXP determins how close a user is to reaching the next level.
Let's break it down to simple English, shall we?
$level = pow (log10 ($post[posts]), 3);
This is a simple logarithm that will calculate the how much post a member needs in order to get to the next level. This is the engine that will control all other calculations. Now, I've cubed it so leveling resembles Final Fantasy; where the max level is 99. If you are into D&D, squaring the formula would be best, requiring a lot of post before a user can reach level 20. In short, the higher the exponent, the quicker it is to level up.
$ep = floor (100 * ($level - floor ($level)));
This is the basis for the Experience system. What i did here, was take the remainder (or mod) from the Level logarithm and converted it to a percentage. I wasnt sure if PHP had a MOD function, so I did it the hard way.
$showlevel = floor ($level + 1);
I cant have a user with level zero, but i didnt want to affect the engine with a false number either. So, I created another variable $showlevel and added 1, which will only be used to show users, and wont affect the calculations.
$hpmulti =round ($postsperday / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
This code here was to add to the randomness. This is my HP bonus multiplier. I took the post per day and divided by six and rounded it to the tenths decimal. I use a few IF functions to prevent it from being too high and too low.
$maxhp = $level * 25 * $hpmulti;
Determins the Max HP. Not much to be said here, 25 just seem to be a nice number.
$hp= $postsperday / 10;
If a person couldnt perform a ten post per day average, HP will drop.
if ($hp >= 1) {
$hp= $maxhp;
} else {
$hp= floor ($hp * $maxhp);
}
Sets the limit on how high your HP will go. Keeps it at or under the Max HP
$hp= floor ($hp);
$maxhp= floor ($maxhp);
HP calcualations are down. Rounding down for viewing sake.
if ($maxhp <= 0) {
$zhp = 1;
} else {
$zhp = $maxhp;
}
Debugs the Divide by Zero error.
$hpf= floor (100 * ($hp / $zhp)) - 1;
Is used in the templates.
$maxmp= ($jointime * $level) / 5;
Determins Max MP. Again, the 5 just seems right.
$mp= $post[posts] / 3;
Determins MP, not sure why I chose to do what I did, but it works. This is the reason why MP is still a mystery to my members and even to me.
if ($mp >= $maxmp) {
$mp = $maxmp;
}
Keeps MP from going above its max.
$maxmp = floor ($maxmp);
$mp = floor ($mp);
MP calculations done. Rounding down.
if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
Debugs the divide by zero error.
$mpf= floor (100 * ($mp / $zmp)) - 1;
Is used in the templates.
like i've mentioned earlier, this hack was spun off of role playing games (i.e. final fantasy). hp stands for health points. the more your points, well.... the better your health is. mp stands for magic points, your ability to cast certain spells and such. and, well... you know what experience is.
now, what drives this entire system is this one code:
$level = pow (log10 ($post[posts]), 3);
what that code does is set the standard at when a member is able to level up, and how much hp/mp s/he should recieve. a low level member is able to reach the next level very easily (only requiring a handful of posts). those at the high end levels would require a whole lot more posts to achieve the next level.
the rise and fall of the hp meter is determine by this variable $postperday. what that does is take the total number of posts and devide it by the total number of days the person has been registered. the quotient is then taken and divided even further by the max hp... by doing so, it gives me a percentage that changes constantly.
i've feel that i've explained everything the best way that i could. any further would be me teaching you how to read and understand php... or any programming language for the matter. none of this is technical, it's mostly multiplication and division. this was my very first project with php. i knew nothing about it. but what i did was open a math book and headed to php.net.
you give a man a fish, he feeds for a day.
you teach a man to fish, he feeds for life.
bi11i
09-07-2005, 03:00 PM
...the post I never could find. Thanks!
Zachery
09-07-2005, 03:20 PM
Those are several of his posts from his original thread :)
I updated the hack post with a link to the post above and gave credits where credit was due
angelo70
09-11-2005, 12:49 AM
plz..
i want view private message..
Zachery
09-12-2005, 05:36 PM
plz..
i want view private message..
plz make sense when you post :)
angelo70
09-12-2005, 05:55 PM
plz make sense when you post :)
oh :)
Thanks ^^
freebase69
10-12-2005, 01:57 PM
Is there a way to incorporate this with RPG Inferno?
cedced
10-12-2005, 04:41 PM
have mod + - EXP ?
Trovador
10-23-2005, 12:06 PM
Good hack, congratuletion!
Edit:
Hi, i'm interested in changing how you see the level statistics , i want to use pictures of the digits instead of just numbers. like you see in the image.
What should I change to get this??
Campbell
10-23-2005, 03:49 PM
This is great stuff Zachery. Here's a question. How difficult would it be to get a stats package like this that's customizable via the admin cp. Here's why I'm asking.
I run a rpg that has online, tabletop and larp components. I need to have stats on the forums, but I need to be able to edit those stats manually. (Both new stats and add/subtract from stats.)
Of course this is outside the realm of the topic so feel free to pm me.
Thanks
Campbell
GuaRRand
10-23-2005, 05:01 PM
Any reason why this users' stats stretch?
Edit: Sorry, didn't see Bojangles post on the same issue.
I had thesame kinda problem...
BUt mine was far worse since i have a large forum with users who have 10-20.000 posts.
This makes the bars MILES long.
:(
GuaRRand
10-23-2005, 08:55 PM
Ok, fixed that :)
Question though....
Can you make it so that it also puts ranks to the levels?
So like...at level 1-10 you're a squire
11-50 your a footsoldier
51-150 you're a pikeman etc..
SOmething like that
GuaRRand
10-26-2005, 08:09 PM
btw,
How is the EXP calculated??
EXP (Experience): determins how close a user is to reaching the next level.
This doesnt tell me how its being calculated....what i must do to get more EXP.
freebase69
10-26-2005, 08:45 PM
btw,
How is the EXP calculated??
This doesnt tell me how its being calculated....what i must do to get more EXP.
post...post...post some more....see where this is going?
GuaRRand
10-26-2005, 08:49 PM
post...post...post some more....see where this is going?
Ontop of the pile?
Funchiestz
11-17-2005, 04:32 AM
I had thesame kinda problem...
BUt mine was far worse since i have a large forum with users who have 10-20.000 posts.
This makes the bars MILES long.
:(
so how to fix that? :(
Snort_2005
11-17-2005, 07:11 AM
Is there a way to incorporate this with RPG Inferno?
No there is not.. However, there was a hack released that derieved tons of info from the db if you had RPG Inferno installed.. The layout of his dropdown just didn't look right so I had touched it up.. however, here is a screenshot of mine.
Zachery
11-17-2005, 07:40 AM
btw,
How is the EXP calculated??
This doesnt tell me how its being calculated....what i must do to get more EXP.
$level = pow (log10 ($post[posts]), 3);
This is a simple logarithm that will calculate the how much post a member needs in order to get to the next level. This is the engine that will control all other calculations. Now, I've cubed it so leveling resembles Final Fantasy; where the max level is 99. If you are into D&D, squaring the formula would be best, requiring a lot of post before a user can reach level 20. In short, the higher the exponent, the quicker it is to level up.
From my post a few posts back, if you want something more .. well just more, look elsewhere, these are just basic stats.
Zacarias
11-17-2005, 09:07 AM
Got it installed no problem, and it's working great. Another cool addition! ^_^
LockeAG
11-29-2005, 07:27 AM
Hi .. I have a big questioon .. I think this MOD would not be update right, because is totally stable...
But I would like to know how does I can make that for example the Level be based in the REPUTATION also...
I hope this can be possible
PD sorry about my english
SupremeWeapon
12-21-2005, 06:42 AM
I just tried installing this, and I can;t seem to get it to work.
I know I'm am behind on versions. 3.5.1 but this plugin is 3.5.0 so does it still work for 3.5.1?
I import the plugin and add the code to postbit legecy but it shows nothing
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal" align="$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div class="smallfont">
<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>
Level: $showlevel<br />
HP: $hp / $maxhp
<table width="100%" >
<tr style="background-image:url($stylevar[imgdir_misc]/level/red_faded.gif)">
<td nowrap="nowrap" ><img src="$stylevar[imgdir_misc]/level/red_left.gif" height="8"><img src="$stylevar[imgdir_misc]/level/red.gif" width="$hpf% " height="8" /><img src="$stylevar[imgdir_misc]/level/red_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
<span>MP: $mp / $maxmp</span>
<table width="100%" >
<tr style="background-image:url($stylevar[imgdir_misc]/level/green_faded.gif)">
<td nowrap="nowrap" ><img src="$stylevar[imgdir_misc]/level/green_left.gif" height="8"><img src="$stylevar[imgdir_misc]/level/green.gif" width="$mp / $maxmp" height="8" /><img src="$stylevar[imgdir_misc]/level/green_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
<span>EXP: $ep% </span>
<table width="100%" >
<tr style="background-image:url($stylevar[imgdir_misc]/level/grey_faded.gif)">
<td nowrap="nowrap"><img src="$stylevar[imgdir_misc]/level/grey_left.gif" height="8"><img src="$stylevar[imgdir_misc]/level/grey.gif" width="$ep%" height="8" /><img src="$stylevar[imgdir_misc]/level/grey_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
</td>
</tr>
<tr>
<td class="alt2">
$post[onlinestatus]
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
the postbit...
4number8
12-21-2005, 08:19 PM
hi, maybe try it above---> if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
dbfury
01-15-2006, 10:57 PM
This hack is messy; I have people who have stats and other who haven't at all. Seems like that when people have written a lot of messages (superior to 1000 or something like that) the stats are screwed... The level should be based on messages... But for someone who have 2000 postcount, he is still level 1. And about another who have 200 postcount, it seems working...
Also, there should be a condition in the postbit template to only show the stats when the poster is a member.
ffevo
02-12-2006, 06:41 PM
Im going to try to install this, On VB 3.5.3 <-- So lets see how it works! :)
EDIT: Everything works fine! The only problem I have is in the directions. It says just to upload the images to the Images Folder. well my forums made it so they had to be in the Misc. Folder. :) so watch for that.
ffevo
03-16-2006, 02:45 AM
My forum is not a very active forum so i woul dlike to sort of lower the requirements for HP. How woul di do this?
Knoman
04-04-2006, 03:02 PM
$hp= $postsperday / 10;
10 means that users are required an average of 10 posts per day to stay at full HP. A lower number would in turn lower the requirement.
PitchouneN64ngc
05-27-2006, 06:41 PM
This hack is messy; I have people who have stats and other who haven't at all. Seems like that when people have written a lot of messages (superior to 1000 or something like that) the stats are screwed... The level should be based on messages... But for someone who have 2000 postcount, he is still level 1. And about another who have 200 postcount, it seems working...It because your language settings use a space for the thousand separator.
In the 'RPG Stats' plugin, find this:
$rpglvl = str_replace(array(' ', ',', '.'), '', $post[posts]);
And replace by this:
$rpglvl = str_replace(array(' ', ',', '.'), '', $post[posts]);
jags2ooo
05-28-2006, 12:15 AM
Can't get the mp to work, could someone help me :/
Zachery
05-28-2006, 12:35 AM
Whats not working?
jags2ooo
05-28-2006, 12:38 AM
the mp bro it says 0/0 O_O!?
Zachery
05-28-2006, 04:23 AM
MP is based on days registered.
jags2ooo
05-29-2006, 11:23 AM
Mp still says 0/0 >< been registered for 3 days.
Zachery
05-29-2006, 06:31 PM
Its going to take more than 3 days, come back in a month./
PitchouneN64ngc
05-29-2006, 06:39 PM
Jut a little suggestion for your hack: why don't you add a setting in the vBulletin Settings for the $ppd?
Zachery
05-29-2006, 06:46 PM
Mostly as I'm lazy and have kept intact the original code kman let me work with.
jags2ooo
05-30-2006, 01:56 PM
is it possible for me to shorten the time it takes to start getting MP?
Evolution06
06-01-2006, 06:52 PM
Hi, I am having a problem installing this mod. I am running vb 3.5.4 the newest one. And i uploaded the xml file to the right spot uploaded the level folder to images and also to the main forum folder trying to get it to work.
I have been putting the code in admin panel > styles templet > Search in templets > choose style > find postbit_legacy once in there i double click on it to bring up the file and i add the script into it. I have tried various spots. It will show the mp hp exp but no colored bars. Anyone know what i am doing wrong? If you could help me that would be great thanks.
Zachery
06-01-2006, 07:01 PM
There are two snipest of code, the first does not display colored bars.
Evolution06
06-01-2006, 07:09 PM
yeah the smaller code is the plain on in the file and the the longer one on the bottom is the one with color bars right? Or is that code split too? this is the code i am using. Do i put this whole code in or do i have to split it up? Sorry i just bought vb lincense. I am used to free forums.
I usually add it under the repuation part of the script. I am not exaclty sure where to add it but i am trying to learn. I am using the tren_z skin so this will look awesome once added
Level: $showlevel<br />
HP: $hp / $maxhp
<table width="100%" >
<tr style="background-image:url($stylevar[imgdir_misc]/level/red_faded.gif)">
<td nowrap="nowrap" ><img src="$stylevar[imgdir_misc]/level/red_left.gif" height="8"><img src="$stylevar[imgdir_misc]/level/red.gif" width="$hpf% " height="8" /><img src="$stylevar[imgdir_misc]/level/red_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
<span>MP: $mp / $maxmp</span>
<table width="100%" >
<tr style="background-image:url($stylevar[imgdir_misc]/level/green_faded.gif)">
<td nowrap="nowrap" ><img src="$stylevar[imgdir_misc]/level/green_left.gif" height="8"><img src="$stylevar[imgdir_misc]/level/green.gif" width="$mp / $maxmp" height="8" /><img src="$stylevar[imgdir_misc]/level/green_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
<span>EXP: $ep% </span>
<table width="100%" >
<tr style="background-image:url($stylevar[imgdir_misc]/level/grey_faded.gif)">
<td nowrap="nowrap"><img src="$stylevar[imgdir_misc]/level/grey_left.gif" height="8"><img src="$stylevar[imgdir_misc]/level/grey.gif" width="$ep%" height="8" /><img src="$stylevar[imgdir_misc]/level/grey_faded_right.gif" width="1" height="8" /></td>
</tr>
</table>
Zachery
06-01-2006, 07:10 PM
Can you show me what you get on your forums?
Evolution06
06-01-2006, 07:17 PM
basically i am at work but this is what it kind looks like. I added it back to my site. If you highlight it you can see where the bars are suppose to be. How do i fix this i am thinking its something to do with the level folder in the cpanel
My site is WwW.Gg-6.com
Level: 8
HP: 275 / 275
MP: 6 / 6
EXP: 35%
Snake
08-30-2006, 12:14 PM
Is this going to work fine on 3.6.0?
Zachery
08-30-2006, 06:16 PM
Can't see why it wouldn't.
corbin joshua
09-06-2006, 12:05 AM
Thanks Zach, INSTALLED
Snake
09-14-2006, 07:57 PM
Alright Zach, looks like I'm having a few problems over here. Some users are having an issue with their RPG stats. Let's take this post as an example...
http://www.finalfantasyforums.net/seventh-heaven-inn/howdy-1054-post11887.html
As you can see, his MP stats is streching way to the right. How do I fix this? And do you plan or releasing a better, new, fixed version maybe?
Snake
09-15-2006, 12:44 PM
*bumps*
Zachery
09-15-2006, 02:33 PM
No need to bump :p I'm not around 24/7
Find
<img src="$stylevar[imgdir_misc]/level/green.gif" width="$mp / $maxmp" height="8" />
Change too
<img src="$stylevar[imgdir_misc]/level/green.gif" width="$mpf%" height="8" />
Snake
09-15-2006, 03:07 PM
Hehe sorry about that. :p
Also if you look in my postbit carefully, you will notice there is a slight problem with the HP bar while it's full. How do I fix that too?
Zachery
09-15-2006, 09:49 PM
Not really seeing the issue.
Snake
09-15-2006, 11:45 PM
Hmph nevermind. Just my imagination then. :D
Nimrod.
01-01-2007, 07:54 PM
I uploaded it on my 3.6.0 and it works fine.
I am having a small problem with my M/P. It works and calculates fine, but it seems to have a gradient color change and looks all funky. Its not consistant with the colors of the other bars. Whats going on?
gforce75
06-02-2007, 02:11 AM
I just don't use the mp. Hey, easy way to fix what your doing is copy the postbit to dreamweaver, past his code and from there, it's easy to fix.
o0Hubba0o
06-10-2007, 04:59 AM
I might take the mp out too, no matter how I adjust it, it keeps getting long stretching the post bit.
maidos
11-01-2007, 12:49 AM
where do i upload the xml, which directory?
Add the following to your postbit or postbit_legacy template
where you see fit.
i do not get it, where do i place it, i rtied adding other place but i cant see the rpg stats, please tell me which code to replace`?
i want to add haiboss rpg images but where please guide me
final kaoss
06-14-2013, 06:53 PM
I want to see this working for vb 4 or does it work fine without any edits?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.