The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i wrote this plugin for postbit display start
PHP Code:
|
#2
|
||||
|
||||
![]()
$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. |
#3
|
|||
|
|||
![]()
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.
|
#4
|
||||
|
||||
![]()
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. |
#5
|
|||
|
|||
![]()
yes, but thats a variable inside a class. it should have no effect what so ever.
|
#6
|
||||
|
||||
![]()
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:
|
#7
|
|||
|
|||
![]()
tried that, same problem
|
#8
|
|||
|
|||
![]()
Anyone else got a suggestion?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|