The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm trying to use a custom field on showthread via threadinfo. I know that the field has to be included in the threadinfo query somehow, but I don't know how to do it. It needs to be threadinfo because I would like to use the custom field of the thread poster. The result should be $threadinfo['fieldX']
Ideas? |
#2
|
|||
|
|||
![]()
Try creating a new plugin using hook fetch_threadinfo_query and this code:
Code:
if (THIS_SCRIPT == 'showthread') { $hook_query_fields .= ", userfield.fieldX "; $hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON(thread.postuserid = userfield.userid) "; } and of course you'll want to change the X to the actual field id. |
#3
|
||||
|
||||
![]()
thanks! highly appreciated! I'll give it a try.
|
#4
|
|||
|
|||
![]()
Oops, there was an error in what I posted - it should have been userfield.fieldX instead of poster.fieldX.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|