The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Sharing database connections with my plugin?
I'm building a quick plugin that does database connectivity, sends emails, and displays HTML output from the query. I'm wondering if it makes sense to attempt to use the connection information that vBulletin already has. Is this possible to do?
|
#2
|
||||
|
||||
You can use the $vbulletin->db object to do queries.
|
#3
|
|||
|
|||
It is.
Add Code:
require_once('global.php'); Then you will be able to use $vbulletin->db object to perform db activity. |
#4
|
|||
|
|||
Plugin code isn't executed from a php script somewhere in the directory...
You don't require calling the global script. |
#5
|
||||
|
||||
You do know that the DB object must exist for vBulletin to fetch the plugin, right? (No DB connection = no plugins and pretty much everything else.)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|