vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Rpg Stats vB3 (https://vborg.vbsupport.ru/showthread.php?t=59750)

JTMON 05-21-2004 07:41 PM

thats because the image paths are wrong for the exp....they should be images\rpg\imagename.gif and not images\bar\imagename.gif. Check your template code.

Trigunflame 06-03-2004 02:24 AM

The code for this hack is really....really bad, no offence to whoever wrote it and using the arithmatic functions currently used to get stats is CPU% intensive :/

Zachery 06-03-2004 03:17 AM

O.o what? i dont see how they could be, what kind of processor is causing this bit of math to cause problems?

Trigunflame 06-03-2004 05:04 AM

The use of log10 / pow times 50+ post per page, with several hundred online does not work good on server load.

Not only that the, the code usage is eh..not so good for instance

PHP Code:

if ($hpmulti 1.5) {
$hpmulti 1.5;
}
if (
$hpmulti 1) {
$hpmulti 1;


Why not just use an elseif, instead of a Whole other If structure, thats inefficient (now we have to remember we're doing this in 50+post per page), excessive usage of floor() etc.. the declaration of so many variables is pointless, would be a lot more straightforward and efficient to just use an array of such ie.

PHP Code:

Instead of This:

$rpglvl
$level
$ep
$showlevel
$hpmulti

Use:
$rpg_stats['rpglvl']
$rpg_stats['level']
$rpg_stats['ep']
$rpg_stats['showlevel']
$rpg_stats['hpmulti'

Not only all of the aformentioned log10 and pow's, lots and lots of * and /, its not mearly a 'bit' of math, considering your having to do this for every post shown on a page. Now this may be fine on a small forum, but on a very busy forum processing all of this math takes cpu cycles.

I suggest making a heavier mod to the user table, and updating the stats when they make a new thread or post, thus saving overhead and processing time on every page load.

Of course I doubt you wanna bother with that, so I may release my own hack shortly to combat this problem... It may seem insignificant to many, but to me speed is everything.

Thats just my take and observation of the code provided, no pun is intended whatsoever.

zenmasteril 06-19-2004 05:38 PM

How does the measuring achieved (In each on) ??
Please tell me that i could explain my members... :nervous:

fiber1 08-08-2004 03:21 AM

Must be overlooking something here but I don't see "images/rpg"

I have the "/images" but no "rpg"?

Fiber

Knoman 10-09-2004 03:46 AM

Good work Zach =)
As for not replying earlier, I've pretty much done with vB hacking. Hell, I dont even have a subscription anymore :P
I just came to visit and was suprise people still talking about this system.

Zachery 10-09-2004 04:43 AM

Quote:

Originally Posted by Knoman
Good work Zach =)
As for not replying earlier, I've pretty much done with vB hacking. Hell, I dont even have a subscription anymore :P
I just came to visit and was suprise people still talking about this system.

Good to see you alive :) if youve got some free time can i contact you on msn?

Knoman 10-10-2004 04:30 AM

I dont mind at all. However, I havent coded anything in the longest time and I tend to forget languages quickly (like Spanish) :P
So, I dont know if I'll be any use to you.

Shadow Blaze 10-12-2004 06:57 PM

make this thing so there like more to it O.o like for roleplaying like adidng sections and what not

Bro_Joey_Gowdy 02-12-2005 12:00 AM

Out of curiousity, does it work with Vb RPG Inferno ver 2.1.1 ?

coffeefix 06-17-2005 12:52 AM

I installed this hack and this is how mine looks, is there any way to fix it? I got the same result with the default template. Maybe it's just because I installed it on 3.0.7? Here is a screenshot:


https://vborg.vbsupport.ru/external/2005/06/6.gif


Thanks.

Zachery 06-17-2005 11:21 AM

Quote:

Originally Posted by coffeefix
I installed this hack and this is how mine looks, is there any way to fix it? I got the same result with the default template. Maybe it's just because I installed it on 3.0.7? Here is a screenshot:


http://img84.echo.cx/img84/3262/image28ct.gif


Thanks.

looks like you didn't upload the images?

coffeefix 06-17-2005 12:21 PM

I did, but I'll reupload them and see what happens. Thanks for your reply. :)

coffeefix 06-17-2005 01:28 PM

I fixed the problem. There is a mistake in the directions, for the template edit. The directions for uploading the images say: upload all images to /images/rpg

Yet in the template edit. the exp image is being called from "images/bar"

<td class="rpg2" nowrap="nowrap" ><img alt="$post[username]'s XP" src="images/bar/bxg.gif" width="$ep%" height="8" /><img alt="$post[username]'s XP" src="images/bar/bxb.gif" width="1" height="8" /></td>


I just changed bar to rpg, and it works perfectly.

Zachery 06-17-2005 01:30 PM

Sorry, its been forever since I've used this hack :)

Zachery 06-20-2005 01:18 PM

Updated the install instructions.

Bro_Joey_Gowdy 08-01-2005 06:44 PM

Zach, whats up bro ?

Is this available for vb3.5.0 yet ?

Ive requested it here :

https://vborg.vbsupport.ru/showthread.php?t=93153

ffevo 02-12-2006 07:50 AM

I would also REALLY Love this hack for 3.5.X Please!! Ive been looking around for it.. forever..

Mr.Danko Jones 11-15-2007 04:05 AM

Or even 3.6.8. I was going to try and add it but realized that the instructions are too far out of date for me to install. :(

Zachery 11-15-2007 05:51 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=93552" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=93552</a>

Mr.Danko Jones 11-16-2007 04:12 AM

Thanks! If you checked my board, you'll see that a very basic version of this plug-in is functional. However, I cannot understand why my links to the images aren't working. Does this version also include a box around the stats or are they fluid?:)


All times are GMT. The time now is 04:55 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
  • Page Generation 0.01374 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete