View Full Version : Custom post field in new thread
ChrisSy
12-15-2004, 04:06 PM
How can i put a custom one line text field in new thread (below the title input) and have the output placed below the title when posted? (appear in the postbit)
also is it possible to have this for specific forums only?
Thanks in advance
ozmazdaclub
12-15-2004, 07:03 PM
I would be interested in this too...
ericgtr
12-15-2004, 08:24 PM
When you create a new profile field it will assign it a name i.e. field6. You can get this from the User Profile Field Manager after you have added it. In this example let's say the new field (field6) I added was the guitar they played.
You could add this to your postbit (or postbit_legacy) where ever it is you want your added field to appear.
Find:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
After add:
<if condition="$post['field6']"><div>Guitar played: $post[field6]</div></if>
It's all pretty well laid out in the postbit for you to follow along. Obviously it would be better if a phrase was added but you get the point. As far as doing it on a per forum basis, I am sure that could be added but would require more tweaking.
ChrisSy
12-15-2004, 09:15 PM
im looking for a custom field actually inside in the newthread template, where info added to the text box is then displayed in the posted thread along with the other content.. like a second thread title if you know what i mean?
ericgtr
12-15-2004, 10:10 PM
I see, sorry for the confusion on my part. Have a look at this hack by Erwin that will let you add forms to posts. It may be able to help with what you want. https://vborg.vbsupport.ru/showthread.php?t=66082&highlight=form
ChrisSy
12-16-2004, 10:53 AM
thanks for your help :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.