View Full Version : Puttin a registration field in the postbit legacy
ive create a new field on registration
how would i make it appear in the postbit?
anyone?
rogersnm
12-20-2006, 04:12 PM
In the postbit(_legacy) template, add: $post[fieldX] - replace X with the field number...
hmmm this didnt work?
im new to this so could you break it down a lil more please....surely that isnt all the html i need?
rogersnm
12-20-2006, 09:09 PM
that's all you need and that's as simple as it gets, are you sure the user who posted the post you were looking at filled out the field?
so i littrelly put $post[field5] in the posbit template anywhere...nothing else?
done it cheers mate
any way i can make this a diff colour?
Smooth Adam
12-21-2006, 03:47 PM
What about checkboxes?
rogersnm
12-21-2006, 04:10 PM
Then you need to put a lump of conditionals in your template or make a plugin with the conditionals in (what I would go for) and then stick some text in the plugin... Checkboxes are complicated;
if C1 is ticked: var = 1
if C2 is ticked: var = 2
if C3 is ticked: var = 4
if C4 is ticked: var = 8
if C1 and C3 are ticked: var = 5
which is why you need a lot of conditionals...
Nudda
12-21-2006, 04:56 PM
you guys are forgetting you need to create a new vb phrase so that a title appears next to the field
this is what mine looks like
<if condition="$post['field#']"><div>$vbphrase[phrase_name_here]: $post[field#]</div></if>
Smooth Adam
12-21-2006, 07:03 PM
Then you need to put a lump of conditionals in your template or make a plugin with the conditionals in (what I would go for) and then stick some text in the plugin... Checkboxes are complicated;
if C1 is ticked: var = 1
if C2 is ticked: var = 2
if C3 is ticked: var = 4
if C4 is ticked: var = 8
if C1 and C3 are ticked: var = 5
which is why you need a lot of conditionals...
Can I get an example peice of code please?
C1 is ticked - display Text1
C2 is ticked - display Text2
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.