Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Parijs - heinäkuu 24, 2006, 04:20:15 IP

Otsikko: Template Help
Kirjoitti: Parijs - heinäkuu 24, 2006, 04:20:15 IP
I have one question and I hope this can be done, In the image below u will see the Avatar being used.....well u can see that there is a slider bar because the avatar is bigger then that part of the template I guess.  What I want to know is how and where to edit that so I can ajust it a little bit so that there wont be a slider bar anymore and the whole Avatar can be displayed rather then most of it. 

Any help would be greatly appreciated
Parijs
(http://i18.photobucket.com/albums/b117/nancie0711/Template.jpg)
Otsikko: Re: Template Help
Kirjoitti: EvilNui - heinäkuu 24, 2006, 07:32:57 IP
Just to confirm, that I really understand you:
You want the collumn, left to the postcontent, to be a bit bigger?


In the "Display.template.php" there is a part of code, which regulates the size of that column.


And this should be what you are looking for (line 262 - 268 in the standard template):

// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';



On line 266 in the standard template you see this:
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
And the width is what you need to change! You can simply put in a higher number, or what I will do - change it to a pixel value, so the column doesnt get bigger, or smaller depending on the resolution of the user. To do this, you simply don't make use of a "%" behind the value.

I hope this helps, but I will be back to see if anything comes up.
Otsikko: Re: Template Help
Kirjoitti: Parijs - heinäkuu 24, 2006, 10:50:41 IP
Ahhh sweet....ur awesome ;)  That did exactly what I wanted.  Thanks so muh for ur reply.

Parijs