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

[tLk] Gender Percent 1.2.0

Adds gender percents to sidebar statistics

  1. Tilkißey

    Tilkißey Well-Known Member

    Tilkißey submitted a new resource:

    [tLk] Gender Percent (version 1.0.0.) - Adds gender percents to sidebar statistics

    Read more about this resource...
     
    dangnguyen, Brandon Sheley and mrGTB like this.
  2. mrGTB

    mrGTB Well-Known Member

    Good of you to create this on request, and for free. Nice one!
     
    Tilkißey likes this.
  3. DRE

    DRE Well-Known Member

    Works great! 5 Stars.

    If you have bd_widget framework installed then to add this you must pull up your wf_widget_stats template.

    My wf_widget_stats template looks like this:

    Code:
    <div class="pairsJustified">
        <dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
            <dd>{xen:number $boardTotals.discussions}</dd></dl>
        <dl class="messageCount"><dt>{xen:phrase messages}:</dt>
            <dd>{xen:number $boardTotals.messages}</dd></dl>
        <dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
            <dd>{xen:number $boardTotals.users}</dd></dl>
            <dl><dt>Gender Ratio:</dt>
                    <dd><xen:hook name="tlk_genderpercent" /></dd></dl>
        <dl><dt>{xen:phrase latest_member}:</dt>
            <dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
        <!-- slot: forum_stats_extra -->
    </div>
    genderratio.jpg
     
  4. Hyperion

    Hyperion Active Member

    Yay. Thank you. Works as intended at my forum.
     
  5. Archet

    Archet Member

    This is a brilliant add-on, but I am having trouble getting it to work with XenPorta block EWRblock_BoardTotals.

    It shows up as blank:
    xenporta_gender.png

    This is what the block template looks like:
    HTML:
    <div class="section">
        <div class="secondaryContent statsList" id="boardStats">
            <h3>{xen:phrase forum_statistics}</h3>
            <div class="pairsJustified">
                <dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
                    <dd>{xen:number $BoardTotals.discussions}</dd></dl>
                <dl class="messageCount"><dt>{xen:phrase messages}:</dt>
                    <dd>{xen:number $BoardTotals.messages}</dd></dl>
                <dl class="memberCount"><dt>{xen:phrase members}:</dt>
                    <dd>{xen:number $BoardTotals.users}</dd></dl>
                        <dl><dt>Gender Ratio:</dt>
                    <dd><xen:hook name="tlk_genderpercent" /></dd></dl>           
                <dl class="mostCount"><dt>User Record:</dt>
                    <dd class="Tooltip" title="{xen:dateTime $BoardTotals.most_users.time}">{xen:number $BoardTotals.most_users.total}</dd></dl>
                <dl><dt>{xen:phrase latest_member}:</dt>
                    <dd><a href="{xen:link members, $BoardTotals.latestUser}" class="username">{$BoardTotals.latestUser.username}</a></dd></dl>
            </div>
        </div>
    </div>
    Does anyone know what I have to do to make it work?
     
  6. Tilkißey

    Tilkißey Well-Known Member

    there is no support for xenporta (for now, maybe i can add xenporta support on next releases)
     
  7. Hyperion

    Hyperion Active Member

    Hi.

    Where should I change the code so that this

    Turns into this:
    By the way, I know where to remove the color, but removed it above to show what I am trying to do.

    Oh, as a separate issue, I wonder how I would switch male and female so that it shows up like this:

     
  8. Tilkißey

    Tilkißey Well-Known Member

    u should edit tlk_genderpercent template for special modifications

    the original codes
    Code:
    <xen:if is="{$TilkiBey_GenderPercent}">
    <xen:foreach loop="$TilkiBey_GenderPercent" value="$TilkiBeyGenderPercent">
    (<span title="{xen:phrase male}" style="{$xenOptions.tlk_genderpercent_male}">{$TilkiBeyGenderPercent.male}%</span>
    <span title="{xen:phrase female}" style="{$xenOptions.tlk_genderpercent_female}">{$TilkiBeyGenderPercent.female}%</span>
    <span title="{xen:phrase unspecified}" style="{$xenOptions.tlk_genderpercent_unspecified}">{$TilkiBeyGenderPercent.unspecified}%</span>)
    </xen:foreach>
    </xen:if>
    example edited codes
    Code:
    <xen:if is="{$TilkiBey_GenderPercent}">
    <xen:foreach loop="$TilkiBey_GenderPercent" value="$TilkiBeyGenderPercent">
    <span title="{xen:phrase female}" style="{$xenOptions.tlk_genderpercent_female}">{$TilkiBeyGenderPercent.female}% (F)</span>
    <span title="{xen:phrase male}" style="{$xenOptions.tlk_genderpercent_male}">{$TilkiBeyGenderPercent.male}% (M)</span>
    <span title="{xen:phrase unspecified}" style="{$xenOptions.tlk_genderpercent_unspecified}">{$TilkiBeyGenderPercent.unspecified}% (?)</span>
    </xen:foreach>
    </xen:if>
     
    Hyperion likes this.
  9. Hyperion

    Hyperion Active Member

    Much obliged
     
    Tilkißey likes this.
  10. dwdmadmac

    dwdmadmac Active Member

    Sad Face

    :(
     
  11. Sheldon

    Sheldon Well-Known Member

    Has this been figured out yet?
     
  12. est3ban129

    est3ban129 Member

    Not working

    [​IMG]
     
  13. ineedhelp

    ineedhelp Well-Known Member

    I've added this, but it's not on the right next to the number of members….. It's on the left next to "Members:" :eek:

    How do I move it thanks.
     
  14. Tilkißey

    Tilkißey Well-Known Member

  15. Tilkißey

    Tilkißey Well-Known Member

  16. UnitySoft

    UnitySoft Member

    Bende turkum kardes , busuru sorum var sana
     
  17. Pinn

    Pinn Active Member

    Not works with bd_widget Framework Xenforo 1.4.1
     
  18. Ranger375

    Ranger375 Well-Known Member

    This is awesome. If you could write another addon with percentage of people in each user group that would rock!
     
  19. Tilkißey

    Tilkißey Well-Known Member

    Pinn likes this.
  20. Pinn

    Pinn Active Member

    Works with bd_widget Framework Xenforo 1.4.1 now see you:

    Unbenannt.png
     

Share This Page