Displaying user information

  • I have a box with {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()} placed in it. The information is displayed as:


    Posts

    1

    Images

    14

    Points

    290

    How do I get it to display as: Posts 1 Images 14 Points 290 ?

  • Do you have a link to your site?

    return null;


    Browser: Firefox Nightly (64bit)

    Betriebssystem: Windows 10

  • Code
    dl.dataList > dd {
    float: inherit;
    text-align: left;
    }

    like this?

    return null;


    Browser: Firefox Nightly (64bit)

    Betriebssystem: Windows 10

  • It doesn't seem to have any effect on it. I'm probably adding the CSS incorrectly. I gave the box the class name "welcome" and have tried adding the CSS as:


    .welcome > dl.dataList > dd { float: inherit; text-align: left;}

    .welcome, dl.dataList > dd { float: inherit; text-align: left;}

    .welcome  dl.dataList > dd { float: inherit; text-align: left;}


    I'm not sure which way would be correct.

  • The box does not have any `welcome` class. You may want to use the data attribute instead:


    [data-box-identifier="com.woltlab.wcf.Statistics"]

    return null;


    Browser: Firefox Nightly (64bit)

    Betriebssystem: Windows 10

  • The box does not have any `welcome` class. You may want to use the data attribute instead:

    This is what I meant:



    I wouldn't know how to add the data attribute to the CSS either.

  • Okay, but the statistics are invisible:


    return null;


    Browser: Firefox Nightly (64bit)

    Betriebssystem: Windows 10

  • I got this to work with the help of Caribe_Soy . I replaced the code posted above with the following:


    Code
    <dl class="plain inlineDataList containerContent medium">
    {include file='userInformationStatistics' user=$__wcf->getUserProfileHandler()->getUserProfile()}
    </dl>


    Thank you jens1o for your help.