Back to vBulletin 4.x Template Modifications

Fix overlapping blog comments images
Mod Version: 1.00, by shahz

vB Version: 4.0.8 Rating: (1 vote - 4.00 average) Installs: 3
Released: 03 Nov 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

If you are facing problems with overlapping avatars in the comments section, follow this fix. This will make the avatars fit within the containers and fix the annoying problem.

Template to edit: blog_comment

Find this part in the particular file:
Code:
<a href="{vb:link member, {vb:raw response}}" class="avatarlink"><img src="{vb:raw response.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw response.username}}" <vb:if condition="$response['avwidth'] > 60"> style="max-width:60px; height:auto; width:auto !important; width:60px"</vb:if> /></a>
And replace it with the following code (at your own risk!):
Code:
<a href="{vb:link member, {vb:raw response}}" class="avatarlink"><img src="{vb:raw response.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw response.username}}" style="max-width:60px; max-height: 60px; height:auto; width:auto !important; width:60px;" /></a>
Its just a minor CSS fix, but make sure you know what you are doing before fixing it. I ran into this today and got it fixed. Thought I'd share it

Regards,
Shahz

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024