The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am using the karma hack and just moved to a different server, and am now getting these errors. They're caused by the fact that for guests it can't return a result, so it spits out the error:
PHP Code:
PHP Code:
Could anyone let me know how to avoid having that piece of code run for guests? On all the other instances I've used this construction, which seems to work PHP Code:
|
#2
|
|||
|
|||
![]()
1. You should absolutely always use the wrapper methods in $DB_site in case vB ever supports a new database type and to ensure consistency.
2. Don't use quotes for numeric types in both queries and PHP. Neither of those is causing the problem, but make sure $gettotalpoint is the return value of calling either mysql_query() or the more proper $DB_site->query(). It should not be $DB_site->query_first(), which returns an array. If you don't know what it is, use: PHP Code:
|
#3
|
||||
|
||||
![]()
You should give us the part where $gettotalpoint is given a value.
Also, to have that code not run for guests use: PHP Code:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|