The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding information to the display of user names (pulling from DB)
I'm trying to avoid using the custom fields provided by VB because ultimately this will be used in a custom plugin for my site.
Basically, I'd like to know the best way to pull data from a table (say, vb_user) and add it to the display of the user name in places like postbit and postbit_legacy. Ostensibly I could just use PHP to pull it brute force, but I figure there's a nicer way to do it in VB. Thanks in advance |
#2
|
||||
|
||||
You'll need to use the query_hooks like fetch_postinfo_query and showthread_query. Just look in the php page your are wanting to show info in and find the query and the query_hook should be right above it. Add your query fields and any tables to join to that plugin.
|
#3
|
|||
|
|||
I don't suppose the API is documented anywhere? It'd be a lot easier to start learning to develop for vB if you didn't have to dig for information on what functions and objects do what and where, heh.
|
#4
|
||||
|
||||
API is listed right under Quick Links - vBulletin API
|
#5
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|