Announcement

Collapse
No announcement yet.

Querying the DB To Display Custom Option Under Username

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • joro
    replied
    Alright, I got it working. In case anyone is interested, I added a global phrase for the variable "imagemod" and then went into the postbit template and added:

    Code:
    <vb:if condition="$post['field5']"><dt>{vb:rawphrase imagemod}</dt> <dd>{vb:raw post.field5}</dd></vb:if>
    Working perfect now!

    Leave a comment:


  • joro
    started a topic Querying the DB To Display Custom Option Under Username

    Querying the DB To Display Custom Option Under Username

    So I created a custom user field (number 5 in the db) which has a Yes or No option only. What Iím trying to do is insert either Yes or No (depending on what the user selects obviously) in the Postbit Template. I found the following bit of info in one of the user profile templates for the custom fields but I tried inserting it into the postbit and no luck. Any ideas?

    Code:
    <vb:if condition="$show['profilefield_edit']">
    	<dt id="profilefield_title_{vb:raw profilefield.profilefieldid}">{vb:raw profilefield.title}</dt>
    	<dd id="profilefield_value_{vb:raw profilefield.profilefieldid}">
    		{vb:raw profilefield.value}
    		<script type="text/javascript">
    		<!--
    		vBulletin.register_control("vB_ProfilefieldEditor", "{vb:raw profilefield.profilefieldid}");
    		//-->
    		</script>
    	</dd>
    <vb:else />
    	<dt>{vb:raw profilefield.title}</dt>
    	<dd>{vb:raw profilefield.value}</dd>
    </vb:if>

Related Topics

Collapse

Working...
X