Forum Leaders/showgroups.php display custom profile fields?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mike406
    Senior Member
    • Oct 2012
    • 105
    • 4.2.X

    [Forum] Forum Leaders/showgroups.php display custom profile fields?

    I'm trying to add additional profile fields, in the form of a Staff Position field to the showgroups_usergroupbit template, but they don't seem to work:

    HTML Code:
    <dl class="stats location">
                <dt>Staff Position</dt>
                <dd>{vb:raw user.field13}</dd>
    </dl>
    The template is default and I'm trying to add the above, but the profile field does not show. None of them do, it seems that the location field is the only one that works in this template. Do other custom profile fields not work here?
    vBulletin.org Profile
  • Hartmut
    Senior Member
    • Nov 2007
    • 2870
    • 4.2.x

    #2
    Where in the template do you add this code?
    No private support, only PM me when I ask for it. Support in the forums only.

    Comment

    • mike406
      Senior Member
      • Oct 2012
      • 105
      • 4.2.X

      #3
      I have it right after the first <vb:if> ... </vb:if>

      HTML Code:
      <li class="groupbit" id="groupbit_{vb:raw xhtml_id}">
          <vb:if condition="$show['locationfield'] AND $user['field2']">
              <dl class="stats location">
                  <dt>{vb:rawphrase location_perm}</dt>
                  <dd>{vb:raw user.field2}</dd>
              </dl>
          </vb:if>
                      <dl class="stats location">
                              <dt>Staff Position</dt>
                              <dd>{vb:raw user.field13}</dd>
                      </dl>
      .
      .
      .
      </li>
      The field will not display here, and I did double check to confirm I am using a valid fieldID.

      vBulletin.org Profile

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24288
        • 6.0.X

        #4
        I've tested this on my own site. Looks like custom user fields aren't available on this page (they aren't available everywhere).

        You'd need to have a plugin to pull the data out of the database.
        For help writing this you'd need to ask at www.vbulletin.org, the modulations site.
        Last edited by Mark.B; Tue 11 Dec '12, 2:39am.
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • mike406
          Senior Member
          • Oct 2012
          • 105
          • 4.2.X

          #5
          Alright, thank you for your help.
          vBulletin.org Profile

          Comment

          Related Topics

          Collapse

          Working...