View Full Version : Adding information to the display of user names (pulling from DB)
sapphiremagus
08-29-2010, 03:51 PM
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 :)
Lynne
08-29-2010, 05:39 PM
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.
sapphiremagus
08-31-2010, 07:40 PM
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.
Lynne
09-01-2010, 12:06 AM
API is listed right under Quick Links - vBulletin API (http://members.vbulletin.com/api/)
sapphiremagus
09-01-2010, 02:15 AM
API is listed right under Quick Links - vBulletin API (http://members.vbulletin.com/api/)
*SMACK SELF* Wow, very sorry for that. I actually did a whole bunch of searching here and on Google ... but never looked at the quick links. Thanks Lynne, again :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.