![]() |
Plugin Problem
i wrote this plugin for postbit display start
PHP Code:
|
$post[foeinfo]
Drop the quotes when used in the template. Oh, You are using a new db call. To a second db? You need to reconnect to the vbulletin database afterward I believe. |
yeah, it comes up fine on the post bit but it totally wrecks pms. . . why would it need to reconnect to the db; i've done things using multiple db's before without a problem.
|
You probably don't if you are using a different var to hold the connection. Try puting , $link at the end of your SELECT statement so the query knows to use that connection. That may or may not change anything.
I've never tried a second connection in vb so I'm only guessing based on other experiences. Looking at class_core.php I see that vb is also using $link. |
yes, but thats a variable inside a class. it should have no effect what so ever.
|
Yes, but something is having an effect.
When you initialize mysql_select_db() you are changing the default database. It's the $db When you use that in mysql_select_db($db,$link) you are making the new database the default for vbulletins $db. Try this PHP Code:
|
tried that, same problem
|
Anyone else got a suggestion?
|
All times are GMT. The time now is 01:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|