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

Add ACP options for following and followers count on profile pages

Discussion in 'XenForo Suggestions' started by Brogan, Apr 18, 2013.

  1. Brogan

    Brogan XenForo Moderator Staff Member

    The following and followers count are currently hard coded in library/XenForo/ControllerPublic/Member.php like so:

    $followingToShowCount = 6;
    $followers = $userModel->getUsersFollowingUserId($userId, 6, 'RAND()');
    It doesn't make much sense being able to increase the sidebar width in Style Properties: Member Profile Page -> Settings -> Sidebar Width if those values are hard coded, as the blocks look incomplete.

    I have increased the width of the sidebar to 246px to accomodate YouTube videos - videos less than 230px with adverts won't display, due to new Google rules.
    Therefore I have had to manually edit the file to achieve the desired result, which is:

    mcatze, Valhalla, Weydigo and 10 others like this.
  2. Sage Knight

    Sage Knight Well-Known Member

    Just today I was looking for such a thing, it's a bit surprising to see it hard coded to 6 when sidebar lengths vary from forum to forum.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    mcatze likes this.
  4. mcatze

    mcatze Well-Known Member

    Thanks for that addon @Brogan but it would be nicer if it is an core option .. ;)
    Deceptive likes this.

Share This Page