![]() |
Displaying custom fields in threadbit
This might be complicated but I'm sure someone will know how to do it! :)
The threadbit template normally shows the username of the person who started the thread and the last person to post on the thread. What would I need to do to make it show their real names (customfield1 customfield2 on my forum) instead of their username? |
As the user's custom fields and other information is not fetched anyway, you will need to change the query that fetches the threads to include this information. Then it is all a matter of using the correct variables in the template.
|
Can you give any guidance on how to change the query that fetches the threads?
|
Can anyone help with this?
|
If you're looking at forum home - look in the file that processes information for this, index.php.
|
I think it's showthread.php that I'd need to change. But I don't know how to make the changes anyway - is there a guide somewhere? Can anyone give some tips?
I want to fetch the customfields for the person who started the thread - so as well as their username I can display their customfields. |
Correction to my last post - you'll be looking at forumdisplay.php. Don't know what I was thinking what I posted that.
showthread.php deals with the display of posts inside a specific thread - like the page you're looking at right now. |
Ah right, cool. Thanks. I'll go look at forumdisplay.php.
Any tips on how to fetch the customfields? |
Custom fields are contained within the userfield table.
|
It's more the process of fetching the data and saving it as a variable (that can be inserted into a template) that I don't understand.
It's my first time trying this kind of thing. |
Hey, Chris, check out this thread by MellyMonster. It's along the same lines, and I showed her how to do basically what you ask. :)
|
Thanks! I'll ask more questions in that thread. :) :)
|
All times are GMT. The time now is 04:54 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:
|