![]() |
i see no point in a limit break. neo, those are some great ideas that you have, but i will not code them. i only released my codes out of anger and to prove that mine was the original and the better of the hp/mp hacks. right now, i'm working on a fighting engine that will work with this code. do not expect me to release it to the public.
|
no prob, i was just asking what you think about it, cuz i am coding stuff and such, i do know i little about coding, and i am in the works of my own fighting engine;) but its cool man thanks for the code:D
and X put <smallfont> before the table and </smallfont> after the table end so for the font.. not to sure |
Awesome thanks. I even figured out how to remove the border. I am so totally l33t. :)
|
Heh. No problem anytime
|
Quote:
Just last month I managed to automate it in PHP (we've only been on vB for 2 months) Take a look if you want. http://130.194.171.148/board/store.php I'm almost finished my basic points-giving script as well. |
will you be posting in or selling it at all? cuz i know i want it
|
Just the points thing?
Free... it's too small and simple to charge for. If all goes well I may have it up by tomorrow. |
thats cool, are you going to post the store to use the points?
|
Uh, no.
It's easy to do if you know what to do... But the Store is dependant on a half dozen other custom mini-hacks and tweaks spanning 5 different files I think maybe more). Plus the code is VERY Shinra-specific, almost everything is hard-coded, and adapting it to general usage would take longer than to just rewrite the thing from scratch. Besides... that's our forum's edge. I've given the code to ONE other person, but he's done a lot for Shinra as well and runs a sister forum. I gave him the code over a week ago... he still doesn't have it working in his forum. |
wow that cool, it ok that you keep the store. umm may i ask what the mini hacks you added it to are you could pm if you dont want to post it here i am just very interested to see how you did this. i like the rent a forum part its cool;)
|
Ok ok, last question :)
Check out the attached shot. How do I make it so that signatures stay on the bottom? theres way to much space cuz I guess the bars and stuff stretch out the table? Here is the code I have: PHP Code:
PHP Code:
|
duh. forgot to attach
|
use valign tags... like valign="bottom" and such
|
just a small note to say thanks for a great hack knoman
easy to understand and easy to install all the best |
Quote:
|
ok, i believe the sig thing is in the postbit template, so go into that and find where the sig code itself is, then see if there is a <tr> or <td> and put a valign="bottom" and if that does not work [post the code and i will try and fix it for yah
|
Thanks neo...
Here's the code ... Code:
<td bgcolor="$post[backcolor]" width="100%" valign="top"> valign="top" ---> $post[message] but valign="bottom" ---> $post[attachment] and everything else beneath. I don't know if this is possible or not, but everything I try ends up is screwy tables - no surprise to me cos I can't code worth squat :) Any help would be gratefully appreciated :) ta :) |
[QUOTE]Originally posted by trilOByte
Thanks neo... Here's the code ... Code:
<td bgcolor="$post[backcolor]" width="100%" valign="top"> |
Yes I've tried that neo and not surprisingly, it does drop the message as well. What I want, is for the message to be aligned to the top, but the sig and everything beneath it in the code shown, to be aligned to the bottom (I thought I was pretty clear that this is what I am trying to do). This I do not know how to do. I don't code html - or any other language, so if anyone can advise - I'd be grateful :)
|
I tried replacing the above code with..
<td bgcolor="$post[backcolor]" width="100%" valign="top" height="233"> <smallfont>$post[icon] <b>$post[title]</b></smallfont> <p><normalfont>$post[message]</normalfont></p> $post[attachment] <p><smallfont></smallfont></p> </td> </tr> <tr> <td bgcolor="$post[backcolor]" width="100%" valign="bottom"> <p>$post[signature]</p> <p>$post[editedby]</p> <p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p> </td> But the tables get screwed up - any suggestions? |
Quote:
Just a quickie though - I need to post something to explain all the ratios that appear and how the stats are calculated from thier (users) posts. Those users not familiar with RPG's might be especially confused at first. Can you give me some info? Ta :) |
that?s what i try to find out at the moment..
a good description for my members, so that everybody easily understands this thingy =) cause even i have problems to fully understand this really great hack :) so i would be very glad about a short description :) thx neo |
Anything bud, just a brief description of what users have to do to affect the numbers and how they relate :)
tnx |
Cool hack, the forum users are loving it. I've made it a user option however that can be turn on or off. Not all visitors like all those bell and whistles :)
|
and how did you do that
|
I'll document it properly within the next few days.
|
just create two styles: one with the hacked template, and one without. then let your members chose the style they wish.
as for an explanation of the hack, look at the first page. |
Hey Knoman, anyway you can make this appear in a member's Profile?
|
i dont know why but this hack is not working properly now for some reason
an example is at http://www.manutdchat.com/forums/sho...stid=15#post15 does anyone know what could be wrong for administrators : i have purchased another vbulletin licsence for this site and i can verify the order no if required. thanks |
nevermind
im just going to remove the hack anyway |
What line(s) do I modify so that members require more posts to increase to a new level.
Some of my members have made 300+ posts and they are at level 16 with the current hack. I would prefer if they would only be at say... level 8. Once the levels start getting in the double digits, it looses it's appeal for me. So I would like it to be harder (require more posts) for members to get a new level. Thanks!! PS - I am also interested in having the stats (level specifically) on the members profile. Any idea what needs to be done there? :) |
It worked finein the 2.20 but now in 2.21 it displays all wierd like no exp on a 1100 post user
and the userlevel is like 1.112332243243 I copied andpasted it perfectly in admin/ functions.php |
i think a breakdown of what HP, MP, and EXP are would be very good....
i have members wondering how it works exactly also :) |
i have removed this hack but when i did you it i had a link to my faq3 and i put
<p>You have probably noticed the coloured bars at the side of each post, just below the member's avatar. This is our graphical system which lets you see how active and experienced a member is.</p> <p>The bars represent : <ul><li><font color="red">The Red Bar </font>: Drops and rises according to the members activeness.</li> <li><font color="green">The Green Bar </font>: Determines how long a user has been with the forums, and how active they are. </li> <li><font color="blue">The Blue Bar</font> : Determines how close a user is to reaching the next level.</li></ul> </p> I hope this helps you out winston |
Just look at the code for an explanation of how it's worked out. All the maths is in there and is reasonably easy to work out most of it, even if you are not a coder.
Code:
$level = pow (log10 ($post[posts]), 3); |
yea, i don't really get that either.....
plain english would be good :cool: |
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. |
Thank you, Knoman ... lovely hack!
Afterlab ... i found a way to get it into the members profile. See how i did it in the member.php: PHP Code:
PHP Code:
PHP Code:
Maybe this helps you. If not and you encounter problems feel free to ask. But the hardest thing (for me) was to find the right place in member.php ... the finetuning isn't hard. Nice hack, Knoman, did i mention it? Thank you! |
Thanks meta, that worked. I mixed it up a bit too in my profile. Cya around.
|
I have 2.2.1, and i cant find that first line we need, the 'if ($post' thingy, any help? I looked in showthread.php!
|
All times are GMT. The time now is 05:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|