1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Where oh where is userBlurb that can be modified?

Discussion in 'Styling and Customization Questions' started by sunnydaze, Sep 11, 2015.

  1. sunnydaze

    sunnydaze Member

    Looked everywhere, searched ... found piles and piles of cool tips and info on user profile & member card ... can't find where the elements of userBlurb are assembled. There is no template named userBlurb showing how name, title, gender are put into one thing that is userBlurb..

    Reviewed the 'inspect element code' which did not identify the source.
    Hunted through the templates.

    What I seem to be looking for is the source of
    {xen:helper userBlurb, $user}

    and
    class="userBlurb"

    As multiple pieces of user info are combined in userBlurb, I wanted to preserve 'custom title' and eliminate 'gender', wherever userBlurb is displayed.

    Thanks!

    http://brazosvalleysource.com/forum/index.php
     
  2. Andrej

    Andrej Well-Known Member

    Use the 'Search Templates' tool.
    [​IMG]
     
  3. Mike

    Mike XenForo Developer Staff Member

    This is put together in code; it's not directly editable.
     
  4. sunnydaze

    sunnydaze Member

    Can I replace it by either -

    - Editing it out directly in the template and replacing it with the elements I want to use, and what are the element names for user location and user title?

    - Creating an if statement in EXTRA.css that says if userBlurb, then use this instead

    ?

    thx - that gender appearance is very, very awkward, I don't know what someone was thinking on that one
     
  5. sunnydaze

    sunnydaze Member

    - Still have the EXTRA.css question from above

    - I think I found the location & occupation - have to test
    <xen:if is="@messageShowOccupation AND {$user.occupation}">
    <dl class="pairsJustified">
    <dt>{xen:phrase occupation}:</dt>
    <dd itemprop="role">{xen:string censor, $user.occupation}</dd>
    </dl>
    </xen:if>

    <xen:if is="@messageShowLocation AND {$user.location}">
    <dl class="pairsJustified">
    <dt>{xen:phrase location}:</dt>
    <dd><a href="{xen:link 'misc/location-info', '', 'location={xen:string censor, $user.location, '-'}'}" target="_blank" rel="nofollow" itemprop="address" class="concealed">{xen:string censor, $user.location}</a></dd>
    </dl>
    </xen:if>
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You can't use conditional statements in EXTRA.css.

    You would need to do it in the template.
     

Share This Page