Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar broken in revision #31

Open
profcaju opened this issue Jun 18, 2024 · 1 comment
Open

Avatar broken in revision #31

profcaju opened this issue Jun 18, 2024 · 1 comment

Comments

@profcaju
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants