![]() |
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 :) |
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.
|
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.
|
API is listed right under Quick Links - vBulletin API
|
Quote:
|
All times are GMT. The time now is 08:23 PM. |
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:
|