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

Lack of Interest Add Border to Member Page Blocks

Discussion in 'Closed Suggestions' started by ragtek, Aug 23, 2011.

  1. ragtek

    ragtek Guest

    Pls add a boarder to the bottom of the follow box.
    It looks like there's missing something if there's no Sectionfooter (because there's no link to "more followers" if the users have only 1-6 followers / or if he's following only some people
     

    Attached Files:

    Alien likes this.
  2. Marc

    Marc Well-Known Member

    See now Ive never noticed that before, and now I have Im gonna be sat there putting it in on my site tonight LOL
     
  3. ragtek

    ragtek Guest

    I also never noticed it until i started developing the profile visitors add-on :D
    I've spent 20 minutes searching for my fault, why there's no border until i saw that it's also happening for the followers:D
     
    dieketzer and Marc like this.
  4. ragtek

    ragtek Guest

    Could you pls post how you inserted this?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the member_view template.

    Find this:
    Code:
    <xen:if is="{$followingCount} > {xen:count $following, false}">
    <div class="sectionFooter"><a href="{xen:link 'members/following', $user}" class="OverlayTrigger">{xen:phrase show_all}</a></div>
    </xen:if>
    Replace with this:
    Code:
    <div class="sectionFooter"><a href="{xen:link 'members/following', $user}" class="OverlayTrigger">{xen:phrase show_all}</a></div>
    Do the same for the followers block, removing the if statement:
    Code:
    <xen:if is="{$followersCount} > {xen:count $followers, false}">
    <div class="sectionFooter"><a href="{xen:link 'members/followers', $user}" class="OverlayTrigger">{xen:phrase show_all}</a></div>
    </xen:if>
     
  6. ragtek

    ragtek Guest

    No, i don't mean this
    That's fine, the footer with show all, shouldn't be shown if there are no more, BUT there should be IMO a blue line (as on the left & right side)
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Ah, my mistake.
    I thought you meant the footer should be shown all the time.

    In which case, you can edit the if statement to add a bottom border if the count is less than the value required to add the footer.

    Code:
    <xen:if is="{$followingCount} > {xen:count $following, false}">
    <div class="sectionFooter"><a href="{xen:link 'members/following', $user}" class="OverlayTrigger">{xen:phrase show_all}</a></div>
    <xen:else />
    <div style="border-bottom: 1px solid @primaryLighter"></div>
    </xen:if>
    Obviously do the same for the followers block.
     
    Divvens and (deleted member) like this.
  8. ragtek

    ragtek Guest

    thx

    aren't the first 2 boxes much better as the third?:D
    thx.png
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I actually prefer it with the footer all the time, so I might do that on my site :)
     
  10. ragtek

    ragtek Guest

    But wouldn't this cause the users ask you why they don't see more when clicking on "show all" ???
    I saw this reaction several times with my add-ons
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Well strictly speaking it is showing all the followers :D

    In that case, I'll just edit the code to wrap the "show all" link in an if statement :)
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Code:
    <div class="sectionFooter" style="min-height: 16px">
    <xen:if is="{$followingCount} > {xen:count $following, false}">
    <a href="{xen:link 'members/following', $user}" class="OverlayTrigger">{xen:phrase show_all}</a>
    </xen:if>
    </div>
    :D
     
  13. dieketzer

    dieketzer Well-Known Member

    yeah the first time i saw this i thought i had stuffed the style somehow.
    whatever the logic behind it, it looks broken.
     

Share This Page