Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10658

Rank-item is not shown on team-list

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.10
    • Fix Version/s: 3.0.11-RC1
    • Component/s: None
    • Labels:
      None

      Description

      When looking on team list (one group selected), a wrong path is used what causes a missing rank-icon.

        Activity

        Hide
        bantu Andreas Fischer added a comment -

        Working fine on area51 and phpBB.com. How exactly does the path look and how is it supposed to look?

        Show
        bantu Andreas Fischer added a comment - Working fine on area51 and phpBB.com. How exactly does the path look and how is it supposed to look?
        Hide
        BO-Samson BO-Samson [X] (Inactive) added a comment -

        Path should be
        http://www.burn-out-forum.de/phpBB3/images/ranks/administrator.png

        but it is
        http://www.burn-out-forum.de/images/ranks/administrator.png

        The template was not changed. p8pBB-bridge is running in joomla, but as I know it does not alter phpBB-code. Other user with german translation have the same problem. May this result from translation?

        Show
        BO-Samson BO-Samson [X] (Inactive) added a comment - Path should be http://www.burn-out-forum.de/phpBB3/images/ranks/administrator.png but it is http://www.burn-out-forum.de/images/ranks/administrator.png The template was not changed. p8pBB-bridge is running in joomla, but as I know it does not alter phpBB-code. Other user with german translation have the same problem. May this result from translation?
        Hide
        bantu Andreas Fischer added a comment -

        This could indeed be caused by a Joomla bridge. Which one are you using exactly?

        Show
        bantu Andreas Fischer added a comment - This could indeed be caused by a Joomla bridge. Which one are you using exactly?
        Hide
        bantu Andreas Fischer added a comment -

        This is very likely caused by your bridge. It certainly messes around with paths: E.g. rewriting http://www.burn-out-forum.de/phpBB3/memberlist.php?mode=group&g=5 to http://www.burn-out-forum.de/forum/members/group/5 which thus can cause such problems.

        Show
        bantu Andreas Fischer added a comment - This is very likely caused by your bridge. It certainly messes around with paths: E.g. rewriting http://www.burn-out-forum.de/phpBB3/memberlist.php?mode=group&g=5 to http://www.burn-out-forum.de/forum/members/group/5 which thus can cause such problems.
        Hide
        Noxwizard Patrick Webster added a comment -

        There is a slight difference in how those paths are generated. The group rank at the top is manually built, while the others are done through get_user_rank(). Those are constructed like this:

        $rank_img = (!empty($ranks['special'][$user_rank]['rank_image'])) ? '<img src="' . $phpbb_root_path . $config['ranks_path'] . '/' . $ranks['special'][$user_rank]['rank_image'] . '" alt="' . $ranks['special'][$user_rank]['rank_title'] . '" title="' . $ranks['special'][$user_rank]['rank_title'] . '" />' : '';

        The manually built one is constructed like this:

        $rank_img = (!empty($ranks['special'][$group_row['group_rank']]['rank_image'])) ? '<img src="' . $config['ranks_path'] . '/' . $ranks['special'][$group_row['group_rank']]['rank_image'] . '" alt="' . $ranks['special'][$group_row['group_rank']]['rank_title'] . '" title="' . $ranks['special'][$group_row['group_rank']]['rank_title'] . '" /><br />' : '';

        The one built directly in memberlist.php lacks the phpbb_root_path, which is probably why this is only noticeable on the bridge, since they have a somewhat different path usage than a normal board.

        Show
        Noxwizard Patrick Webster added a comment - There is a slight difference in how those paths are generated. The group rank at the top is manually built , while the others are done through get_user_rank(). Those are constructed like this: $rank_img = (!empty($ranks['special'][$user_rank]['rank_image'])) ? '<img src="' . $phpbb_root_path . $config['ranks_path'] . '/' . $ranks['special'][$user_rank]['rank_image'] . '" alt="' . $ranks['special'][$user_rank]['rank_title'] . '" title="' . $ranks['special'][$user_rank]['rank_title'] . '" />' : ''; The manually built one is constructed like this: $rank_img = (!empty($ranks['special'][$group_row['group_rank']]['rank_image'])) ? '<img src="' . $config['ranks_path'] . '/' . $ranks['special'][$group_row['group_rank']]['rank_image'] . '" alt="' . $ranks['special'][$group_row['group_rank']]['rank_title'] . '" title="' . $ranks['special'][$group_row['group_rank']]['rank_title'] . '" /><br />' : ''; The one built directly in memberlist.php lacks the phpbb_root_path, which is probably why this is only noticeable on the bridge, since they have a somewhat different path usage than a normal board.
        Hide
        bantu Andreas Fischer added a comment -

        Good catch. Feel free to give this patch a try.

        Show
        bantu Andreas Fischer added a comment - Good catch. Feel free to give this patch a try.

          People

          • Assignee:
            bantu Andreas Fischer
            Reporter:
            BO-Samson BO-Samson [X] (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development