![]() |
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? |
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? |
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? |
What about checkboxes?
|
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... |
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 Code:
<if condition="$post['field#']"><div>$vbphrase[phrase_name_here]: $post[field#]</div></if> |
Quote:
C1 is ticked - display Text1 C2 is ticked - display Text2 |
All times are GMT. The time now is 01:34 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:
|