The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
Hi-
Yes, this is the "main" (ergo top-level) script for a utility that I am finishing up to migrate a Lefora forum to vBulletin. I looked at a few examples of top level scripts, especially the impex stuff and tried to follow suit. I don't recall seeing anything about $phrasegroups, but that is indeed the relevant section of code where the failure occurs. I will go back and take another look, I could have easily missed something. BTW, this failure occurs no matter which require statement is used, either the global script or my own modules. If any of those lines are uncommented, boom, I get the error. What is interesting is that the simplistic version of the db code that immediately follows these require_once statements produces the correct results. By commenting out these require_once statements the error disappears and I still see the same correct results. Wha-? This: Code:
$conn = mysql_connect( $lmConfig[ 'dbserver' ], $lmConfig[ 'username' ],$lmConfig[ 'password' ] ); $lmDB = mysql_select_db( $lmConfig[ 'vbdatabase' ] ); $query = 'SELECT * FROM ' . $lmConfig[ 'vbtableprefix' ] . 'user'; $resultSet = mysql_query( $query ); while( $row = mysql_fetch_array( $resultSet ) ) { print $row['username'] . " " . $row['userid'] ."\n"; } mysql_close( $conn ); Code:
admin 1 joeuser 2 testuser 3 Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|