The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to have a custom user field available in forum display?
Hi folks,
I'm writing a (simple) hack but need a new custom user field to be available in the FORUMDISPLAY template. How would I do this, please? (I looked at doing a select from the database in forumdisplay but got lost). |
#2
|
||||
|
||||
Do you want the field to be available on each threadbit or on the top, meaning it's associated with the viewing user?
|
#3
|
||||
|
||||
Hi and thanks for the quick reply.
It needs to be available at the top associated with the user. Basically I use my hack at https://vborg.vbsupport.ru/showthread.php?t=67942 to display a news feed at the top of specific forums just below the navbar. But after requests from my members, I want to give them the option to display the news at the top, bottom or not at all. I have created a custom user field (field9) which has a drop-down list of these options. Dependant upon what the value of this field is, I want to display the news at the top, bottom or not at all. If you can help out, I will add the details to my hack (with full credit, of course) making it more useful to the vBulletin.org community. Many thanks. |
#4
|
||||
|
||||
use $bbuserinfo[field9]
so you would have something like this: <if condition="$bbuserinfo[field9] == 'top'">bla</if> and the same at the bottom. |
#5
|
||||
|
||||
Many thanks, that's awesome and works perfectly!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|