The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Which is best - $vbulletin->db->query_read OR $db->query_read
Just a very quick question.
I'm wondering what's the difference between $vbulletin->db->query_read(Select bla bla bla ..... and $db->query_read(Select bla bla bla ..... Trying to write my first mod for vBulletin 4.x (wish me luck I'll need it :P ) and wondering which is the best to use. I've being using lots of the tutorials and other posts as references but I'm not sure which is best practice. Both seam to work fine. |
#2
|
||||
|
||||
You should always use $vbulletin->db->xxxxxx - the other method is obsolete and only still around for backwards compatibility.
|
#3
|
|||
|
|||
Excellent, thanks for that Paul M and for the fast reply.
This can be closed if you want as it's answered |
#4
|
|||
|
|||
I always use $vbulletin->db simply because putting "global $vbulletin" into a function covers everything, while "global $db" only covers database queries.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|