The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[Style Customization] Userfield Postbit Variable Depth in new Template?
I've made a new, non-standard postbit template called postbit_certification, with the following code:
Code:
<vb:if condition="$post['field6']=='AEMT-P'"> <dt>Certification</dt> <dd><abbr style="color: #0000FF;" title="Advanced Emergency Medical Technician - Paramedic">AEMT-P</abbr></dd> <vb:elseif condition="$post['field6']=='AEMT-CC'" /> <dt>Certification</dt> <dd><abbr style="color: #0000FF;" title="Advanced Emergency Medical Technician - Critical Care">AEMT-CC</abbr></dd> <vb:elseif condition="$post['field6']=='AEMT-I'" /> <dt>Certification</dt> <dd><abbr style="color: #FF0000;" title="Advanced Emergency Medical Technician - Intermediate">AEMT-I</abbr></dd> <vb:elseif condition="$post['field6']=='EMT-B'" /> <dt>Certification</dt> <dd><abbr style="color: #FF0000;" title="Emergency Medical Technician - Basic">EMT-B</abbr></dd> <vb:elseif condition="$post['field6']=='CFR'" /> <dt>Certification</dt> <dd><abbr style="color: #000000;" title="Certified First Responder">CFR</abbr></dd> <vb:elseif condition="$post['field6']=='CPR'" /> <dt>Certification</dt> <dd><abbr style="color: #00A000;" title="Cardiopulmonary Resuscitation">CPR</abbr></dd> <vb:else /> <dt>Certification</dt> <dd>None</dd> </vb:if> Code:
{vb:raw post.certification} The set of statements however do work when they are placed directly inside of the postbit_legeacy code. Any idea what I'm doing wrong? Did I miss a step somewhere? --------------- Added [DATE]1262631305[/DATE] at [TIME]1262631305[/TIME] --------------- Simple question then. What is the variable scope for $post? Can I use it in any postbit style? Keeping in mind that it's meant to be unique to that users post, and it's meant to reflect the posters' information. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|