remove scrollbar under avatar

Started by Mayhem30, January 07, 2007, 06:08:29 PM

Previous topic - Next topic

Mayhem30

SMF Version: SMF 1.1.1
Could someone tell me how to remove the scrollbar from under the avatars?

Thanks!

青山 素子

Link to a page showing the issue please.

Does the bar show up on the default theme (if you are using a different one)?
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.



Peter Duggan

It's an 'overflow' thing caused by oversized avatars and, while you *can* edit your templates to either chop them off or take more of the total width, the best solution (apart from higher screen resolution) is probably to encourage the use of smaller avatars.

Mayhem30

I have it set so users can only use avatars that are 150x150 otherwise it'll get rejected.

Anyway to remove the bars? or set it so It give enough room for them?

青山 素子

You will need to edit a template file.

Open Display.template.php

Find this code:

<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">


Change that 16% on the last line to 25%

Find this code:

<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>


Change the 85% in the first line to 75%.

This will widen the poster-info side and let larger avatars show. If it is too wide, just adjust the percentages to fit (as long as they add to 100%).

This is coded for the default/core theme of 1.1. You might need to look around a bit if you are using a custom theme that uses its own copy of Display.template.php.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Mayhem30

Thanks!

18% and 82% worked just fine.

Advertisement: