primehalo / primepostrevisions

A phpBB 3.2/3.3 extension that keeps a revision history of all posts edits. These revisions can be viewed, deleted, and restored only by users with the necessary permissions.
GNU General Public License v2.0
4 stars 9 forks source link

Avatar broken in revision #31

Open profcaju opened 5 months ago

profcaju commented 5 months ago

Viewing the revisions of a post, the user avatar has a broken path, as you can see in the image below:

broken_avatar

Using Chrome Devtools I can inspect the URL and this is what have there:

<div class="avatar-container">
    <a href="./../../memberlist.php?mode=viewprofile&amp;u=30943" class="avatar">
    <img class="avatar" src="./images/avatars/random/no_avatar17.png" width="160" height="200" alt="Avatar do usuário" title="Avatar do usuário ProfLaplace">
    </a>
</div>

The href for the link is correct, with ./../../. But, in the img tag there is only ./. It should be ./../../ in the img tag as well.

I am using phpBB 3.3.12 with Prime Post Revisions 1.0.6.

Is there something that I am doing wrong here?

Kind regards,

primehalo commented 1 month ago

I have never had an issue with the avatars not working. The avatar image comes from the postrow.POSTER_AVATAR template variable. The template variable is set in viewtopic.php 'POSTER_AVATAR' => $user_cache[$poster_id]['avatar'], I really have no idea why that would be wrong.