![]() |
Custom Profile Field In Threadbits
I am wanting to post the custom field5 in the threadbit template. I tired $post[field5] but it doesn't work. Any ideas?
Thanks, Itworx4me |
How would you use a custom field in the threadbit template?
|
Quote:
Thanks, Itworx4me |
bump
|
Custom fields aren't queried for in the threadbit template, so you'll need to use a plugin to hook them in. Give the following a try...
Add a new plugin using hook location "forumdisplay_query" with the following contents: Code:
$hook_query_fields .= ' , userfield.* '; Code:
if ($thread['fieldX']) |
Quote:
I am getting a database error with the above plugin enabled. Any ideas? Thanks, Itworx4me |
What is the error?
|
just give me a page that says database error. doesn't actually tell me the error.
|
Go to View -> View Source and it'll have the error there.
|
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
PHP Code:
|
Could I use a hook like this to allow the $show[addtolist] query to work in the postbit?
|
Thanks Kirk and Dismounted for getting this to work in threadbits. Can I bother you to show me how to get it to work on the forum home page now?
Thanks, Itworx4me |
any ideas?
Thanks, Itworx4me |
How do I get this to work on the forumhome page?
Thanks, Itworx4me |
All times are GMT. The time now is 05:53 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:
|