The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Pooo... php troubles...
Fatal error: Call to a member function on a non-object in /home/pgsforum/public_html/vb/showthread.php on line 14
i get that when I go to showthread. I'm trying to put a piece of code in showthread.php to check the user's points (from lesane store hack)... I put it at the top, above // ################################################## ########################## // ############################# SHOW POST #################################### // ################################################## ########################## and it gives me the error... why is that? Also, where would I put a code if i wanted it to execute BEFORE any posts where shown? |
#2
|
|||
|
|||
When in doubt, remember:
PHP Code:
|
#3
|
||||
|
||||
[noob]
soo... what's that mean? [still noob] |
#4
|
||||
|
||||
That mean you need to add $DB_site to the global line that is above the code you have added.
|
#5
|
||||
|
||||
didn't work.. still get the same error... here's the top part of my showthread.php...
PHP Code:
also, i'm trying to use the eval.... etc.. gettemplate command a few lines below that.... would that cause problems? Also, it sez the error is on line 14, here's my line 14.... PHP Code:
|
#6
|
|||
|
|||
Add that code after require("./global.php"); you won't need the global line for that, either, in that context.
|
#7
|
||||
|
||||
Add $bbuserinfo to the global statement also.
|
#8
|
||||
|
||||
soo... does it matter if the only "require(./global.php)" is halfway down the page?
|
#9
|
||||
|
||||
It has to be above your code.
|
#10
|
||||
|
||||
Lol, thanx, that got rid of the error, but my code still doesn't workk... but that's my problem
Thanks again Gengar out |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|