XF 1.5 Accidentally Deleted the avatarScaler template

Brogan

XenForo moderator
Staff member
You can't delete templates (other than from the master style, which is only available in debug mode), so all that has happened is you have removed any edits made to it.

You should be able to view the template history and recover the previous version.
 
Thanks for the quick reply. I am extremely new to this... as if you can't tell...
I'm glad the template isn't gone, but I cannot find it when I search templates, and now avatars aren't appearing on the member profile page.
How, exactly would I go about finding the template history and recovering it?
 
Thank you, that was actually helpful, it assisted me in finding the name of the template that is gone.

The missing template is called BRTL_avatarScaler and is called in the member_view template.

<xen:comment>
<div class="avatarScaler">
<xen:if is="{$visitor.user_id} == {$user.user_id}">
<a class="Av{$user.user_id}l OverlayTrigger" href="{xen:link account/avatar}">
<img src="{xen:helper avatar, $user, l, '', true}" alt="{$user.username}" style="{xen:helper avatarCropCss, $user}" itemprop="photo" />
</a>
<xen:else />
<span class="Av{$user.user_id}l">
<img src="{xen:helper avatar, $user, l, '', true}" alt="{$user.username}" style="{xen:helper avatarCropCss, $user}" itemprop="photo" />
</span>
</xen:if>
</div>
</xen:comment>
<xen:include template="BRTL_avatarScaler" />

But after trying all of your suggestions I still can't locate the BRTL_avatarScaler template.
 

Brogan

XenForo moderator
Staff member
That template is from a customisation.

If it was linked with an add-on, it wouldn't be possible to delete it as it would exist in the master style.

If it was manually created in the style, it would have been possible to delete it and it will now be gone.
You will have to contact the author of the customisation for further assistance - we wouldn't know what the template contained.
 

Brogan

XenForo moderator
Staff member
The avatar appears by default - I don't know what that customisation does or how it has changed the default functionality/view.
 
Again, thank you. It seems that it's not the missing file, rather I only noticed once the file was missing. It's actually the template I'm using. When I revert to the default style, the avatar is present. How annoying!
 
Why not just use the default theme for now and customise it. Then you've only got yourself to blame, not ******* :)
My one and only reason for using this particular theme was the way the forums are displayed, with the lovely large images for each forum. It matched my website enough to make it relatively easy to add the customization to make the site and the forum look seamless. Now I'm wondering how I'm going to recreate that look.
 

Mr Lucky

Well-known member
My one and only reason for using this particular theme was the way the forums are displayed, with the lovely large images for each forum. It matched my website enough to make it relatively easy to add the customization to make the site and the forum look seamless. Now I'm wondering how I'm going to recreate that look.
That might not be too difficult, do you have a link to it or screenshot.
 
Top