vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help I'm down with a parse error!! (https://vborg.vbsupport.ru/showthread.php?t=32622)

winston 11-23-2001 03:23 PM

Ok I had 2.20 installedd an dthe exp level hack installed. When i upgraded to 2.21 it replaced adm/ functions.php. When i resinstall teh hack in this file I get this error.
__________________________________________________ _
Parse error: parse error in ./admin/functions.php on line 296

Fatal error: Call to undefined function: getuserinfo() in ./admin/sessions.php on line 108

__________________________________________________ __
Hers the code I'm trying to get in there.
Admin/ Functions.php
###Find###
// do ip addresses
________________________________________
###Under it add###
PHP Code:

// start of User EXP, MP, HP hack
$level pow (log10 ($post[posts]), 3);
$ep floor (100 * ($level floor ($level)));
$showlevel floor ($level 1);
$hpmulti =round ($postsperday 61);
if (
$hpmulti 1.5) {
$hpmulti 1.5;
}
if (
$hpmulti 1) {
$hpmulti 1;
}

$maxhp $level 25 $hpmulti;
$hp$postsperday 10;
if (
$hp >= 1) {
$hp$maxhp;
} else {
$hpfloor ($hp $maxhp);
}
$hpfloor ($hp);
$maxhpfloor ($maxhp);
if (
$maxhp <= 0) {
$zhp 1;
} else {
$zhp $maxhp;
}
$hpffloor (100 * ($hp $zhp)) - 1;

$maxmp= ($jointime $level) / 5;
$mp$post[posts] / 3;
if (
$mp >= $maxmp) {
$mp $maxmp;
}
$maxmp floor ($maxmp);
$mp floor ($mp);
if (
$maxmp <= 0) {
$zmp 1;
} else {
$zmp $maxmp;
}
$mpffloor (100 * ($mp $zmp)) - 1;
// end of User EXP, MP, HP hack 

any help would be so greatly appreciated.

winston 11-24-2001 03:20 PM

No help yet.....
been up all night in edit plus.
grrrrrrrrrrrrr. help anyone? please?

Mark Hensler 11-25-2001 05:42 AM

Quote:

Parse error: parse error in ./admin/functions.php on line 296

Fatal error: Call to undefined function: getuserinfo() in ./admin/sessions.php on line 108
What is on line 296 of functions.php?
I'm not sure what the policy is of posting vB code, but I'm sure they would rather you didn't. Just look at that line. Look at it long and hard. That's where your error is. A parse error could be a missing semi-colon on the line above, or any other syntax error on that line. If it is the last line of the file, it is most likely a missing squigglye brace thingy "{" or "}". Err... ummm... that's all I can think of right now.

Scott MacVicar 11-25-2001 12:17 PM

If it can't call another function your definately missing semi-colon, inverted comma's or parenthesis (squigglye brace thingy). As the code for the hack looks fine i think your probably placed it at the wrong point.

Mark Hensler 11-26-2001 04:47 AM

"Parentheses" are the smooth ones, "braces" or "square braces" are the squared ones, so what do you call those squiggly thingies? :stupid:

Goldfinger 11-26-2001 07:49 PM

} = bracket

[100th post :D]

Mark Hensler 11-26-2001 10:10 PM

And what's an "inverted comma"?

Goldfinger 11-26-2001 10:15 PM

' = apostrophe ?


All times are GMT. The time now is 10:09 AM.

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.01003 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete