The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
class making page blank
this is my first ever class so i'm not sure why it's going wrong or where but hey it's the only way i'll learn right?
could someone tell me where i'm going wrong, it's based off of Boofo's stats serialize hack PHP Code:
|
#2
|
|||
|
|||
Dont you have to make an new instance of the class? I can be completly wrong...
|
#3
|
||||
|
||||
i don't think so, i.e. it's called in my page via
PHP Code:
|
#4
|
|||
|
|||
Code:
function DoStats($prs_stats, $updatetime) { global $DB_site; $this->updatetime = $updatetime; ... |
#5
|
||||
|
||||
calorie, i am so so so so so grateful to you, you dont' know how much, this has been bothering me since yesterday, thank you very much for helping my first class come to life, unfortunately i never finished my database schema in order to test it properly, but it is throwing up the correct errors, thank you again
|
#6
|
|||
|
|||
Blush, no problem, glad I could help.
|
#7
|
||||
|
||||
Ok now i've finished the database scheme (i guess this is what you get from coding from the front-end)
i'm getting this when i do a print_r on the $makestats PHP Code:
PHP Code:
the bit in question (making the $makestats->GetStats[$var]) is PHP Code:
|
#8
|
|||
|
|||
See the attached...
|
#9
|
||||
|
||||
thanks though i managed to fix it by changing
PHP Code:
PHP Code:
though i have one more problem, sorry about this. debugging the code i have PHP Code:
the reason $prs_stats1 is go relevant is because of the conditional in the first method of the class that saves me 8 queries |
#10
|
|||
|
|||
Do a print_r on $datastore and see if there is a value for the prs_stats key.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|